I developed a small application in C# Winforms with a SQL Server database.
Now I want to deploy it where client is using server with SQL Server installed on it, and he wants to use the .exe
file on another machine.
I need to make a connection so I added my database files in SQL Server and I changed my connection string to this:
public class DatabaseConnection
{
private static string constring = @"Data Source=192.xxx.x.xxx\MYSRV;Initial Catalog=dbEmployee;User ID=sa;Password=sa$123";
public static SqlConnection cn = new SqlConnection(constring);
}
but I still can't run my application - I keep getting this:
.