简体   繁体   English

数据库备份出现问题

[英]Database backup taking issue

I am using Sql Server 2005. 我正在使用Sql Server 2005。

I wanted to take back up of my database through simple sql command. 我想通过简单的sql命令备份数据库。

For this I referred THIS document. 为此,我称文件。

Made command as follows: 发出命令如下:

backup database webbasednewsoft to disk 'e:\wb.bak'

but its giving me error as: 但它给我的错误是:

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'e:\wb.bak'.

I dont understand what is syntax error in this? 我不明白这是什么语法错误?

I have made everything according to doccument. 我已经根据文档做了一切。

I thought the issue was for escape sequence, hence i also tried, 我以为问题是转义序列,因此我也尝试过

backup database webbasednewsoft to disk 'e:\\wb.bak'

But the error was same. 但是错误是相同的。

Please guid me for this. 为此,请指导我。

You need an = sign. 您需要一个=号。

 backup database webbasednewsoft to disk='e:\wb.bak'

See here for the MSDN for the BACKUP command 请参阅此处的MSDN以获取BACKUP命令

And if you look at your reference it too mentions using an = sign! 而且,如果您查看参考,它也使用=符号提及! but hey we're all guilty of eager reading I know I do it... :-) 但是,嘿,我们都渴望阅读,我知道我会做的... :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM