How to run an .exe application in another computer?

Posted by ADAM on Stack Overflow See other posts from Stack Overflow or by ADAM
Published on 2014-08-24T01:07:47Z Indexed on 2014/08/24 10:20 UTC
Read the original article Hit count: 236

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about sql-server