Massive query into Execute query task
If you have a query that 10,000 lines long, how do you get it into SSIS?
November 23rd, 2010 9:30am

You could save it as a View in the SQL database, then simple reference the view name in the OLE DB Source adapter. What exactly are you wanting to do with this query in SSIS?Todd C - MSCTS SQL Server 2005 - Please mark posts as answered where appropriate.
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2010 9:49am

Its basically a cursor, then a bunch of dynamic sql.
November 23rd, 2010 9:54am

Create a stored proc and just call the stored proc with various parameters? Tweet me..
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2010 12:03pm

Save the query into a file (or perhaps it's already in one), and use an Execute SQL Task, setting the "SQLSourceType" to "File Connection", and create a connection manager for the file. Talk to me now on
November 23rd, 2010 9:28pm

I wound up saing the query to a file. Then hitting browse and loading the query in that way. It loaded it all in. I had to use ADO.net source btw.
Free Windows Admin Tool Kit Click here and download it now
December 6th, 2010 9:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics