If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > SQL Server Backup Databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-09, 11:55
ThomasKain24 ThomasKain24 is offline
Registered User
 
Join Date: Mar 2009
Posts: 20
SQL Server Backup Databases

Hi
I wanna ask something for backups in sql server 2005...
I made a database with name Bookstore
Now when i try to make backup for the database it brings me this message

TITLE: Microsoft SQL Server Management Studio
------------------------------


System.Data.SqlClient.SqlError: The filename '\BooksStore.bak' is invalid as a backup device name. Reissue the BACKUP statement with a valid filename. (Microsoft.SqlServer.Smo)
-----------------------------------------------

So what i have to do now??? Change the name of backup????

I also wanna ask because i am new is there any wizard like sql server 2000 to make something like backup...???
Reply With Quote
  #2 (permalink)  
Old 03-16-09, 12:28
ThomasKain24 ThomasKain24 is offline
Registered User
 
Join Date: Mar 2009
Posts: 20
SQL Server 2005 Task shrink

Can you suggest me any site for sql server tutorials????
Reply With Quote
  #3 (permalink)  
Old 03-16-09, 14:17
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 13,651
What operating system is installed on the machine that is running SQL 2005? What Windows Login are you using for the SQL 2005 Windows service?

-PatP
Reply With Quote
  #4 (permalink)  
Old 03-16-09, 14:33
tosscrosby tosscrosby is offline
Registered User
 
Join Date: Apr 2008
Location: Along the shores of Lake Michigan
Posts: 242
And, if this is how you actually qualified the path name "\BooksStore.bak", it isn't a valid destination string. Something like 'e:\validpath\BooksStore.bak' should work without issue (or if going over the network- even though that is consider a bad practice, something like '\\servername\validpath\BooksStore.bak').

Edit - If going over the network, be sure permissions are set appropriately.
Reply With Quote
  #5 (permalink)  
Old 03-16-09, 16:49
ThomasKain24 ThomasKain24 is offline
Registered User
 
Join Date: Mar 2009
Posts: 20
My problem is that i cant change the path.... Where i will change it.... In the backup window i cant change it, its already fixed i can only remove it...
Reply With Quote
  #6 (permalink)  
Old 03-16-09, 17:01
PMASchmed PMASchmed is offline
Registered User
 
Join Date: Jun 2004
Location: Long Island
Posts: 696
Drop and recreate the backup device. Look under Server Objects -> Backup Devices.
Reply With Quote
  #7 (permalink)  
Old 03-16-09, 17:24
tosscrosby tosscrosby is offline
Registered User
 
Join Date: Apr 2008
Location: Along the shores of Lake Michigan
Posts: 242
Or if it's not a backup device but through the GUI (in my case I'm using EM), "remove" the destination and "add" a new one with the correct path.
Reply With Quote
  #8 (permalink)  
Old 03-16-09, 17:29
ThomasKain24 ThomasKain24 is offline
Registered User
 
Join Date: Mar 2009
Posts: 20
Ok i find that but still and i cant change the path there but how i will make tha backup now... When i make a new device backup i can change the destination so i can put c:\....... but how i will use that device??????
When i come back to my database the destination cant change so i can puct (c:\.....
Reply With Quote
  #9 (permalink)  
Old 03-17-09, 11:21
PMASchmed PMASchmed is offline
Registered User
 
Join Date: Jun 2004
Location: Long Island
Posts: 696
use a file

backup database databasename to disk=N'C:\path\Backup.Bak' with init, stats=10
Reply With Quote
  #10 (permalink)  
Old 03-17-09, 14:15
tosscrosby tosscrosby is offline
Registered User
 
Join Date: Apr 2008
Location: Along the shores of Lake Michigan
Posts: 242
Quote:
Originally Posted by ThomasKain24
Ok i find that but still and i cant change the path there but how i will make tha backup now... When i make a new device backup i can change the destination so i can put c:\....... but how i will use that device??????
When i come back to my database the destination cant change so i can puct (c:\.....
Don't use a device, simply backup to a file on a designated (valid) path. BOL has some examples of TSQL code you can use or right click on the database and select backup database or use a maintenance plan. Seems to me you're overthinking this process a bit. Take a deep breath and start fresh - it's not that complicated. Take screen shots or detail exactly what you are doing and where it is failing (detail is the key word here).


Quote:
Originally Posted by ThomasKain24
so i can puct (c:\.....
???? I have never "puct" as far as I know
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On