Solved

Database Backup Error

Posted on 2009-07-15
3
182 Views
Last Modified: 2012-05-07
I am trying to back up a database. I am using SQL Server 2005 and am in MS SQL Server Management Studio Express. I have attempted to run the following script:

BACKUP DATABASE 209-9-1-PT
 TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\209-9-1-PT.bak';
GO

I get the error:

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '209'.

What is the problem?
0
Comment
Question by:lmred
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 50 total points
ID: 24859745
BACKUP DATABASE [209-9-1-PT]
 TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\209-9-1-PT.bak';
GO
0
 
LVL 1

Author Comment

by:lmred
ID: 24859899
chapmandew you are good and fast! Thanks so much. I knew it was something dumb I was missing.

lmred
0
 
LVL 1

Author Closing Comment

by:lmred
ID: 31603741
Thanks again!
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question