Bất kể những gì tôi làm, tôi không thể làm cho SQLCMD hoạt động. Tôi đang cố chạy tập lệnh có kích thước 200mb + và không thể chạy từ ứng dụng máy chủ sql vì vậy tôi cần thực hiện việc này thông qua SQLCMD, tuy nhiên bất cứ khi nào tôi cố gắng đăng nhập hoặc chạy tập lệnh, nó sẽ ngay lập tức đóng lại.
Tôi đã theo dõi tiện ích sqlcmd bởi msdn.
Tôi đã cố gắng mở nó thông qua lệnh đáng tin cậy SQLCMD -EI get:
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..
Tôi đã thử thông qua máy chủ rõ ràng, tên người dùng và mật khẩu khai báo:
C:\Users\MyUserName\Documents>SQLCMD -S DESKTOP-1N3OD6V\SQLEXPRESS -U DESKTOP-1N3OD6V\MyUserName-P MyPassword
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login failed for user 'DESKTOP-1N3OD6V\MyUserName'..