Hi,
I have a vbscript that uses SQLDMO and an input file to perform a query on the sql database and return the results to a msgbox.
To create the connection I use:
Set objServer = ("SQLDMO.SQLServer2")
and login with the current user account:
objServer.LoginSecure = True
objServer.Connect "(local)"
the script works great when run on the server that houses the MSSQL server.
However, I would like to be able to run this from a workstation on the same network.
Is there a way to modify the script to allow this?
Thanks in advance!
I have a vbscript that uses SQLDMO and an input file to perform a query on the sql database and return the results to a msgbox.
To create the connection I use:
Set objServer = ("SQLDMO.SQLServer2")
and login with the current user account:
objServer.LoginSecure = True
objServer.Connect "(local)"
the script works great when run on the server that houses the MSSQL server.
However, I would like to be able to run this from a workstation on the same network.
Is there a way to modify the script to allow this?
Thanks in advance!