Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hey all

I'm busy building an SQL management module into my server application. The aim of this part of the program is to:
  1. Create the database if it doesn't exist already
  2. Update the database with change scripts if necessary
  3. Backup the database at predefined times

While these tasks aren't very difficult to do in themselves, the program needs to do all this with SQL server 2000, 2005 & 2008(Express or Enterprise versions)

The part I'm focusing on now is the backups.

I've written a utility that uses SMO to do the backups before using SMO, but it seems that SMO was exclusive to SQL 2005.

DMO on the other hand was what was commonly used to backup SQL 2000... Is it still relivant? As in can i backup SQL server 2000, 2005 & 2008 using DMO?

Another option I saw was to do the backups by issuing T-SQL statements to the SQL server. T-SQL being a standard the same T-SQL code should be able to backup SQL server 2000, 2005 & 2008. Can someone please confirm this? And also if the method(C# Classes) of executing T-SQL scripts are the same for SQL server 2000, 2005 & 2008.

Any other thoughts and ideas are appreciated :)
Posted
Updated 3-Dec-09 17:21pm
v2

1 solution

Looks like I'm going to do the backups with T-SQL code
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900