SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


how to genertae meta data of OLE DB Source/Flat File Destination dynamically?


how to genertae meta data of OLE DB Source/Flat File Destination dynamically?

Author
Message
den_sidr
den_sidr
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 174
Gentlemen,
i use DataFlow Task in a 'foreach loop' container to transfer different data sets to different files.
DataFlow Task consists of OLE DB Source with sql command from variable and Raw File Destination.
when the data set is the same like default set defined in variable it works fine.
but with defferent data set it fails during validation:

Warning: 0x800470C8 at Load the raw file, OLE DB Source [141]: The external columns for component "OLE DB Source" (141) are out of synchronization with the data source columns. The column "..." needs to be added to the external columns.
The external column "..." (208) needs to be removed from the external columns.
Error: 0xC004706B at Load the raw file, SSIS.Pipeline: "component "OLE DB Source" (141)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

is it possible to configure OLE DB Source/Flat File Destination dynamically on a data set with any structure?
or maybe thereis only one solution to code it in C# script for example like this:
http://www.sqlis.com/sqlis/post/Creating-packages-in-code-OLE-DB-Source-to-Flat-File-File-Destination.aspx
herladygeekedness
herladygeekedness
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1356 Visits: 813
I'm not a guy, but I can tell you that there is no provision for dynamic source out of the box.




den_sidr (10/18/2012)
Gentlemen,


i use DataFlow Task in a 'foreach loop' container to transfer different data sets to different files.
DataFlow Task consists of OLE DB Source with sql command from variable and Raw File Destination.
when the data set is the same like default set defined in variable it works fine.
but with defferent data set it fails during validation:

Warning: 0x800470C8 at Load the raw file, OLE DB Source [141]: The external columns for component "OLE DB Source" (141) are out of synchronization with the data source columns. The column "..." needs to be added to the external columns.
The external column "..." (208) needs to be removed from the external columns.
Error: 0xC004706B at Load the raw file, SSIS.Pipeline: "component "OLE DB Source" (141)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

is it possible to configure OLE DB Source/Flat File Destination dynamically on a data set with any structure?
or maybe thereis only one solution to code it in C# script for example like this:
http://www.sqlis.com/sqlis/post/Creating-packages-in-code-OLE-DB-Source-to-Flat-File-File-Destination.aspx

Ray M
Ray M
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5157 Visits: 1076
as mentioned the flat file destination is a definition of what the file will look like. It does not offer any runtime configuration.

To do as you mention then you need to use a script task. as in that link.
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