hi,
i need help on how to import a .csv file into sql server using asp.net (c#)
thanks.
Importing csv into sql server
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 9, 2012, 9:42 AM EDT
INSERT CSVTestTable
FROM 'c:\csvtest.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
fire this query
if still have some query
Watch this video
http://www.youtube.com/watch?v=ZeCKVwFKXQo&feature=player_embedded
come again if problem not solved.
Check this is correct answer if it helped.
White Evaln26 reputationPosted Sep 9, 2012, 8:03 PM EDT