我的问题是如何将Test.xml导入到数据库?该 bcp语句怎么写? ( 积分: 20 )

Y

Yangzh

Unregistered / Unconfirmed
GUEST, unregistred user!
导出xml文件时使用的是:
Exec master..xp_cmdshell 'bcp "select * from TestDB..TestTable for xml auto ,elements" queryout "c:/Test.xml" -c -q -S"127.0.0.1" -U"sa" -P"test"'
我的问题是如何将Test.xml导入到数据库?该 bcp语句怎么写?
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
822
SUNSTONE的Delphi笔记
S
顶部