I am just wondering, are there any ways I can make it more efficient? Any suggestion is welcome.
Thanks,
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
John Wiese106 reputationPosted Jun 3, 2010, 11:02 AM EDT
If you have the files in a comma delimited format you could doa Bulk Insert like this:
BULK
INSERT CSVTest
FROM 'c:\csvtest.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
You could also use something like SQL Server Integration Services as shown in this video: http://technet.microsoft.com/en-us/sqlserver/dd941934.aspx
Venkatesan JayakanthamRank #256 · 9.8K reputationPosted Jun 3, 2010, 4:55 PM EDT
In addition, you can use SSIS Bulk Insert task to upload the data from text files.
Cheers,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/