017_bcp_bulk_openrowset
017_bcp_bulk_openrowset --bcp******************************************************************************* --1.可以用master..xp_cmdshell存储过程将CMD的命令传给系统,这样就可以直接在SQL Server的查询处理器中直接输入bcp的命令,而sqlserver默认禁用master..xp_cmdshell存储过程 --2.开启xp_cmdshell存储过程的方法(开启后有安全隐患) EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE; EXEC sp_configure 'show advanced options', 0; RECONFIGURE; --3.关闭xp_cmdshell存储过程的方法 EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 0; RECONFIGURE; EXEC sp_configure 'show advanced options