Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about Bulk Insert

Status
Not open for further replies.

gbraden

MIS
Jan 24, 2002
129
US
I am trying to automate a process where several CSV files are loaded into a database via Bulk Insert. Using a import data wizard, the table can be created from the imported data, but I have not been able to do so via T-SQL. Any ideas?

BULK
INSERT dbo.tblTransactionByGift_Temp */Table to be created */
FROM 'r$\ConvioData\TranByGift\TranByGift.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO

[noevil]
Glen Braden
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top