无论我做什么,我都无法让 SQLCMD 工作。我正在尝试运行一个大小为 200mb+ 的脚本,并且无法从 sql server 应用程序运行,因此我需要通过 SQLCMD 执行此操作,但是每当我尝试登录或运行脚本时,它都会立即关闭。
我已经通过 msdn 关注了 sqlcmd 实用程序。
我试图通过可信命令 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 …
Run Code Online (Sandbox Code Playgroud)