Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with backup please 1

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
GB
HI

I am using the following line in query analyzer

BACKUP DATABASE 2003 to disk = 'c:\temp\backup\2003.bak'

But it doesnt like 2003 for some reason if I change this to another database ie. vletest it works any ideas.

Cheers
 
The name of the database violates rules for identifier names which must begin with an alphabetic character or underscore. It is being mistaken for the number 2003.

Two choices:
- rename your database (may not be advisable unless you are in the process of designing it)

- use double quotation marks everywhere you refer to it:
SET QUOTED_IDENTIFIER ON
BACKUP DATABASE "2003" to disk = 'c:\temp\backup\2003.bak'

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top