Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a database project in Windows Forms using C#. I used SQL Server 2008(ABC Server Name) tables as datasource in this Project. Now i want to publish this Project. MY question is that if i publish this Project and install any other PC with SQL Server 2008. I used ABC Server Name as DataSource in Application but now SQL Server Name is Different How can i solve this Problem? Sorry I am new User and feel very Difficult to define my problem therefore please ignore if u dont understand?
Posted
Comments
Richard C Bishop 28-Feb-13 17:17pm    
Usually developers have a test environment and a production environment they work in. You may just need two connection strings, use one for when it is not published and the other for when it is published.
Devang Vaja 1-Mar-13 1:33am    
use windows authentication instead....

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