Hi,
I am reading a varchar(8000) column from MSSQL Server 2000 using SQLServer enterprise Stage. The actual value in the column is 2300 characters. The output from the job is a truncated string of 255 characters followed by char(0) characters. The total character count in the output is 8000. sorry i couldn't paste the string here becoz of char(0).
When i do a substring in the query again only the first 255 chars are ok.
Any suggestions ?
Thanks in advance.
SQLServer varchar returning truncated string
Moderators: chulett, rschirm, roy
SQLServer varchar returning truncated string
Zero Degree Consulting
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Use LongVarChar. Under ODBC standards the maximum size of a VarChar is 255 characters.
All complaints to billg@microsoft.com (because ODBC is a Microsoft standard).
All complaints to billg@microsoft.com (because ODBC is a Microsoft standard).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: