Visual Studio 2008 Connection Strings

Bondizzo

Expert Member
Joined
Jun 11, 2005
Messages
1,336
Currently having a small problem, how do I set the connection string to be user specific in VS2008. I have a Solution that consists of 2 projects and I want both projects to use the same data source, at the moment its hard coded as an application setting so the system crashes when installed on another pc.
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Yo, "user specific"... does this mean each user would have their own SQL Express installed?
 

Bondizzo

Expert Member
Joined
Jun 11, 2005
Messages
1,336
VS2008 wont let me set a user specific connection string, there will be one server and everyone connects to that server/database. Is it okay if its hard coded then ?
 

Necuno

Court Jester
Joined
Sep 27, 2005
Messages
58,567
maybe you should explain the following in detail so that we can give you a good solution.

a) what you want to accomplish exactly
b) the setup you are using to do this
c) user specific ? more detail...
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
What is a "user specific connection string"?

If there is 1 server you want it to connect to why go user specific? Unless you have tons of money and time to setup SQL Server for each and every user that will ever access your program, then no.

app.config file --> it's like web.config file. throw the connection string in there, let the program read off of app.config and then if you ever do need to change it you don't need to recompile anything, just replace the .config.
 
Top