The information in this article applies to:
SUMMARYThe SQL Service Manager provides a way to remotely start and stop SQL Server. However, the SQL Service Manager can not be used to start and stop SQL Server from a batch file or Windows NT Command Prompt. The AT scheduler from Windows NT and the Remote Command Server from the Windows NT version 3.5 Resource Kit both allow the ability to start and stop services from the NT Command Prompt, provided that you have privileges to start and stop services on the remote machine. MORE INFORMATIONTo use the Remote Command Server serviceAfter installing the Windows NT 3.5 Resource Kit on the SQL Server machine, use the following steps to install the Remote Command Service:
RCMD \\<Remote Machine> <Command> For example, if you want to be able to stop SQL Server remotely on a machine named 'NT35Server'. Install the Resource Kit and Remote Command Service on 'NT35Server'. Then run RCMD on the machine that you want to control the machine 'NT35Server' with as follows: RCMD \\NT35Server NET STOP SQLSERVER To use the AT schedulerNOTE: This method will not work in a batch file, because you need to know the current time of the remote machine.
AT \\NT35Server 12:02:00pm NET STOP SQLSERVER Additional query words: remote cmd Windows NT
Keywords : kbtool SSrvWinNT |
Last Reviewed: April 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |