Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ravilobo
Master Smack Fu Yak Hacker
1184 Posts |
Posted - 2003-11-02 : 02:54:38
|
| I have a table with followoing structureCREATE TABLE T1(ID INT,NAME VARCHAR(50))I want to insert the following text file in the table1 RAVINULL SURESHi am using the following querybulk insert T1 from "c:\SURESH\X.txt"with (fieldterminator='\t',rowterminator='\n')I am getting the following errorServer: Msg 4864, Level 16, State 1, Line 1Bulk insert data conversion error (type mismatch) for row 2, column 1 (ID).Any solutions for this error?Thanks in advance.Ravi Lobo |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-11-02 : 03:10:01
|
| try1 RAVI SURESHotherwise seehttp://www.nigelrivett.net/ImportTextFiles.htmlWhich imports into a single column table and copies the data from there.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|