Sql serve connection string


using System.Data.SqlClient;

  public SqlServerActiviteis(string DBSourcePath)
            {
                con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=" + DBSourcePath + "; Integrated Security=True;User Instance=True";
            }

No comments: