使用SQLCMD导出到.csv

时间:2014-01-14 06:30:16

标签: sql sql-server export export-to-csv sqlcmd

我尝试导出 .csv 文件时出错。我使用了Oracle SQL DEVELOPER PORTABLE。这是错误:

HResult 0x35, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [53]. 
Sqlcmd: Error: Microsoft SQL Server Native Client 10.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..
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired.

该错误的含义是什么?

这是我使用的命令:

  sqlcmd -S Servername - d Database name -E -Q "My Query" -o "sample.txt" -h-1 -s "," -w 700

请帮帮我。

由于

0 个答案:

没有答案