Die richtige Verbindungszeichenfolge für Remote-SQL-server mit C#

Ich möchte nur wissen, die richtigen sql-Verbindungszeichenfolge für einen remote-sql server express edition.

Dies ist, was ich habe, aber ich habe einige Probleme

 SqlConnection cs = new SqlConnection(@"Data Source=(IP Address)\PC-NAME\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=dbase;User ID=sa;Password=password");

Ich habe diesen Fehler in meinem 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 that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

Vielen Dank im Voraus!

InformationsquelleAutor Lucas Juan | 2013-12-13
Schreibe einen Kommentar