Skip to Content
0
Apr 27, 2018 at 06:54 PM

Dynamically refreshing a trusted sql server connection on SQL Server 2012

88 Views

I have a c# program that will correctly replace a trusted database connection the first time a report runs. When I select another database, and run the same code to replace the connection with the new database name, the database connection does not get updated with the latest database name. When the report completes, it still uses the first selected database connection. Thank you