//转的,希望对楼主有用。。。<br><br>将SQLServer导入到文本文件<br>连接串<br>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/temp;Extended Properties="text;HDR=YES;";Persist Security Info=False<br>SQL语句<br>SELECT * into aaa.txt FROM Tab1 IN [ODBC]<br>[ODBC;Driver=SQL Server;UID=sa;PWD=;Server=127.0.0.1;DataBase=Demo;]<br>要改变分隔符,可以修改<br>Schema.ini文件。该文件中指明分割符,如: <br> [yourfile.txt] <br> ... <br> Format=Delimited(|) <br>更详细的例子可以参考:微软的Knowledge Base的文章:“Q149090 CC: How to Use Schema.ini for Accessing Text Data”和微软的Knowledge Base的文章:“Q187670 OWTO: Use RDO and ODBC Text Driver to Open a Delimited Text”。