Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 backup
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sujeethbala2110
Starting Member

India
29 Posts

Posted - 11/09/2006 :  11:44:05  Show Profile  Reply with Quote
hi

can i have a batch file which will backup the database whenever itis executed. please provide me one.

regards


suji

snSQL
Flowing Fount of Yak Knowledge

USA
1837 Posts

Posted - 11/09/2006 :  13:10:38  Show Profile  Reply with Quote
Yes, just call osql in the batch file, see osql in Books Online for details and examples.

Or you can just create a job in SQL Server and schedule it to run at regular intervals.
Go to Top of Page

sujeethbala2110
Starting Member

India
29 Posts

Posted - 11/09/2006 :  22:56:22  Show Profile  Reply with Quote
thanks

suji
Go to Top of Page

mightypenny_ph
Yak Posting Veteran

54 Posts

Posted - 11/10/2006 :  02:18:35  Show Profile  Click to see mightypenny_ph's MSN Messenger address  Send mightypenny_ph a Yahoo! Message  Reply with Quote
just a suggestion... why don't you use SQL Server Agent and create a scheduled backup there.. it's better to use that because everything are already in place... :)

SlayerS_`BoxeR` + [ReD]NaDa

Edited by - mightypenny_ph on 11/10/2006 02:18:58
Go to Top of Page

Kristen
Test

United Kingdom
22859 Posts

Posted - 11/10/2006 :  03:41:51  Show Profile  Reply with Quote
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=How%20Backup%20works,What%20type%20of%20backup%20should%20I%20use,Automating%20Backups,Backup

Kristen
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000