Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBScript and SMO

$
0
0

I've have a vbscript that utilizes sql-dmo and accesses sql 2005 and sql2008 r2(with back ward compatability).  I now have a sql 2012 server where this script no longer works.  I've attempted to change the sql-dmo to smo per the documentation, but am getting an error right from the start. 

Set objSqlServer = CreateObject("Microsoft.SQLServer.Management.SMO.Server")  returns "Microsoft VBScript runtime error: ActiveX component can't create object: 'Microsoft.SQLServer.Management.SMO.Server'"

Does this not work using vbscript?  If not, what is my best course of action.

thanks in advance for any help on this.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>