| | |
SQL Server 7.0 BackUP and Restore Code
![]() |
•
•
Join Date: Jun 2007
Posts: 166
Reputation:
Solved Threads: 9
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.
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.
•
•
Join Date: Jun 2007
Posts: 166
Reputation:
Solved Threads: 9
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
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
![]() |
Similar Threads
- VB backup and restore program (Visual Basic 4 / 5 / 6)
- How to Backup database - SQL Server 2000 (MS SQL)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Control Arrays
- Next Thread: Everybody, please read this reply to Kali...
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic birth bmp calculator cd cells.find click client code connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges objectinsert open oracle password program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





