5.3. SERVER SHUTDOWN
5.3.1. MSS 2000
Use the following steps to gracefully shut down an SQL Server in MSS 2000.
1. | Broadcast a shutdown message. (See BOL: Broadcasting a Shutdown Message). Execute the following in a Windows Command Window (DOS window).
C:\> net send /users "SQL Server AMY is going down for maintenance in 20 minutes. Please finish work and disconnect asap." |
2. | Open an Enterprise Manager and Query Analyzer as sa. This must be done before pausing the server since you can't connect after pausing. |
3. | PAUSE the SQL Server.
You can use Enterprise Manager or Service Manager. According to Books ... |
Get Transact-SQL Desk Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.