1

I wouldn't be suprised if this turned out to be a BIDS function rather than available through EzAPI.

I've written some code using EzAPI to generate an SSIS package with an OLEDB source and destination. The Destination table however does not exist and I'd like it to be created in the same way the new button would work in BIDS. Is this possible?

billinkc
  • 59,250
  • 9
  • 102
  • 159
Steve Homer
  • 3,852
  • 2
  • 22
  • 41

2 Answers2

2

You can create tables (or run other DDL) from an SSIS Control Flow. Is there some reason that approach won't work for you here?

RickNZ
  • 18,448
  • 3
  • 51
  • 66
  • The SSIS packages are generated dynamically from the underlying access databases and so this would mean creating the DDL programatically (converting types and so on). In fact this is what I'm doing now as the project had to move on. – Steve Homer Jan 11 '12 at 09:09
1

in general you are right, that this is a functionality of the BIDS. But you can use SQL Task Component for running DDL Script.

The Destination component has also ValidateExternalMetadata property. If you set it to false, then SSIS will not validate you the destination against the database. This flag can be used if the destination table does not exist when you are generating your package . In your case you should disable validation.

qwertz1123
  • 1,173
  • 10
  • 27