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 |
|
allan8964
Posting Yak Master
249 Posts |
Posted - 2011-11-15 : 12:43:52
|
| Hi guys,I tried to bulk insert a text file to a table. The text file uses "|" as delimiter. All columns are username|age|score ... The table has one column more than the text file, looks like this: username age score eventid. Here eventid is int and I need to update it after the insertion. Is there any way to insert the text file with the column eventid not affected? Thanks in advance. |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-11-15 : 12:53:44
|
| You can use a format file but much easier to create a view on the table omitting the column and import into that.==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|