DTS Error

  • I am running the following code on my server and some how it doesnt like it. The server is a SQL Server-2006-64 bit. Can someone please suggest?

    Code:

    DECLARE @objPackage int

    DECLARE @rc int

    Declare @hr int

    DECLARE @output varchar(255)

    DECLARE @source varchar(255)

    DECLARE @description varchar(255)

    EXEC @rc = sp_OACreate 'DTS.Package', @objPackage OUT

    IF @rc <> 0

    BEGIN

    EXEC @hr = sp_OAGetErrorInfo @objPackage, @source OUT, @description OUT

    IF @hr = 0

    BEGIN

    SELECT @output = ' Source: ' + @source

    PRINT @output

    SELECT @output = ' Description: ' + @description

    PRINT @output

    END

    RETURN

    END

  • Sorry the error what i get is as follows:

    Source: ODSOLE Extended Procedure

    Description: Class not registered

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

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