SQL Server 7.0 BackUP and Restore Code

Reply

Join Date: Jun 2007
Posts: 4
Reputation: rajeshap is an unknown quantity at this point 
Solved Threads: 0
rajeshap rajeshap is offline Offline
Newbie Poster

SQL Server 7.0 BackUP and Restore Code

 
0
  #1
Jun 9th, 2007
Hello,

I am Using VB 6.0 . Please Help me to get the codes to Create Backup and Restore in SQL server 7.0. I request Some one to help me at the earliest.

Rajesh
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 166
Reputation: AV Manoharan is an unknown quantity at this point 
Solved Threads: 9
AV Manoharan AV Manoharan is offline Offline
Junior Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #2
Jun 9th, 2007
If you are using SQL Server in you computer please switch on the Query Analyzar. It will ask you the user name nd password. If both are sa fine.
Pull down the Help menu Choose its index. On the Blank space just type in Bacup and choose Backup(Described). Click Display.
You have all the choices on the right pane.

Same way for restore also.
If you can't understand anything, please replay to this thread.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 4
Reputation: rajeshap is an unknown quantity at this point 
Solved Threads: 0
rajeshap rajeshap is offline Offline
Newbie Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #3
Jun 9th, 2007
hi Manoharan,

thanx for ur reply. where are u from ? I'll try with the adices that u gave me and wiull get back to u later.

Rajesh
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 6
Reputation: Jithan_palakkal is an unknown quantity at this point 
Solved Threads: 0
Jithan_palakkal Jithan_palakkal is offline Offline
Newbie Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #4
Jun 11th, 2007
how take backup using vb code
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 4
Reputation: rajeshap is an unknown quantity at this point 
Solved Threads: 0
rajeshap rajeshap is offline Offline
Newbie Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #5
Jun 12th, 2007
Dear Manoharan, I tried as per your advice with query analyzer but i couldnt find Any backup or restore option in help index.Pls help me to proceed with this.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 166
Reputation: AV Manoharan is an unknown quantity at this point 
Solved Threads: 9
AV Manoharan AV Manoharan is offline Offline
Junior Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #6
Jun 13th, 2007
In the help menu you have to click the first option ie Contents and Index. F1 key or AltC will not work. If nothing is displayed please reply to me I will give you the syntax
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 4
Reputation: rajeshap is an unknown quantity at this point 
Solved Threads: 0
rajeshap rajeshap is offline Offline
Newbie Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #7
Jun 18th, 2007
Dear Manoharan,

I took SQL Server Querry Analyser Help and choose contents and index. and i typed the keyword Backup in the index but no such keyword appeared in the list. and the same was the case with restore pls advice what to do.

Rajesh
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 166
Reputation: AV Manoharan is an unknown quantity at this point 
Solved Threads: 9
AV Manoharan AV Manoharan is offline Offline
Junior Poster

Re: SQL Server 7.0 BackUP and Restore Code

 
0
  #8
Jun 18th, 2007
I do not know what has happened. Actually I have replied to you, but could not find on the thread. So again I am Posting.

During Installation of SQL it ask for add-ons. I don't know what has happened. Anyhow, please find the code below. There are so many options in that, but I hope that can wait for, in you case.

BACKUP DATABASE {database_name | @database_variable_name}
TO <device_name>

database_name can be the actual database or the actual database name containing in a @variable

The device names are either DISK or TAPE

If you are giving the TO option you have to append these device name with an equal to sign and the actual path and the file name to hold your backup.

eg.
TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\
Mydatabasebackup.dat'

same way the RESTORE

RESTORE DATABASE {database_name | @database_variable_name}
FROM <device_name>

All things are same as BACKUP.
Here the FROM option is followed by a = and the path and filename containing your backup.

So Simple Is it NOT?

Programing is like that dear. When you know the code, it is very simple, Otherwise ...., you know!

regards
AV Manoharan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC