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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Start up login account

Author  Topic 

CanadaDBA

583 Posts

Posted - 2007-11-01 : 11:41:42
How can I find out what is the SQL Server Service start up account without looking into Windows Services on the server?

Canada DBA

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2007-11-01 : 13:16:38
in EM, right-click server, click properties. go to security tab. startup account is at the bottom of the page
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2007-11-01 : 13:29:08
There are "System account" and "This account" but both are in gray meaning they are not accessible or off. While I know on the machine, the starter account is an account mentioned in "This account" box. Why is like that?
Isn't there a SQL command for it?

Canada DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-01 : 13:47:54
It's stored in the registry, so you can use xp_regread to get it. Just find the registry key.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-01 : 23:22:39
Or check it in services applet.
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2007-11-05 : 14:40:32
I thought there is a TSQL command that I can run in QA and find out the account easily but it seems the best way is to use Services.msc and connect to other computers and look for the accounts.

Canada DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-05 : 14:43:05
Well you can use T-SQL to do it. Just find the location in the registry where this information is stored, then use xp_regread to read it programmatically.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2007-11-05 : 14:51:31
I was not sure if I had to do this (finding the location in the registery) for every server.

Canada DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-05 : 14:53:38
It will be the same location for all servers!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2007-11-05 : 15:10:03
Good to know. I will find and make it handy. Thanks Tara!

Canada DBA
Go to Top of Page
   

- Advertisement -