Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Backing up the database
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Warlocks
Starting Member

16 Posts

Posted - 12 October 2007 :  19:01:30  Show Profile
I've searched, hopefully a good one, and can't seem to find my answer.

I'm pretty new at this and like to know step by step how to make a backup of my database.

We're running MS Sql Server 2005

It's on a server run by a member of our forum and I have complete access to it. I've been doing mods on our forum and although I make clean copies of the asp files I'm unable to backup our db. The guy who runs these for us and is a member of our gaming group doesn't know himself and hasn't been able to ask his 'person'.

Is there a simple process to doing this?

Thanks,

War

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 October 2007 :  05:33:49  Show Profile
You need to do it using SQL Server Management Studio. The backup will need to be done to a local or networked disk, so you won't be able to your own disk. You can use the Export Wizard to export the data to a local installation, which could even be a SQL Server express edition version.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Warlocks
Starting Member

16 Posts

Posted - 13 October 2007 :  12:26:13  Show Profile
Thank you. As luck has it that's what I'm using to restart our forums on occasions when they get slow.

I have a couple of questions regarding this and another related subject.

To make a backup, is it as simple as being in SQL Server Mgt Studio / Object Explorer / Databases / Right click on desired db / tasks / backup ... ?? Once I get this far is there anything important regarding the next step I need to do, besides baking to a local or networked disk?

My second question is that in another part of this forum I've been discussing my need to upgrade from 05 to 06 on the versions. Unfortunately the guy who initially downloaded and set up the forums doesn't have the necessary information either for copying and backing up the db. When he created our forums he copied the actual forum and renamed it (for testing mods) but kept both pointing towards the same db.

Whenever I install new mods I put them up on the test forums first but again these share the same db so while the effects of the new mod arn't really felt on the live forums the posts and such from the test forum transfer easily becuase of the shared database.

How can I copy our database and use that as a true test enviorment without effecting our live forums. If I can do this then I can also spend as much time as I need upgrading from 05 to 06 and then re-doing the mods (that's gonna stink) one at a time. Once all is finished and I know the upgrading runs fine I can just switch it all back, I hope.

Thanks for the help.

War

Edited by - Warlocks on 13 October 2007 12:28:20
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 October 2007 :  12:37:42  Show Profile
That backup option will create a backup local to the database server, not your computer, so the 2nd method is preferred.

Actually you can also use the Copy Database wizard, both to backup and create the copy, so have a go at that. You can access the wizard by right clicking a DB and choosing Tasks->Copy Database.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 14 October 2007 :  10:20:03  Show Profile
You *could* (not suggested for a newcomer, but more experienced hands might like to know) also
*make the db single user/dbo only
*detach the database
*copy the mdf (forget the ldf - if you've detached the db as dbo single user, there will be no pending transactions) using windows or better still find a copy of robocopy in the Win2KS resource pack and use that
*re-attach the original mdf (the ldf will be recreated if missing/deleted)
*unset single user/dbo only

It's a very quick and robust way to move databases between servers, but make sure the SQL servers are identical versions, identical collations etc or you may hit problems (for instance SP3 on MSSQL2K would fail to load the SP2 files successfully - other versions may or may not cause problems). Ditching the .ldf is only suggested if you *know* your data and database, and make sure there aren't outstanding transactions, scheduled jobs, etc., first. If the server is a part of a live COM+ style application, this is where using MSMQ will add massive robustness and not kill your entire app by taking the db offline for 10 mins!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07