How to use .xlsb file in SSIS 2005

  • Hi,

    I have .xlsb file. It has been used as a source and to insert the data to staging table using ssis 2005.

    Please let me know how to use .xlsb file in SSIS 2005

    Regards

    SqlStud

  • Hi sqlstud,

    Right click in the Connection Managers window and select New File Connection. Next, click browse and select the xlsb file. You can then use code like (VB)Public Sub Main()

    Try

    Dim MyCon As ConnectionManager = Dts.Connections("Book1.xlsb")

    'Enter your code here

    Dts.TaskResult = ScriptResults.Success

    Catch ex As Exception

    MsgBox(ex.Message)

    Dts.TaskResult = ScriptResults.Failure

    End Try

    End SubHopefully this helps!

    Regards:
    Mordred
    Keep on Coding in the Free World

  • Hi,

    I am using SSIS 2005. IF SSIS 2008, we have MS Office 2007 provider

    So,As usual, created new OLEDB connection by choosing the provider Microsoft.ACE.OLEDB.12.0 and set Extended Properties=Excel 12.0;

    But got the attached Error

    Regards

    SqlStud

  • Hi,

    IS there any solution?

  • Sometimes the error messages can be red herrings, but other times they say exactly what needs to be done. Have you tried doing what the error message suggested?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 5 posts - 1 through 4 (of 4 total)

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