PRB: Query Analyzer Returns Error Message When You Select NEWID() After You Reduce the Maximum Characters Per Column (280834)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q280834 SYMPTOMS
In the SQL Server Query Analyzer, if you create a unique value, of type uniqueidentifier, by using the NEWID function, with the Maximum Characters Per Column option set to a value less than 36, the SQL Server Query Analyzer outputs this error message:
[Microsoft][ODBC SQL Server Driver]Numeric value out of range
The error message does not indicate what setting, in particular, is causing the error to occur.
CAUSE
This behavior is by design.
WORKAROUND
Always confirm that the Maximum Characters Per Column option under the Results tab of the Query Analyzer Options dialog box, is set to a value of 36, or higher, when you use a uniqueidentifier datatype.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbprb KB280834 |
---|
|