hi experts,
This is SQL Server 2000 SP3a.
I've found that you can gain most of the benefit that a reboot gives, by just stopping and starting the SQL Server and SQLServer Agent. I've been doing this via Enterprise Manager and it helps performance because it trims the size of tempdb and breaks all the client connections.
(I do this rarely and only when the clients are aware that they will lose their connections, etc.)
I want to create a *SQL Server Job* to automate and schedule a stop and start of MSSQLServer and SQLServerAgent.
The net stop MSSQLServer only works from a command line, right?
I can use the SHUTDOWN command in a stored proc or Query Analyzer but what is the command to START MSSQLServer ?
Any ideas ?
Thanks, John
This is SQL Server 2000 SP3a.
I've found that you can gain most of the benefit that a reboot gives, by just stopping and starting the SQL Server and SQLServer Agent. I've been doing this via Enterprise Manager and it helps performance because it trims the size of tempdb and breaks all the client connections.
(I do this rarely and only when the clients are aware that they will lose their connections, etc.)
I want to create a *SQL Server Job* to automate and schedule a stop and start of MSSQLServer and SQLServerAgent.
The net stop MSSQLServer only works from a command line, right?
I can use the SHUTDOWN command in a stored proc or Query Analyzer but what is the command to START MSSQLServer ?
Any ideas ?
Thanks, John