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 |
starnold
Yak Posting Veteran
83 Posts |
Posted - 2005-10-25 : 10:50:31
|
I have a Comma Delimited text file and I am trying to import the file into a SQL table. Some of the fields within SQL are set up with the Type = int, but I get an error saying that the input field is a string and it can't convert. Is there a way of changing the import file to make it an int rather than a string? |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-10-25 : 14:10:06
|
What format is the file - if it is an ascii file then the problem is that the data in the field is not numeric.Import the data into a staging table (maybe a temp table?) with all character columns then you can manipulate the data before moving it to the production tables.==========================================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. |
 |
|
|
|
|