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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Sybase date type long varchar

Author  Topic 

Hommer
Aged Yak Warrior

808 Posts

Posted - 2004-12-03 : 17:17:41
I have Sybase date type long varchar data type converted into SQL Server 2000 as text with length 16. These Sybase data are of size 1 and scale 0.

I suspect the SQL Server data type is right because I saw some message from sqlserver saying String or binary data would be truncated.

Any body has any experience? Thanks!

nr
SQLTeam MVY

12543 Posts

Posted - 2004-12-03 : 18:56:01
A varchar in sql server has a max length of 8000 chars.
For strings longer than this you need to use the text datatype. The pointer to the data is 16 bytes which is the size you see.

==========================================
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.
Go to Top of Page
   

- Advertisement -