I have a tab separated text file which is about 1.2 GB , i need to convert it into CSV file(Comma Separated) using c#. I have to insert a bulk data into sqlserver, the data is i
If its SQl Server 2005 and above, right click the database you want to import to and select Tasks and then Import Data. Point to your tab delimited file and just go through the remaining screens. On the final screen, just before you actually import, you have an option to save it as a SSIS package(check box). This is by far the easiest, fast and efficient way (without the conversion from tab delimited to csv) to import it without writing any code and the code is also available at the end of the wizard, which can be used to automate the task, if required.