Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripts to backup/restore

Status
Not open for further replies.

sssdexter

Programmer
Oct 7, 2003
29
MY
Hi,

Is it possible to use a script to back/export database in Query Analyzer instead of using enterprise manager? If do, how do the scripts looks like?

I know if Oracle, then we can use exp/imp command in DOS prompt or in *.bat file, wondering SQL Server can do the same thing?

Thanks a lot.
 
Yes you can. Look up the BACKUP and RESTORE statements in BOL.

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top