osql 工具允许输入t_sql语句,系统过程和文本文件,osql 用odbc与服务器通信
the osql utility allows you to enter transact-sql statements, system procedures, and script files. this utility uses odbc to communicate with the server.
语法:
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] [-d data_source_name]
[-c cmd_end] [-q “query”] [-q “query”]
[-n] [-m error_level] [-r {0 | 1}]
[-i input_file] [-o output_file] [-p]
[-b] [-u] [-r] [-o]
]
