SQLCMD İle SQL Express Bağlanamama
-
selamlar.
bir musterimiz SQL Express kullandığı için "Maintence Plans" mevcut değil. Yani zamanlanmış bir job veremiyoruz.
Test serverda sorunsuz aşağıdaki SQLCMD'yi çalıştırdım. SQL lisanslı, 2015+ bir sürüm.
Herşey çalışınca Express kullanan servera girdim, servername, id, pass herşeyi yazdım fakat bağlanmıyor. Aşağıdaki hatayı alıyorum direkt.
Express sürüm servername 192.168.2.3\SQLEXPRESS, aşağıdaki gibi yazdığım zaman belirttiğim hata dönüyor.
SQL Server Management Studio'da 192.168.2.3\SQLEXPRESS, ID, Pass yazdığım zaman login olabiliyorum.
Ne yapmam gerekir?CMD
sqlcmd -s 192.168.2.3\SQLEXPRESS -d DB -U sa -P Password -i "C:\AIRB\AIRB.sql" -o "C:\AIRB\log_%date%.txt"HATA
ayd tarafından 28/Tem/23 13:47 tarihinde düzenlenmiştir
"Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Named Pipes Provider: Could not open a connection to SQL Server [2]. .
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : 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.." -
SQL Express'e bağlanırken sqlcmd -S yani büyük S ile yazmak gerekiyormuş, sorun çözüldü hocalar teşekkürler
