Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Inserting data

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-03-15 : 08:19:46
Richard writes "Is is possible to use an Insert statement but rather than having the actual values included, use variables that pull data from a file?

INSERT INTO EmployeeT
(CardID, OtherID, HomeDivision, HomeDepartment, PayPeriod, SchedNo, RoundPolicy, OTRUleGroup, FirstName, MiddleName, LastName, Active, eTimeProfile)
VALUES
('5', '105-55-1050', '1', '55', 'mo', '1', '1', '1', 'Tony', 'E', 'Rockette', 1, 'standard')

INSERT INTO EmployeeT
(CardID, OtherID, HomeDivision, HomeDepartment, PayPeriod, SchedNo, RoundPolicy, OTRUleGroup, FirstName, MiddleName, LastName, Active, eTimeProfile)
VALUES
('X1, X2, X3, X4, X4, X6, X7, X8, X9, X10, X11, X12, X13)

Thanks"

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-03-15 : 12:32:10
You will need to import the data into SQL Server using bcp.exe, BULK INSERT, or DTS.

Tara
Go to Top of Page
   

- Advertisement -