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.