|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to BKP?
Hi, how do I use a command via Query Analizer to make a bkp on some
database? How do I know it's fineshed? "DBName_DateTime.bak" <- must be the file generated I'm using SQL2000/5 Many Thanks Check out BACKUP DATABASE in the BOL.
-- Tom ---------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS SQL Server MVP Toronto, ON Canada https://mvp.support.microsoft.com/profile/Tom.Moreau "Paulo" <eris_pa***@terra.com.br> wrote in message Hi, how do I use a command via Query Analizer to make a bkp on somenews:uiIFyub7JHA.1568@TK2MSFTNGP06.phx.gbl... database? How do I know it's fineshed? "DBName_DateTime.bak" <- must be the file generated I'm using SQL2000/5 Many Thanks You will get a lot more information on this question if you open up SQL
Sefver 2005 Books Online, and type BACKUP on the Index tab. But briefly, to backup database ABC to file abc_db_backup.bak in directory G:\backup, you can do the following: BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with INIT; Look up in BOkks Online for the options that can be specified for BACKUP DATABASE. Linchi Show quoteHide quote "Paulo" wrote: > Hi, how do I use a command via Query Analizer to make a bkp on some > database? How do I know it's fineshed? > > "DBName_DateTime.bak" <- must be the file generated > > I'm using SQL2000/5 > > Many Thanks > > > EXECUTE master.dbo.xp_sqlmaint N'-PlanID
2938A525-91BC-41F0-9378-4CD969241DEE -WriteHistory -VrfyBackup -BkUpMedia DISK -BkUpDB "d:\BKPS" -DelBkUps 3DAYS -BkExt "BAK"' I tried above but no success! Show quoteHide quote "Linchi Shea" <LinchiS***@discussions.microsoft.com> escreveu na mensagem news:AD5143DA-8863-48F5-B4B7-6B6D412D1CEC@microsoft.com... > You will get a lot more information on this question if you open up SQL > Sefver 2005 Books Online, and type BACKUP on the Index tab. But briefly, > to > backup database ABC to file abc_db_backup.bak in directory G:\backup, you > can > do the following: > > BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with INIT; > > Look up in BOkks Online for the options that can be specified for BACKUP > DATABASE. > > Linchi > > "Paulo" wrote: > >> Hi, how do I use a command via Query Analizer to make a bkp on some >> database? How do I know it's fineshed? >> >> "DBName_DateTime.bak" <- must be the file generated >> >> I'm using SQL2000/5 >> >> Many Thanks >> >> >> What error messages are you getting from running the statement?
Linchi Show quoteHide quote "Paulo" wrote: > EXECUTE master.dbo.xp_sqlmaint N'-PlanID > 2938A525-91BC-41F0-9378-4CD969241DEE -WriteHistory -VrfyBackup -BkUpMedia > DISK -BkUpDB "d:\BKPS" -DelBkUps 3DAYS -BkExt "BAK"' > > I tried above but no success! > > "Linchi Shea" <LinchiS***@discussions.microsoft.com> escreveu na mensagem > news:AD5143DA-8863-48F5-B4B7-6B6D412D1CEC@microsoft.com... > > You will get a lot more information on this question if you open up SQL > > Sefver 2005 Books Online, and type BACKUP on the Index tab. But briefly, > > to > > backup database ABC to file abc_db_backup.bak in directory G:\backup, you > > can > > do the following: > > > > BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with INIT; > > > > Look up in BOkks Online for the options that can be specified for BACKUP > > DATABASE. > > > > Linchi > > > > "Paulo" wrote: > > > >> Hi, how do I use a command via Query Analizer to make a bkp on some > >> database? How do I know it's fineshed? > >> > >> "DBName_DateTime.bak" <- must be the file generated > >> > >> I'm using SQL2000/5 > >> > >> Many Thanks > >> > >> > >> > > > What lead you to believe that you would execute xp_sqlmaint? Did you
create a maint plan which happened to get that GUID? Etc... Here's something that should get you started: http://www.karaszi.com/SQLServer/util_backup_script_like_MP.asp -- Show quoteHide quoteTibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://sqlblog.com/blogs/tibor_karaszi "Paulo" <eris_pa***@terra.com.br> wrote in message news:uxgzhXc7JHA.6136@TK2MSFTNGP03.phx.gbl... > EXECUTE master.dbo.xp_sqlmaint N'-PlanID > 2938A525-91BC-41F0-9378-4CD969241DEE -WriteHistory -VrfyBackup -BkUpMedia > DISK -BkUpDB "d:\BKPS" -DelBkUps 3DAYS -BkExt "BAK"' > > I tried above but no success! > > "Linchi Shea" <LinchiS***@discussions.microsoft.com> escreveu na > mensagem news:AD5143DA-8863-48F5-B4B7-6B6D412D1CEC@microsoft.com... >> You will get a lot more information on this question if you open up >> SQL >> Sefver 2005 Books Online, and type BACKUP on the Index tab. But >> briefly, to >> backup database ABC to file abc_db_backup.bak in directory >> G:\backup, you can >> do the following: >> >> BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with >> INIT; >> >> Look up in BOkks Online for the options that can be specified for >> BACKUP >> DATABASE. >> >> Linchi >> >> "Paulo" wrote: >> >>> Hi, how do I use a command via Query Analizer to make a bkp on >>> some >>> database? How do I know it's fineshed? >>> >>> "DBName_DateTime.bak" <- must be the file generated >>> >>> I'm using SQL2000/5 >>> >>> Many Thanks >>> >>> >>> > > Very good... very good Mr. Karaszi... you're THE guy!
Thanks! Show quoteHide quote "Tibor Karaszi" <tibor_please.no.email_kara***@hotmail.nomail.com> escreveu na mensagem news:ugBErMd7JHA.1432@TK2MSFTNGP02.phx.gbl... > What lead you to believe that you would execute xp_sqlmaint? Did you > create a maint plan which happened to get that GUID? Etc... > > Here's something that should get you started: > http://www.karaszi.com/SQLServer/util_backup_script_like_MP.asp > > -- > Tibor Karaszi, SQL Server MVP > http://www.karaszi.com/sqlserver/default.asp > http://sqlblog.com/blogs/tibor_karaszi > > > "Paulo" <eris_pa***@terra.com.br> wrote in message > news:uxgzhXc7JHA.6136@TK2MSFTNGP03.phx.gbl... >> EXECUTE master.dbo.xp_sqlmaint N'-PlanID >> 2938A525-91BC-41F0-9378-4CD969241DEE -WriteHistory -VrfyBackup -BkUpMedia >> DISK -BkUpDB "d:\BKPS" -DelBkUps 3DAYS -BkExt "BAK"' >> >> I tried above but no success! >> >> "Linchi Shea" <LinchiS***@discussions.microsoft.com> escreveu na mensagem >> news:AD5143DA-8863-48F5-B4B7-6B6D412D1CEC@microsoft.com... >>> You will get a lot more information on this question if you open up SQL >>> Sefver 2005 Books Online, and type BACKUP on the Index tab. But briefly, >>> to >>> backup database ABC to file abc_db_backup.bak in directory G:\backup, >>> you can >>> do the following: >>> >>> BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with INIT; >>> >>> Look up in BOkks Online for the options that can be specified for BACKUP >>> DATABASE. >>> >>> Linchi >>> >>> "Paulo" wrote: >>> >>>> Hi, how do I use a command via Query Analizer to make a bkp on some >>>> database? How do I know it's fineshed? >>>> >>>> "DBName_DateTime.bak" <- must be the file generated >>>> >>>> I'm using SQL2000/5 >>>> >>>> Many Thanks >>>> >>>> >>>> >> >> > Glad you found it useful. Also check out Ola Hallengren's procedures
(URL in the article) for a more comprehensive and "packaged" solution. -- Show quoteHide quoteTibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://sqlblog.com/blogs/tibor_karaszi "Paulo" <eris_pa***@terra.com.br> wrote in message news:urdfKAe7JHA.4100@TK2MSFTNGP06.phx.gbl... > Very good... very good Mr. Karaszi... you're THE guy! > > Thanks! > > "Tibor Karaszi" <tibor_please.no.email_kara***@hotmail.nomail.com> > escreveu na mensagem news:ugBErMd7JHA.1432@TK2MSFTNGP02.phx.gbl... >> What lead you to believe that you would execute xp_sqlmaint? Did >> you create a maint plan which happened to get that GUID? Etc... >> >> Here's something that should get you started: >> http://www.karaszi.com/SQLServer/util_backup_script_like_MP.asp >> >> -- >> Tibor Karaszi, SQL Server MVP >> http://www.karaszi.com/sqlserver/default.asp >> http://sqlblog.com/blogs/tibor_karaszi >> >> >> "Paulo" <eris_pa***@terra.com.br> wrote in message >> news:uxgzhXc7JHA.6136@TK2MSFTNGP03.phx.gbl... >>> EXECUTE master.dbo.xp_sqlmaint N'-PlanID >>> 2938A525-91BC-41F0-9378-4CD969241DEE -WriteHistory -VrfyBackup -BkUpMedia >>> DISK -BkUpDB "d:\BKPS" -DelBkUps 3DAYS -BkExt "BAK"' >>> >>> I tried above but no success! >>> >>> "Linchi Shea" <LinchiS***@discussions.microsoft.com> escreveu na >>> mensagem >>> news:AD5143DA-8863-48F5-B4B7-6B6D412D1CEC@microsoft.com... >>>> You will get a lot more information on this question if you open >>>> up SQL >>>> Sefver 2005 Books Online, and type BACKUP on the Index tab. But >>>> briefly, to >>>> backup database ABC to file abc_db_backup.bak in directory >>>> G:\backup, you can >>>> do the following: >>>> >>>> BACKUP DATABASE ABC to disk='G:\backup\abc_db_backup.bak' with >>>> INIT; >>>> >>>> Look up in BOkks Online for the options that can be specified for >>>> BACKUP >>>> DATABASE. >>>> >>>> Linchi >>>> >>>> "Paulo" wrote: >>>> >>>>> Hi, how do I use a command via Query Analizer to make a bkp on >>>>> some >>>>> database? How do I know it's fineshed? >>>>> >>>>> "DBName_DateTime.bak" <- must be the file generated >>>>> >>>>> I'm using SQL2000/5 >>>>> >>>>> Many Thanks >>>>> >>>>> >>>>> >>> >>> >> > > Paulo
As Tom said check out BACKUP DATABASE command in the bOL > database? How do I know it's fineshed? --For operationsDBCC CHECKDB DBCC SHRINKDATABASE DBCC SHRINKFILE BACKUP DATABASE ROLLBACK select top 2 start_time, percent_complete ,estimated_completion_time from sys.dm_exec_requests order by start_time desc Show quoteHide quote "Paulo" <eris_pa***@terra.com.br> wrote in message news:uiIFyub7JHA.1568@TK2MSFTNGP06.phx.gbl... > Hi, how do I use a command via Query Analizer to make a bkp on some > database? How do I know it's fineshed? > > "DBName_DateTime.bak" <- must be the file generated > > I'm using SQL2000/5 > > Many Thanks >
Other interesting topics
Is it collation or something else
Database documentor Why sa shows in Logins Earliest SQL Version for a given feature... SQL SERVER 2K8 and 2K5 and 2K Differences with respect to CHAR typ query/join issue SQL 2008 not starting due to msdb cannot be opened Fetch 1.2 million records in 30 seconds Converting Access 2007 to sql server 2008 Change SQL 2008 product key |
|||||||||||||||||||||||