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.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-03-27 : 09:11:23
|
Murali writes "Hello All,I am trying to run a simple vb script that would return the status of SQL Server on a windows 2003 server with sp1, but my script fails with a "Access Denied" error.Here is my script.dim oserver, ostatusset oserver = CreateObject("SQLDMO.SQLSERVER")oserver.name = "(local)"set ostatus = oserver.statusmsgbox "server status: " + ostatusIt would fail when I try to retrieve status.SQLServer and SQLServerAgent are started under LocalAccount.Any ideas?Appreciate all your help.Thank you,Murali." |
|
|
|
|