Groups | Blog | Home
all groups > sql server connect > august 2003 >

sql server connect : auto start service when OS starts


jim
8/21/2003 4:19:38 PM
Is there a way to auto start sql service when OS starts
w/out using sql server service manager? That is, via code.


any help is appreciated


jim
8/22/2003 8:18:11 AM
Hello Jacco,

I forgot to mention this in the post, but I am running sql
server on a windows 98. Will what you have suggested still
work?

any help is appreciated

jim
[quoted text, click to view]
Jacco Schalkwijk
8/22/2003 8:53:00 AM
Hi Jim,

The Service Manager changes the registry key
SYSTEM\CurrentControlSet\Services\MSSQLServer\Start
so you can change that as well programatically. A value of 2 means AutoStart
when OS Starts and 3 means Do not AutoStart when OS Starts.



--
Jacco Schalkwijk MCDBA, MCSD, MCSE
Database Administrator
Eurostop Ltd.


[quoted text, click to view]

AddThis Social Bookmark Button