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

Enter image details here

I select the query in a configuration (XML) file, Age of exp> 4) Want to

  1. Create a package level variable for your query:

  2. SQL command instead of SQL command Change your source editor ("with the appropriate variable") to use: Enter image details here

  3. Go to the SSIS menu and click on "Package Configuration ..." and then click To enable the package configuration, click the "Add ..." button Enter image details here

... 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.

  1. Find your variable, find the value property for the variable, and check the box for it. Click Next. Enter image details here

  2. For any of your configurations choose name .

  3. 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 Enter image details here


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

Python Gstreamer for Lion -