Solved

Database Backup Error

Posted on 2009-07-15
3
181 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

856 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