Click here to Skip to main content
15,888,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a application running now with a database connection and wanna make a deployment of it

I tried much things. So that's why I'm asking now is there a easy guide to follow where I can see what to do.

My connection string is hard coded, after I deployed the application it's still hard coded what is the way to let the Data Source (Computer Name) change automaticly to the new computername where it is installed?

(return @"Data Source=KONING-AF02EAF7\SQLEXPRESS;Initial Catalog=KringVrienden;Integrated Security=True";)

SofwareI'm using:
Visual Studio 2008.
SQL Server 2005
SQL Management Server 2005

Please help me.
Dennis,
Posted
Updated 9-Dec-09 1:21am
v2

Connection string should be stored in the config file unless there is a security issue with that.

That can be applied for both Web and WinForm application.


Read and Write Configuration file[^]
 
Share this answer
 
It's made in a class in the application (winForm)

./SQLEXPRESS that's working on localhost. But why not on a other host?
 
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