Connection String to MDB file a variable

Stimulsoft Reports.NET discussion
Post Reply
dpeel2757
Posts: 19
Joined: Fri Feb 29, 2008 6:09 pm

Connection String to MDB file a variable

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Connection String to MDB file a variable

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