无论我做什么,我都无法使SQLCMD正常工作。我试图运行一个大小为200mb +的脚本,并且无法从sql服务器应用程序运行,因此我需要通过SQLCMD进行此操作,但是,每当我尝试登录或运行该脚本时,它都会立即关闭。
我已经通过msdn跟随了sqlcmd实用程序。
我试图通过可信任的命令SQLCMD -EI getooo它:
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..
我已经尝试通过显式服务器,用户名和密码声明:
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'..