Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Data Types (Level 2)

Data Types (Level 2)

  Topic last updated -- July 2003

SQL Server 6.x SQL Server 2000
Conversion of binary or varbinary to decimal or numeric was explicit. This conversion is implicit.

Expect different results as compared to earlier versions of SQL Server. Expect conversions of binary or varbinary to decimal or numeric to be implicit. For more information about data type conversions, see CAST and CONVERT. For more information about system-supplied data types, see Data Types.

Conversion of binary or varbinary to smallmoney was not allowed. This conversion is allowed.

Expect different results as compared to earlier versions of SQL Server. Use as appropriate.

Conversion of datetime or smalldatetime to decimal, numeric, float, real, int, smallint, tinyint, money, smallmoney, or bit was not allowed. This conversion is allowed.

Expect different results as compared to earlier versions of SQL Server. Use as appropriate.

Conversion of float or real to binary or varbinary was not allowed. This conversion is allowed.

Expect different results as compared to earlier versions of SQL Server. Use as appropriate.

Conversion of money or smallmoney to char or varchar was implicit. This conversion is explicit.

Expect different results as compared to earlier versions of SQL Server. Expect conversions of money or smallmoney to char or varchar to be explicit.

Conversion of bit to money or smallmoney was not allowed. This conversion is allowed.

Expect different results as compared to earlier versions of SQL Server. Use as appropriate.

sysname data type was varchar(30). sysname data type is nvarchar(128), which allows for 128 Unicode characters.

Expect different results as compared to earlier versions of SQL Server. Expect any columns or local variables defined as sysname to allow Unicode data. For more information about sysname, see Data Types.

No direct support for the nchar, nvarchar, and ntext Unicode data types because maximum storage was 255 bytes for char, binary, varchar, and varbinary data types. The maximum number of bytes that can be stored in char, binary, varchar, and varbinary data types is increased to 8,000. SQL Server 2000 clients fully support the nchar, nvarchar, and ntext data types. SQL Server 6.x clients accessing SQL Server 2000 with these Unicode data types will experience these results:

nvarchar data is returned as varchar and nchar data is returned as char. nvarchar and nchar values longer than 255 double-byte characters are truncated to 255 single-byte characters.

Attempting to access ntext data causes SQL Server to issue a 4004 error. ntext data cannot be sent to version 6.x clients.

char, varchar, binary, and varbinary values longer than 255 bytes are truncated to 255 bytes.

Expect different results as compared to earlier versions of SQL Server. Expect changes in data when accessing SQL Server 2000 data from version 6.x clients. To eliminate these differences, upgrade the clients to SQL Server 2000 client software.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.