摘要: osql 实用工具 osql 实用工具使您得以输入 Transact-SQL 语句、系统过程和脚本文件。该实用工具通过 ODBC 与服务器通讯。 语法 osql [-?] | [-L] | [ { {-U login_id [-P password]} | -E } [-S server_name[\instance_name]] [-H wksta_name] [-d db_name] [-l time_out] [-t time_out] [-h headers] [-s col_separator] [-w column_width] [-a packet_size] [-e] [-I] 阅读全文
posted @ 2011-06-13 20:47 sweetjian 阅读(25747) 评论(0) 推荐(1)
摘要: 1.导出数据表(TestTable)bcp TestDB.dbo.TestTable out d:\data.txt –c -S"127.0.0.1" -U"sa" -P"123"2.按条件导出bcp "select * from TestDB.dbo.TestTable where ID>100" queryout d:\data.txt –c -S"127.0.0.1" -U"sa" -P"123"3.导入数据bcp TestDB.dbo.Tes 阅读全文
posted @ 2011-06-13 20:45 sweetjian 阅读(315) 评论(0) 推荐(0)