EXEC master..xp_cmdshell 'bcp <database-name> <table-name> in <csv-file> -c -t, -S <server-name> -U <username> -P <password>'
其中:
EXEC master..xp_cmdshell : master..xp_cmdshell 是master数据库的存储过程,主要用来在管理器里面执行操作系统的一些命令
in: 代表是 导入
: 你CSV文件的绝对路径 如(H:\1.csv)
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。