The right connection string for Remote SQL server for C#
问题 I just want to know the right sql connection string for a remote sql server express edition. This is what I got but I got some problems SqlConnection cs = new SqlConnection(@"Data Source=(IP Address)\PC-NAME\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=dbase;User ID=sa;Password=password"); I got this error in my C# debugger: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify