BUG: Incorrect Example D for sp_addlogin in SQL Server Books Online (257609)
The information in this article applies to:
This article was previously published under Q257609
BUG #: 57513 (SQLBUG_70)
SYMPTOMS
SQL Server Books Online has incorrect syntax for example D in the sp_addlogin (T-SQL) topic.
CAUSE
SQL Server Books Online specifies that the datatype of the last parameter security identification number (SID) is varbinary(16); however, sp_addlogin checks for the binary(16) datatype.
WORKAROUND
Use this code to make example D work:
declare @v binary(16)
select @v= convert(binary(16),'0x12345678')
EXEC sp_addlogin 'Michael', 'chocolate', 'pubs', 'us_english', @v
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0.
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug kbDSupport KB257609 |
---|
|