Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to use .xlsb file in SSIS 2005


How to use .xlsb file in SSIS 2005

Author
Message
sqlstud
sqlstud
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 237
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
Mordred
Mordred
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 495
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 Sub
Hopefully this helps!

Regards:
Mordred
Keep on Coding in the Free World
sqlstud
sqlstud
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 237
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
Attachments
xlsb Error.jpg (9 views, 25.00 KB)
sqlstud
sqlstud
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 237
Hi,

IS there any solution?
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8263 Visits: 14368
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search