Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Below is my Sample Connection string:


XML
<add name ="Key1" connectionString="Data Source=localhost;Initial Catalog=;User ID=userXyz;Password=xxxx3" providerName="System.Data.SqlClient" />
Inside which i want to update Initial Catalog=; to Initial Catalog=SomeDBName; all this during Runtime


What I have tried:

<add name="Key1" connectionstring="Data Source=localhost;Initial Catalog=;User ID=userXyz;Password=xxxx3" providername="System.Data.SqlClient">
Inside which i want to update Initial Catalog=; to Initial Catalog=SomeDBName; all this during Runtime
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900