dbTalk Databases Forums  

backing up a SQL Server

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss backing up a SQL Server in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim
 
Posts: n/a

Default backing up a SQL Server - 07-07-2003 , 02:49 PM






what command do you put into a bat file to shut down and
restart the sql server. I have "net stop mssqlserver" to
stop it wrks using the run command but not in my batch
file. What is missing?

Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: backing up a SQL Server - 07-07-2003 , 04:20 PM






Why are you shutting down sql server just to do a backup?

--

Andrew J. Kelly
SQL Server MVP


"Jim" <datatech (AT) bbna (DOT) com> wrote

Quote:
what command do you put into a bat file to shut down and
restart the sql server. I have "net stop mssqlserver" to
stop it wrks using the run command but not in my batch
file. What is missing?



Reply With Quote
  #3  
Old   
Greg Obleshchuk
 
Posts: n/a

Default Re: backing up a SQL Server - 07-07-2003 , 07:01 PM



Jim,
Andrews got a good point why are you shutting down the SQL to do a backup.
You should be backing up the SQl data via the sql backup command. This
ensures that all data is backed up correctly. Doing a system backup doesn't
give you the best options for backing up SQL.

My preference for SQL backups is this
Transaction backups to disk every hour during working hours
Full backup to disk after working hours (10:00pm)
Backup system to tape after SQL full backup (111:00pm)

You should be using a MP to run your backups. Also remember to backup the
system databases at least once a week.


--
I hope this helps
regards
Greg O MCSD
SQL Scribe Documentation Builder
Document any SQL server database in minutes
Programmers love it, DBA dream of it
AGS SQL Scribe download a 30 day trial today
http://www.ag-software.com/ags_scribe_index.asp


"Jim" <datatech (AT) bbna (DOT) com> wrote

Quote:
what command do you put into a bat file to shut down and
restart the sql server. I have "net stop mssqlserver" to
stop it wrks using the run command but not in my batch
file. What is missing?



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.