Ticket S132999
Visible to All Users
Duplicate

DBUpdater - Provide the capability to pass a connection string as a parameter

created 15 years ago

Scenario: Multiple XAF databases, just 1 .config file, and i'm setting the ConnectionString at runtime.
Problem: I have 5 databases. Each time i must update my app, i must create 5 .config files, and pass each one to the DBUpdater tool. Also, each time i create a new database, i must remember to create one more .config file with its connection string.
Proposed Solution:
Being able to pass a ConnectionString directly to DBUpdater, so i can read all available connection strings from a source (XML for example), and do a foreach passing them to DBUpdater, doing a batch of updates on all databases.

Answers

created 12 years ago (modified 12 years ago)

I have implemented this suggestion in 12.2. Starting with this version you can use an optional '-connectionString' parameter followed with a custom connection string that will be used by the DBUpdater instead of the ones specific in the application configuration file or application itself.
Here is an example of how to use the new parameter:
D:\2012.2\XAF\Demos\CS\MainDemo\MainDemo.Win\bin\Debug>DBUpdater.v12.2.exe MainD
emo.Win.exe.config -connectionString "Integrated Security=SSPI;Pooling=false;Dat
a Source=.\SQLEXPRESS;Initial Catalog=Test"

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.