aktajay (7/29/2009)
Hi ,I want to execute multiple sql queries from any folder, I don't know how many sql queries in the folder ....I need to execute all one by one dynamically .Is threre any way for it through sql task ,i can execute one sql query in a perticular time.
tnx
I think you can add a foreach loop container, set the type to File enumerator, store the file name and path in a variable then use the execute sql task setting the SQLSourceType to a file connection.
In your file connection create an expression which sets the value of the ConnectionString property to be the value of the variable you set in the foreach enumerator.