4
Answers

how to compare two connection string in sql server

Najim Mulla

Najim Mulla

10y
876
1
sir i have two database one is connection string (year 2014-2015 ) && second is (year 2015-2016) the user select 2014-2015 the open database (year 2014-2015) connection string the user select 2015-2015 the open connction string is 2015-2016 how can possible in public class c# code
Answers (4)
0
Najim Mulla

Najim Mulla

NA 202 37.8k 10y
no sir online database string in web.config
0
Nirmal Hota

Nirmal Hota

NA 1.9k 301.4k 10y
Do you mean the database is in your local network or in local machine ? Then also you can switch the connectionstrings.
0
Najim Mulla

Najim Mulla

NA 202 37.8k 10y
sir this is not set online database connection string
0
Nirmal Hota

Nirmal Hota

NA 1.9k 301.4k 10y
You can store the connection strings in web.config or app.config. Depending upon the year selection just reinitialize the connection object.

Below is a link, may not be an exact answer to your questions but would be a hint for you.


http://www.codeproject.com/Tips/411013/Configuring-a-Connection-String-in-the-App-Config