sp_OACreate

  • Hi,

    I have just backed up and restored a DB to a diffrent server (both SQL 2008 R2 sp1 x64 dev) and I have noticed a scipt is failing. On the orginal server sp_OACreate 'SQLDMO.SQLServer' generates a number on the new server it returns a null. I have no idea why.

    DECLARE @object int

    DECLARE @hr int

    EXEC @hr = sp_OACreate 'SQLDMO.SQLServer', @object OUT

    print @object

    Many thanks

  • its the SQLDMO which is the problem

    Install Microsoft SQL Server 2005 Backward Compatibility Components (if you have to)

    Or even better use SQL Server Management Objects (SMO)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply