xml - How to get the SQL query from a file in SSIS -
I am new to SSIS. I have a database from which I am receiving data Suppose DB is source and destination Anything can happen. (I tried DB in Excel and it worked fine)
In the source I have a custom query to get the data I wrote in properties that
Now I want to change it. I want to put it in some configuration file (XML file). That is, I want to get source queries from the XML file. How can I do this?
I am trying to do things as a whole newbie so please give your answer in particular.
UPDATE :
This is my package
I clicked the wet DB source twice, now this is what I wrote there
I select the query in a configuration (XML) file, Age of exp> 4) Want to
-
Create a package level variable for your query:
-
SQL command instead of SQL command Change your source editor ("with the appropriate variable") to use:
-
Go to the SSIS menu and click on "Package Configuration ..." and then click To enable the package configuration, click the "Add ..." button
... By default, it uses an XML configuration file, which is probably easy to work with, specify the file name - file The extension is .dtsConfig. If the file is not present on your machine, it will make one for you. Click Next.
-
Find your variable, find the value property for the variable, and check the box for it. Click Next.
-
For any of your configurations choose name .
-
Find the configuration file on your file system, click again, then click Close in the package configuration list, so that you pay attention to your file system. If necessary, right-click an XML editor and edit
Comments
Post a Comment