Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 stop and Start MSSQLSERVER by script

Author  Topic 

MGA
Starting Member

28 Posts

Posted - 2010-05-28 : 04:44:54
Is it possible to stop and Start MSSQLSERVER by script (by T-sql) as we can do from Sql server configuration manager ?

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-28 : 04:54:18
If MSSQLSERVER isn't running then how would you execute a T-SQL script?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

MGA
Starting Member

28 Posts

Posted - 2010-05-28 : 05:02:14
i want to do this becouse i am trying to copy the .mdf and .log files for a database from an application but it is not possible if the MSSQLSERVER is running.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-28 : 05:11:17
http://support.microsoft.com/kb/224071/en-us


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -