Hi
Is there any query to backup and restore a database?In my application User has to Backup the current database and restore them at any time.I just need query which backup the database in a specified location and restore it.
Thanks
See BACKUP and RESTORE on Books Online..|||In the simplest forms:
BACKUP DATABASE myDb TO DISK = 'X:\myDb.BAK'
RESTORE DATABASE myDb FROM DISK = 'X:\myDb.BAK'
There's a little bit more to it though, so please refer to BOL (Books On Line) for additional info on backup and restore, so you can decide upon the exact syntax to use.
/Kenneth
|||Thanks Mr.Kenneth.Plz suggest some online books or give link regarding backup and restore...Plz
Finally thanks a lot Mr.Kenneth.
|||thanks Manivannan Suggest some online books or links|||when they mention BOL( Books Online), they are referring to Microsoft's Online Documentation for SQL Server 2005.the homepage for it is here
the download for the english(may 2007) version is here
No comments:
Post a Comment