Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Express Conversion Problem

Status
Not open for further replies.

Elysium

Programmer
Aug 7, 2002
212
US
I apologize if this is the wrong forum for my question. In any case, I just downloaded SQL Server 2005 Express and I have an issue with a CSV import. I established a "Linked Server" to a directory where my csv files are. I then issue Insert statements using the csv files in the "from" syntax. Everything is fine until SQL comes to a column with something like this:

Row 1: 123
Row 2: 456test

SQL Server wants to treat 123 as an integer and it disregards 456test all together. If the destination column's data type is "Text", I get this error:

Code:
Msg 206, Level 16, State 2, Line 23
Operand type clash: int is incompatible with text

Why is this happening?

Randy
[afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top