Page 1 of 1
Connection String to MDB file a variable
Posted: Wed Aug 03, 2011 9:43 am
by dpeel2757
Is there a way to make the connection string used to connect to a database a variable. For both the path to the database and also the name. I have the situation where the database will be the exact same format but it's location and name will change.
Connection String to MDB file a variable
Posted: Thu Aug 04, 2011 1:55 am
by Alex K.
Hello,
Specifying a connection string via the variable is not possible. As a way, you can change the connection string from the code of your application:
Code: Select all
((StiSqlDatabase)report.Dictionary.Databases["Connection"]).ConnectionString = newConnectionString;
Thank you.