Hi All
Is it possible to run a TSQL query (aka 'SELECT * FROM' etc) from within a VB Script. Ive made the following connection from the VB Script, is this the right method of connecting into SQL to then run the TSQL Query?
----------
strDBServerName = "."
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
-----------
Any pointers much appreciated.
Kind Regards
Andrew
Is it possible to run a TSQL query (aka 'SELECT * FROM' etc) from within a VB Script. Ive made the following connection from the VB Script, is this the right method of connecting into SQL to then run the TSQL Query?
----------
strDBServerName = "."
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
-----------
Any pointers much appreciated.
Kind Regards
Andrew