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] "jim" <jfrierso@yahoo.com> wrote in message
news:04c501c3683a$b107dbe0$a501280a@phx.gbl...
> 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