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 > Backup data MSSQL 2000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-03, 04:34
NghiaNT NghiaNT is offline
Registered User
 
Join Date: Aug 2003
Location: viet nam
Posts: 1
Arrow Backup data MSSQL 2000

My Question
How to backup data in mssql 2000 server from my program
(Delphi 7)
Reply With Quote
  #2 (permalink)  
Old 08-26-03, 09:00
bpdWork bpdWork is offline
Registered User
 
Join Date: Aug 2003
Location: Andover, MA
Posts: 256
You'll want to look into SQLDMO (COM) which will allow you to perform everything you can do with Enterprise Manager.

There are also commands that you can execute to run backups, such as:

mdbConnection.Execute "BACKUP DATABASE " & database_name & "TO DISK = " & db_location_string & " WITH NOINIT , NOUNLOAD , NAME = " & database_name & ", NOSKIP , STATS = 10, NOFORMAT"

Not sure of the syntax for Delphi for executing SQL commands (this is an VB-ADO example).

The COM approach will be nicer from a programming perspective (OO), but the db command might be easier.
__________________
-bpd
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