导入导出表:bcp
语法
bcp {[[database_name.][owner].]{table_name | view_name
} | "query"
}
{in | out | queryout | format
} data_file
[-m max_errors] [-f format_file] [-e err_file]
/
[-F first_row] [-L last_row] [-b batch_size]
[-n] [-c] [-w] [-N] [-V (60 | 65 | 70)] [-6]
[-q] [-C code_page] [-t field_term] [-r row_term]
[-i input_file] [-o output_file] [-a packet_size]
[-S server_name[instance_name]] [-U login_id] [-P password]
[-T] [-v] [-R] [-k] [-E] [-h "hint [,...n]"]
例子:
bcp utscadadb.dbo.yxcfg in yxcfg.csv -t , -c -q -S pisces -U sa -P ut2001
bcp utscadadb.dbo.yxcfg out yxcfg.csv -t , -c -q -S pisces -U sa -P ut2001