2017-03-09 3 views
0

I craete und SqlLocalDB-Instanz mitWarum kann ich keine Verbindung zu SqlLocalDB herstellen?

C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe c proconact -s 

starten, wenn ich

C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe info proconact 

betreibe ich

Name:    proconact 
Version:   11.0.3000.0 
Shared name:  proconact 
Owner:    SUNNY-AME\sunny 
Auto-create:  No 
State:    Running 
Last sttart time: 09.03.2017 16:40:30 
Instance pipe name: np:\\.\pipe\LOCALDB#SH2D214E\tsql\query 

bekommen Wenn ich versuche, mit verbinden

"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\Sqlcmd.exe" -S (LocalDB)\.\proconact -E 

oder

"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\Sqlcmd.exe" -S (LocalDB)\proconact -E 

ich folgende Fehlermeldung immer erhalten:

Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Named Pipes Provider: Could not open a connection to SQL Server [2]. . 
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired. 
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or instance-specific error has occurred while establishing a connection to 
SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For 
more information see SQL Server Books Online.. 

Ich hoffe jemand kann mir helfen, was ich tun kann.

Antwort

0

Sie müssen verwenden:

-S "(LocalDB)\proconact" -E 
Verwandte Themen