B
BC
Hi,
I am trying to run some vbscripts on my computer, but I always get the
following failure.
Can anybody suggest a way out of this problem?
TIA
Bob
The Error popup contains
Script: small.vbs
Line: 4
Char: 1
Error: 0x80041002
Code: 80041002
Source: null
I am running SQL server 2000 with the WMI installed and service pack 3
applied on a Windows XP Pro machine with SP1 applied.
THe script is:
sComputer = "QEMS-02" '-- name of the computer where SQL Server is installed
sSQLServer = "QEMS-02" '-- name of the SQL server instance
wscript.echo "Before instance"
set oInstance = GetObject("winmgmts:{impersonationLevel=impersonate}//" & _
sComputer & "/root/MicrosoftSQLServer:MSSQL_SQLServer.Name=" & _
Chr(34) & sSQLServer & Chr(34))
wscript.echo "After instance"
I am trying to run some vbscripts on my computer, but I always get the
following failure.
Can anybody suggest a way out of this problem?
TIA
Bob
The Error popup contains
Script: small.vbs
Line: 4
Char: 1
Error: 0x80041002
Code: 80041002
Source: null
I am running SQL server 2000 with the WMI installed and service pack 3
applied on a Windows XP Pro machine with SP1 applied.
THe script is:
sComputer = "QEMS-02" '-- name of the computer where SQL Server is installed
sSQLServer = "QEMS-02" '-- name of the SQL server instance
wscript.echo "Before instance"
set oInstance = GetObject("winmgmts:{impersonationLevel=impersonate}//" & _
sComputer & "/root/MicrosoftSQLServer:MSSQL_SQLServer.Name=" & _
Chr(34) & sSQLServer & Chr(34))
wscript.echo "After instance"