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 > back-up script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-12, 12:48
navedjobs navedjobs is offline
Registered User
 
Join Date: Sep 2011
Posts: 35
required a simple back-up script

can any one give me a very simple back up script that buck up full database
to a given location
simple like
Code:
backup database databasename to "c:\users\desktop\name.bak"

Last edited by navedjobs; 01-16-12 at 05:43.
Reply With Quote
  #2 (permalink)  
Old 01-16-12, 13:01
navedjobs navedjobs is offline
Registered User
 
Join Date: Sep 2011
Posts: 35
need Help in backup script

Quote:
Originally Posted by navedjobs View Post
can any one give me a very simple back up script that buck up full database
to a given location
simple like
Code:
backup database databasename to "c:\users\desktop\name.bak"
please help !!!!!
Reply With Quote
  #3 (permalink)  
Old 01-16-12, 13:04
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
See BACKUP (Transact-SQL) for a full description of options, but you could start with:
Code:
BACKUP DATABASE putYourDatabaseNameHere
   TO DISK = 'c:\BackupPath\BackupFile.BAK'
-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
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