June 1, 2010 at 8:33 am
Hi ,
Am looking to import a CSV file into a SQL server database using C#.
I have no clues as to how should this be done.
Kindly guide me.
Thanks
Shrav.
June 1, 2010 at 9:43 am
There are many ways to import such a file into SQL Server directly.
If you must use an external C# program for some reason, there are plenty of code examples out there.
A Google search for "C# CSV SQL Server" revealed one example:
http://www.codeproject.com/KB/database/Cs_CSV_import_export.aspx
If you tell us more about what you need to do, what version of SQL Server you are using, and so on, you'll get a more targeted answer.
June 1, 2010 at 9:43 am
You are probably better asking this question in a c# forum.
Here we will tell you to use Bulk Import or SSIS
June 1, 2010 at 10:07 am
Hello Paul ,
Thanks for the reply & the example suggested.
This really helped my purpose.
Thanks
Shravan
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply