Jun 22, 2004 #1 pink2070 Programmer Joined Jan 29, 2004 Messages 23 Location US This is new to me, How do I import a comma delimmited file into sql server. If you have any code snippets or site recommendatins they would be greatly appreciated Thank you very much Pink
This is new to me, How do I import a comma delimmited file into sql server. If you have any code snippets or site recommendatins they would be greatly appreciated Thank you very much Pink
Jun 22, 2004 #2 chrissie1 Programmer Joined Aug 12, 2002 Messages 4,517 Location BE me i do it on the sql-server via a dts package because if you do it locally and the user has other settings for , or . it doesnt work anymore. just my 2 cents worth Christiaan Baes Belgium What a wonderfull world - Louis armstrong Upvote 0 Downvote
me i do it on the sql-server via a dts package because if you do it locally and the user has other settings for , or . it doesnt work anymore. just my 2 cents worth Christiaan Baes Belgium What a wonderfull world - Louis armstrong
Jun 23, 2004 #3 SqueakinSweep Programmer Joined Jun 20, 2002 Messages 945 Location GB Check out the BULK INSERT Command. Look up the Help on this within SQL Server itself. Code: BULK INSERT Northwind.dbo.[Order Details] FROM 'f:\orders\lineitem.tbl' WITH ( FIELDTERMINATOR = '|', ROWTERMINATOR = '|\n' ) Sweep ...if it works dont mess with it Upvote 0 Downvote
Check out the BULK INSERT Command. Look up the Help on this within SQL Server itself. Code: BULK INSERT Northwind.dbo.[Order Details] FROM 'f:\orders\lineitem.tbl' WITH ( FIELDTERMINATOR = '|', ROWTERMINATOR = '|\n' ) Sweep ...if it works dont mess with it