How to run an .exe application in another computer?
- by ADAM
I am working on a C# application in Visual Studio 2013. When I run the .exe file from my computer, the application runs very well and all the features work. When I tried to run the .exe on another computer, the database side doesn't work well and the connection with the database couldn't be opened.
The SqlConnection is constructed as follows:
SqlConnection cn = new SqlConnection("Data Source=ADAM-PC;Initial Catalog=integrationdatabase;Integrated Security=True"
I don't know how to change the data source to make the connection with the database established in another computer.
How can I solve this problem?