How to make common connection string for diff program?

How to make common connection string for diff program?

Post by Manis » Thu, 13 Mar 2008 03:44:22


Hi
i have a problem where as i want to use two different C# net program
in a single system where i have used 2 different sql server name. when
i execute those program each time iam renaming the sql server name and
executing the programs. Is there any way where i can write a
connection string without using a sql server name or is there any
other possibility to solve this problem.
[Note : i don't want to use the same sql serve name for both the
programs.]
 
 
 

How to make common connection string for diff program?

Post by Manis » Fri, 14 Mar 2008 16:57:48

ok thx for u valuable commons. now i have a problem. I created
connection string only with the server name. when i installed the sql
2008 on other system its shows the sql server name\SQLExpress Eg. xxx
\SQLEXPRESS. so i was not able to connect with the database. so how
can i remove SQLEXPRESS.