Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey

I have created a phone directory using C# and SQL (.mdf file). My program is running well on my laptop without any errors.
Now, I'd like to run the same program on a different computer. How can I achieve this? How am I supposed to created a setup for this?
I'll have to take care of the connection string right?


[I'm using VS 2012]
Thanks in advance.
Posted

1 solution

There are two options:
1. Change the connection string.
2. Use the inbuild database of the .NET in that case you need not change the connection string it will take the location of the server as the current application location.
 
Share this answer
 

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