Configuration files in ssis
Can I create two config files for one package, So that one would point to Test server and other to production server, As I don't want to change the server
If yes then is there any way to control those config files i.e letting only Test or production config files to be used when required?
Thanks,
sree
Hi sree,
If I understand correctly, you want to create two config files, one for Test server, another for Prod server. So that you don’t need to change a value in the config file in different server.
If in this scenario, we can create two config files, one with corresponding properties values in Test server, another with corresponding properties values in Prod server in the same path, like C:\ssis_package.dtsConfig. Then when we run the package in Test
server, we can use the Test server config file; when we run the package in Prod server, we can use the Prod server config file.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Similar Messages
-
Best practice with respect to wcf configuration files for SSIS
So after reading a lot of posts and blogs on how to configure SSIS to read from configuration files , I am still not clear and would like any expert to provide a definitive stance. In my case the WCF service consumption is wrapped into a separate assembly.
I am referencing the assembly in an embedded C# script within my SSIS package.
When I make the helper class call to the webservice , I get the endpoint not found WCF exception.
Keep in mind I am running this from VS 2012 IDE and did the following to make sure the WCF call works:
1. Googled and found that you need to have config entries in DtsDebugHost.exe.config file. But it still did not work
2. Had the same entries in the associated app.config file for C# script but it still did not work.
It seems like SSIS is very fragile w.r.t consuming WCF entires in a config file. Is the best practice to just have the end point created in code and externalize the end point as a SSIS variable / xml file or is there really a way to get these config files working.
Attached is the wcf snippet of my config file.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ITransactionProcessor">
<security mode="TransportWithMessageCredential" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor" binding="basicHttpBinding" bindingConfiguration="ITransactionProcessor" contract="CyberSource.ITransactionProcessor" name="portXML" />
</client>
</system.serviceModel>
SMI have the code working without use of config files. I am just disappointed that it is not working using the configuration files. That was one of the primary intents of my code re-factoring.
Katherine
Xiong , If you are proposing this as an answer then does this imply that Microsoft's stance is not to use configuration files with SSIS?? Please answer.
SM -
How can apply configure file in ssis by using script task ?
I had two config file in ssis
1. config file as per QA
2. config file as per Production
I think apply dynamically by using script task for above file (acc to server)
How can I apply in script task for config file path in C# script
any one provide Helpful code ??
ThanksI applied script Task with below code :
public void Main()
//User::Config,User::Config_Pd,User::Config_QA
Application App = new Application();
Package Pack = new Package();
DTSExecResult pkgResults;
string strPackageName;
string filename = "";
string configvalue;
configvalue = Dts.Variables["Config"].Value.ToString();
strPackageName = Directory.GetCurrentDirectory().ToString() + "\\Excel Reports from Remittance advice\\Child.dtsx";
try
Pack = App.LoadPackage(strPackageName, null);
if (Pack != null)
if (configvalue == "DEV")
filename = Dts.Variables["Config_QA"].Value.ToString();
else if (configvalue == "PROD")
filename = Dts.Variables["Config_Pd"].Value.ToString();
else
Dts.TaskResult = (int)ScriptResults.Failure;
System.Windows.Forms.MessageBox.Show("Unable to bind the XML Configurations");
return;
} System.Windows.Forms.MessageBox.Show("Config:"+filename);
Pack.ImportConfigurationFile(@filename);
Pack.EnableConfigurations = true;
Pack.Configurations.Add();
App.SaveToXml(strPackageName, Pack, null)
pkgResults = Pack.Execute(); //Pack.Execute();
System.Windows.Forms.MessageBox.Show("Results:" + pkgResults.ToString());
Dts.TaskResult = (int)ScriptResults.Success;
But ouput in ssis showing as
But some thing missed in code plz help me ... -
Can I have one configuration file for all the packages I have created, So that changing server name will change all packages server names?
If yes, help me out in doing it.
Thanks,
Sri
sreeConfig file has to be deployed separately. You can share config files across packages so far as connections/ items are all similar. While using config files its best to use indirect configuration so as to determine file location dynamically at runtime
http://bi-blogger.typepad.com/etlbi_blogger/2008/05/using-indirect-configuration-with-ssis.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to change destination table dynamically in configuration file in ssis?
hello,
i have a package i am having one data flow task.in data flow task i have one source and one destination.source and destination are different.i have created xml configuration file by configuring source and destination connection
strings.
now i want to change destination in the same server to different database with out opening the package.i want to directly change in the config file.we can change it by modifying configured value proerty and intial catalogue value.but if the table is not
existed in the changed database.how we can create it dynamically.HI jiri Neoral,
thanks for reply,as you said above process by this we can do change only databasename.if in my destination database,the table which i used in package is not existed,can we create it dynamically
using config file.later changing table name is possible?
For that you need to have a step in SSIS package prior to data flow task to check if table exists and if not create it
You can use execute sql task with query like below
IF OBJECT_ID('TableName') IS NULL
CREATE TABLE TableName
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hello, everyone,
I have an SSIS package with a XML package configuration file. I deployed it to the sql server using the import feature in SSMS (in Stored Packages, right click MSDB, select Import, select the package to deploy in file system). My question is
Is the XML package configuration file also deployed? If so, which folder is it stored so that I can change the values in it? If not, is setting up the Configuration tab when scheduling a agent job the way to go manually bring the configuration file in?
Your help and information is much appreciated.
RegardsThank you Arthur for your reply. I appreciate it.
A followup questions:
I used direct setting for the configuration file path on C:\. But it needs to be on D:\ on the remote server. I can't create the D:\ path because I don't have D:\ drive on my computer (I understand I could use indirect setting to change the path in the remote
server. But that's not the concern here).
My question is: since the configuration is not deployed, can I make it up by setting up the Configurations in creating the agent job step? That is, copy the configuration file to the D:\ drive on the remote server, in Configurations tab, add the configuration
file on D:\ to the configuration. Will it work? Will the package still look for the original config file on C:\? and if it doesn't find it there, will it cause any error?
Thank you in advance for your help.
Regards -
window 2008 R2 server ---- after installing SQL 2008 R2 then applying sp2 / sp3 I noted a warning -
Note this server had SQL 2008 R2 uninstalled previously.
MS ssis service: registry setting specifying configuration file does not exist. attempting to load default configuration file.
SQLIService100 - source
event id- 274
user - N/A
Task category - service control.
Do we need to fix something and how do we fix this warning event?
dskYou could search online for this warning. I was able to find http://superuser.com/questions/346264/event-log-warning-registry-setting-specifying-configuration-file-does-not-exist
where the fix is "in your registry, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile
or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\ServiceConfigFile
if value is empty then add in:
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsSrvr.ini.xml"
Arthur
MyBlog
Twitter -
Hi
I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
I want to use only one XML config file for this master.
How do i use same for all child packages?
and can i do it with parent package variable?I created a master package with a variable master, and in value i have entered the configuration file path.
Hi vjp dinu,
You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
for the variables of the parent package.
Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
parent package and the specified values will passed to the child packages.
Reference:
http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html
Regards,
Mike Yin
TechNet Community Support -
Package Configuration Files Not loading SSIS 2012
I've migrated an SSIS 2008 project to SSIS 2012 that uses xml configuration files. When I execute the first package through the IDE, the values in the config file are not populating variables as they did in SSIS 2008. I've enabled Package Configurations
and added the config files and not sure what I could be doing wrong. Could anyone offer any suggestions.
ThanksSomeone else migrated it for me before I had vs2012 installed. So I decided I would try migrating it myself. Now the config files are loading. When I migrated it there was an option for ignore config files that was checked. I unchecked it. Could that have
been the problem?
I just have one more issue now...Whenever I open the solution, it loads the config files, but two passwords are encrypted. For some reason it tries to login to the database when I load the package. This didn't occur in SSIS 2008. Do you know of any way to
disable this? I get about 2 failures before I'm locked out of the db.
Thanks -
Adding semicolon at the end of text file in ssis
Hi,
I have created a flat file through ssis. My input is excel file. I have 21 columns in excel so when i created flat file with row deliminator as CR LF and column del as ; i got 20 semicolons total for 21 coloums which is guinine . but i need 21 ; for all
21 coloumns.
Current scenario (e.g)
a b c
1;2;3
But i need 1;2;3;
Can anybody help me please..Its really a business need and i need to do this
AbhishekAbishek,
You could try having a Derived Column task inbetween the Excel source and Flatfile destination.
Add a derived column task
Configure the new column name by giving a name and choose input as the last column anme of excel (col21)
Use expression to add the ';' to the last column
(DT_WSTR,100)column21 + ";"
Then, map THIS new column to col21 of flatfile in the mappings tab of the flatfile destination task respectively.
For more info on the Derived Column task, check:
http://sqlblog.com/blogs/andy_leonard/archive/2009/02/04/ssis-expression-language-and-the-derived-column-transformation.aspx
Hope that helps!
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to control which Configuration File a package Opens with in MS Visual Studio 2008 ?
When running our jobs, I know which Configuration File is being used, as it's specified in the path.
But when opening SSIS Jobs in MS Visual Studio, lets say there is four different Config files.
How do you control which one is used when you are working with the job in Visual Studio?
For example in the above screen, you can 'Add' or 'Edit' or 'Remove' Configurations but you can seem to say
"Reload this package with x Configuration", or "Select this particular one at the moment" for instance?The configuration file mentioned last in the above screen is the one loaded last and the values of this file are applied. You can specify the sequence of the file with the arrow buttons on the right in case if you want a different config file to be loaded
in development and then change them back when you are deploying the package as a job.
Surender Singh Bhadauria
My Blog -
"dtutil", how to tell which configuration file for packages using after deployment?
Hello All,
Trying to achieve this feature,
Using DOS command to automatic my deployment process--glad I found dtutil. However, it doesnt give you any chance to identify which configuration file to be used by SSIS packages after deployment.
Deployment Method: file deployment
Configuration sued: XML file and SQL Table. IN XML file, it tells which DB connection for packages to look up the configuration table.
Who can share some thoughts on this?
DerekIt is NOT about sequence.
It is about how to point which configuration file to be used by deployed packages as during the "dtutil.exe"
deployment, you dont have chance to identify which physical location confg files to be used.
Derek
That you do only at the time of execution of packages. By default it uses configuration settings created at design time within the package. If you want to override it, you can use \Configfile switch of dtexec for that. You can also set explicit values for
properties using /SET switch
http://technet.microsoft.com/en-us/library/ms162810(v=sql.105).aspx
See this to understand how configs are applied in runtime
http://technet.microsoft.com/en-us/library/ms141682(v=sql.105).aspx
and this to understand behaviour difference in ssis 2008
http://technet.microsoft.com/en-us/library/bb500430(v=sql.105).aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Configuration File using a different user id and Password
Hi,
I have a SSIS package that I have deployed to various environments and was able to successfully run. The last environment causes some problems. At first I thought that it was a connection issue with SQL Server. I attempted to change the
user id and password for the db in the configuration file and am still getting errors.
When I attempt to connect to the db using those same credentials, I can log in to the database.
Any idea's what to look for? Is there anything else I can try?
Thanks in advance and regards,
NadimHi,
Below is the message; Thanks in advance. The connection credentials are ok; I can log in with them using a udl file for this purpose.
Microsoft (R) SQL Server Execute Package Utility
Version 10.0.2531.0 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started: 9:15:28 PM
Error: 2014-03-01 21:15:46.33
Code: 0xC0202009
Source: DPDMultumMain Connection manager "Staging"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Login timeout expired".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found
or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. ".
End Error
Error: 2014-03-01 21:15:46.33
Code: 0xC020801C
Source: DPDMultumMain Log provider "SSIS log provider for SQL Server"
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Staging" failed with error code 0xC0202009. There may be error messages posted before this
with more information on why the AcquireConnection method call failed.
COM error object information is available. Source: "DPDMultumMain" error code: 0xC0202009 Description: "SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Login timeout expired".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found
or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. ".
End Error
---------------------------- Thanks. ------------------------------ -
Imac is no longer able to open the Configuration file
Hi ,
I have an imac ( ilamp) 20' connected to ADSL, via Netopia Router which is connected to the Airport extreme connected to imac, for the PB Aluminum Tiger 10.4.5. we both can connect. PB can print via imac/printer.
The imac is no longer able to open the Configuration file, when i enter the pswd which is correct, i get the message "The Airport Admin. Utility was unable to read the configuration of the selected base station an error occurred while reading the configuration "
My Beau updated Airport to V5.7, this is the first time since the update I've tried to access the conf. file for the imac which i have done numerous times prior.
I have a new base station Ip address 254.128.0 in Airport Utility Admin, on the imac which does not reflect my network settings anywhere, and is not what it use to be, i think, it was one value different than the PB.Base station IP. I do not know how it changed neither one of us changed it.
I tried using the Airport Setup assistant (imac), I received this message:
"Appropriate Airport hardware was bot found on this computer,if you recently
Installed, an Airport card,please shut down your computer$ make sure the card is properly istalled."
The imac does not have a card, nor do i think it needs one.
I would like to be able to at least open the configuration file.
Thank you for reading my post.
Eme
Power PC G4 (3.3) iMac♥ Flat Panel 10.3.9 & 15 Alum.PowerBook Tiger Mac OS X (10.4.4)Hi Kes, a star for the company !
I made an error on my first post I have a Netopia modem, Airport router.
And so it remains, i guess that there must be an easy answer somewhere
that I am missing that I/we should read, some direction to that would be helpful, and I would be very appreciative.
As I said the password had been set, and it is not an issue of that being forgotten, i wondered if it was changed back to "public" tried, not it.
particular because everytime the imac wakes one of the folders on ( no one else in office just me and boyfriend and it is his work folder he has a copy on the PB.( the folder on desk top has been clicked on, the one with sensitve info, i have backed the folder up and secure trashed it, just in case some security issue hacking has taken place, thats closing the barn door after the fact.
Good luck,w/ this Q.
regards Eme
Power PC G4 (3.3) iMac ♥ Flat Panel 10.3.9 & 15 Alum.PowerBook Tiger Mac OS X (10.4.5) -
No dsn is present in the configuration file in the reporting services 2008
HI i have found this error in the log file of my reporting services ,
when i comes to the Configuration file in that
my DSN path is empty no input code is there in that DSN tags
<DSN>
<DSN/>
it shows the empty tags,
and my Current Report Server Report Credentials are Windows,Service account credentails
will it take the problem or what
We have repair the BIDS setup also still not able to solve my issue.
once this is resolved now able to send the emails using subscriptions.
pls infom abut this , i have sufferd this problem last 20 days.
Please update the above query with high priority
TanQHi Ychinnari,
According to your description, you found error in log file of reporting services, when you come to rsreportserver.config file, the DSN tag is empty.
DSN specify the database server that hosts the report server database connection string. The report server database is created, this value will be encrypted and added to the configuration file. To solve the problem, we need to connect to either an
existing report server database or create a new one for this instance. For detail information, please refer to the following steps:
Start the Reporting Services Configuration Manager and connect to the report server instance for which you are creating the database.
On the Database page, click Change Database.
We can create a new report server database or select an existing database, then click Next.
Connect to the instance of the Database Engine that you will use to create and host the report server database.
Specify properties used to create the database.
Specify the credentials used by the report server to connect to the report server database.
Review the information on the Summary page to verify the settings are correct, and then click Next.
Verify the connection by clicking a URL on the Report Server URL page or Report Manager URL page.
For detail information about Configure a Report Server Database Connection, please refer to the following document:
https://msdn.microsoft.com/en-us/library/ms159133.aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support
Maybe you are looking for
-
Varchar2, empty strings and NULL
Hi all, When inserting an empty string into a column of type varchar2 - is a NULL value stored in the column by the database? I've seen conflicting reports, and I know that the SQL 1992 spec specifies that empty strings not be treated as a NULL value
-
The newest iTunes version has no Help option. Why? And, no ability to find out the version number. The new iTunes, when in album view in Windows 7, has NO SCROLLBARS, so it is impossible to scroll the albums. Why? Answer these questions, as I am a
-
Ipod touch 2g trouble while charging
i had my ipod for +- 3 years, but 2 months ago charging it became a problem. when i connect it to pc it doesnt start charging, when it finnaly starts charging the most small movement makes it stop, it keeps shifting from charging (ray on battery) to
-
Schedualed report fails within seconds, infoview ok
Windows Server 2003 R2 Standard (64) SP2 BusinessObjects XI 3.1 (any guidance on how to find the current FP applied is welcome) Reports run through infoview complete without issues, however if the same reports are scheduled with the same parameters t
-
Reference Table and Fields for Units and Currency
Can anyone advise on what the reference tables and fields are for currency and quantity key figures? Thanks I think for currency the table is TCURC and field is WAERS, does this make sense, not sure for the quantity though Message was edited by: