BUG: DocError Books Online for sp_resetstatus/sp_marksuspectID: Q141544
|
In the Microsoft SQL Server version 6.0 Books Online, "Administrator's Companion," Part 8 Troubleshooting, Chapter 24 topic on Creating Supplemental Stored Procedures, the section titled "Resetting the Suspect Status" contains errors and will produce error messages if you execute the sample code.
The example code for creating stored procedure sp_resetstatus has some
syntax errors due to missing string concatenation operator '+'. If you run
the code, you will get the following error messages:
Msg 170, Level 15, State 1
Line 11: Incorrect syntax near 'to execute this procedure.'.
Msg 170, Level 15, State 1
Line 18: Incorrect syntax near '@@dbname'.
Msg 170, Level 15, State 1
Line 25: Incorrect syntax near '@@dbname'.
Msg 170, Level 15, State 1
Line 26: Incorrect syntax near 'is already marked suspect.'.
Msg 170, Level 15, State 1
Line 38: Incorrect syntax near '@@dbname'.
Msg 170, Level 15, State 1
Line 38: Incorrect syntax near 'suspect!'.
Msg 170, Level 15, State 1
Line 42: Incorrect syntax near 'dropped via DBCC DBREPAIR.'.
Msg 170, Level 15, State 1
Line 11: Incorrect syntax near ' to execute this procedure.'.
Msg 170, Level 15, State 1
Line 17: Incorrect syntax near '@@dbname'.
Msg 170, Level 15, State 1
Line 35: Incorrect syntax near '@@dbname'.
Put the missing '+' at all the appropriate places, or run the \SQL\INSTALL\INSTSUPL.SQL script.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.00. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Additional query words: sql6 documentation error
Keywords : SSrvDoc_Err kbbug6.00
Version : 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: March 23, 1999