Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how to genertae meta data of OLE DB Source/Flat File Destination dynamically? Expand / Collapse
Author
Message
Posted Thursday, October 18, 2012 12:57 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Yesterday @ 8:31 AM
Points: 13, Visits: 151
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
Post #1374165
Posted Thursday, October 18, 2012 9:29 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 11:21 AM
Points: 285, Visits: 768
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
Post #1374436
Posted Thursday, October 18, 2012 10:40 AM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: 2 days ago @ 1:52 PM
Points: 1,478, Visits: 1,020
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.
Post #1374491
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse