摘要:
//将数据库中的表内容导出到txt文本master.dbo.xp_cmdshell 'bcp dfsl.dbo.bill out D:/new/test.txt -T -c'注:dfsl是数据库名称 bill是表名 D:/new/test.txt是准备存储数据的txt文件路径//将txt文本中的数据导入到数据库中的表EXEC master..xp_cmdshell 'bcp test..test in D:/new/test.txt -c -Slocalhost -Usa -Pnana' 注:第一个test是数据库名 第二个test是表名 D:/new/test.txt是存储数据的txt文件路 阅读全文
posted @ 2010-12-07 10:25
两个人一把伞
阅读(311)
评论(0)
推荐(0)
浙公网安备 33010602011771号