用BCP恢复备份的问题

phm 2003-05-20 10:30:59
BCP QQ..bar_file out c:\txt\bar_file.txt -n -Usa -P -S Server
备份OK
BCP QQ..bar_file in c:\txt\bar_file.txt -n -Usa -P -S Server
但是恢复备份时提示出错 SQLState=37000 不能打开数据库
...全文
31 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
phm 2003-05-20
  • 打赏
  • 举报
回复
还是不行
愉快的登山者 2003-05-20
  • 打赏
  • 举报
回复
命令没有错误。
pengdali 2003-05-20
  • 打赏
  • 举报
回复
bcp qq.dbo.bar_file out c:\temp1.txt -c -q -SServer -Usa -P

bcp qq.dbo.P_Aspect in c:\temp1.txt -c -q -SServer -Usa -P
pengdali 2003-05-20
  • 打赏
  • 举报
回复
select into/bulkcopy 当为 true 时,允许使用 SELECT INTO 语句和快速大容量复制
EXEC sp_dboption 'pubs', 'select into', 'TRUE'
smallroad 2003-05-20
  • 打赏
  • 举报
回复
操作系统是什么?win98不行。

into/bulk copy = true
select @cmd= 'bcp 数据库..表名 in c:\a.txt -c -S -U -P'
execute master..xp_cmdshell @cmd
应该可以

34,837

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧