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)
 SQL-DMO Status error for Windows 2003 SP1.

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, ostatus
set oserver = CreateObject("SQLDMO.SQLSERVER")
oserver.name = "(local)"
set ostatus = oserver.status
msgbox "server status: " + ostatus

It would fail when I try to retrieve status.

SQLServer and SQLServerAgent are started under LocalAccount.

Any ideas?

Appreciate all your help.

Thank you,
Murali."
   

- Advertisement -