dbTalk Databases Forums  

importing excel file using SSIS error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss importing excel file using SSIS error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
terry
 
Posts: n/a

Default importing excel file using SSIS error - 01-20-2006 , 12:06 PM






Hi -

I'm pretty new to dts, but I've been able to import a few files so far.
I tried to change the data access mode to "Table name or view name
variable" (I'm importing an excel file), and then I provide the
variable name that has the filename in it.

I get this error:
===================================

Error at Data Flow Task [Excel Source [1]]: A destination table name
has not been provided.

(Microsoft Visual Studio)

===================================

Exception from HRESULT: 0xC0202042
(Microsoft.SqlServer.DTSPipelineWrap)

------------------------------
Program Location:

at
Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedC omponentWrapperClass.ReinitializeMetaData()
at
Microsoft.DataTransformationServices.DataFlowUI.Da taFlowComponentUI.ReinitializeMetadata()
at
Microsoft.DataTransformationServices.DataFlowUI.Da taFlowAdapterUI.connectionPage_SaveConnectionAttri butes(Object
sender, ConnectionAttributesEventArgs args)


I have no idea where I'm supposed to put a destination table. I've
tried googling the error, but haven't found much.

Thanks for your help!
Terry


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: importing excel file using SSIS error - 01-21-2006 , 04:54 AM






Hello Terry,

You are not using DTS you are using SSIS, a very different animal.

The filename is not the name of the table or view. The filename would be
the ExcelFilePath property of the Excel Connection Manager. The name of
the table will be the OpenRowset property of the Excel Source Adapter and
will look something like Sheet1$


Allan




Quote:
Hi -

I'm pretty new to dts, but I've been able to import a few files so
far. I tried to change the data access mode to "Table name or view
name variable" (I'm importing an excel file), and then I provide the
variable name that has the filename in it.

I get this error:
===================================
Error at Data Flow Task [Excel Source [1]]: A destination table name
has not been provided.

(Microsoft Visual Studio)

===================================

Exception from HRESULT: 0xC0202042
(Microsoft.SqlServer.DTSPipelineWrap)
------------------------------
Program Location:
at
Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedC omponentWrapperClass
.ReinitializeMetaData()
at
Microsoft.DataTransformationServices.DataFlowUI.Da taFlowComponentUI.Re
initializeMetadata()
at
Microsoft.DataTransformationServices.DataFlowUI.Da taFlowAdapterUI.conn
ectionPage_SaveConnectionAttributes(Object
sender, ConnectionAttributesEventArgs args)

I have no idea where I'm supposed to put a destination table. I've
tried googling the error, but haven't found much.

Thanks for your help!
Terry



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.