日期:2014-05-17 浏览次数:20489 次
EXEC master..xp_cmdshell 'BCP dbo.com format nul -f h:/sql2000/com.fmt -w -t ##@ -r $$# -T'
EXEC master..xp_cmdshell 'BCP dbo.com out h:/sql2000/com.data -f h:/sql2000/com.fmt -T'
BULK INSERT dbo.com2
FROM 'h:/sql2000/com.data'
WITH
(
FORMATFILE = 'h:/sql2000/com.fmt'
)