Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a desktop application using c#. Then i created the setup project. I have also included appconfig file.Now when i install the application on another system i have to change the connection string .But from where can i access the connection string of that system.I have written the code to read connection string from appconfig file.
Posted

1 solution

you can change
Data Source=(local);
This means that we want to connect to the SQL Server instance located on the local machine.
 
Share this answer
 
Comments
nihalaramzeel 27-Nov-13 12:41pm    
So should we need to install sql server along with our setup on another system.I have used visual studio 2010.
[no name] 27-Nov-13 13:05pm    
yes,Data Source=(local); means that we want to connect to the SQL Server instance located on the local machine.
nihalaramzeel 12-Dec-13 9:32am    
Is there any other alternative instead of installing sql

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