Moving A SQL Server Database

Written by Desirée Harris


Moving A SQL Server Database Desirée Harris March, 3 2005

A database move can be done a couple different ways, but whenrepparttar database is updated frequently andrepparttar 118376 move needs to be completed with minimal downtime and no data loss, it is best to move it by detaching and then reattachingrepparttar 118377 database onrepparttar 118378 new server. The database will be offline duringrepparttar 118379 move but it is better to have it offline than to miss transactions when backing up and then restoringrepparttar 118380 database onrepparttar 118381 new server.

In order to getrepparttar 118382 database moved with minimal downtime, be sure to complete as many tasks ahead of time as possible to move quickly during this process. Many times, a database move requires thatrepparttar 118383 application that uses it to be offline and this time should be minimized as much as possible. These tasks include:

1. Identifying and opening all files that include connection string information torepparttar 118384 database. 2. Open all necessary windows/applications to perform necessary tasks: 1. Locate and make note ofrepparttar 118385 path andrepparttar 118386 name ofrepparttar 118387 database .mdf / .ldf files on bothrepparttar 118388 current and new SQL server forrepparttar 118389 database. 2. Identify all usernames and passwords forrepparttar 118390 database. 3. Open Query Analyzer onrepparttar 118391 new SQL server to run SQL commands. 4. Open Enterprise Manager on bothrepparttar 118392 current and new SQL server to complete necessary tasks. 3. Read through instructions at least once to helprepparttar 118393 process go smoothly.

In summary, we'll backuprepparttar 118394 database, detach it, and then reattach it onrepparttar 118395 new sever. This process can be completed with Query Analyzer, but these instructions will be done via Enterprise Manager. Let's get started!

Backup Database

This is done as a precautionary step. This will allow us to have a good backup ofrepparttar 118396 database up torepparttar 118397 time ofrepparttar 118398 move. (I actually do this before I make any changes to a database; you can never have too many backups!)

1. Open Enterprise Manager, and navigate to databases. 2. Right-clickrepparttar 118399 database being backed up, select 'All Tasks' and then click 'Backup Database…'. 3. Verify and make note of database name andrepparttar 118400 backup destination path. I usually changerepparttar 118401 destination path to 'd: empdbname.bak'. It isn't necessary to change it, but ensure you can find it if you need it. 4. Underrepparttar 118402 'Overwrite' section, select 'Overwrite existing media'. 5. Onrepparttar 118403 'Options' tab, put a check next to 'Verify backup upon completion'. 6. Click 'OK'.

Detachrepparttar 118404 Database

1. Right-clickrepparttar 118405 database, select 'All Tasks', and then click 'Detach Database…'. 2. At this pointrepparttar 118406 current number of connections torepparttar 118407 database will be displayed. If there are any connections, they must be cleared beforerepparttar 118408 database can be detached. Click 'Clear'. You will then be prompted with 'This will end all active transactions in this database which is required beforerepparttar 118409 database can be detached. Is it OK to proceed?' Click 'OK'. The next prompt is regarding notifying users. It will ask 'Do you want to notifyrepparttar 118410 currently connected users that their sessions inrepparttar 118411 database will be ended?' I always click 'No' for web applications. And then click 'OK' to detachrepparttar 118412 database. 3. At this pointrepparttar 118413 database is detached (it will not appear in Enterprise Manager).

Next, you'll need to copyrepparttar 118414 data file (.mdf) and transaction log (.ldf) file torepparttar 118415 new server. By default, SQL server will create databases and put these files inrepparttar 118416 same directory (it's usually Program FilesMicrosoft SQL ServerMSSQLData). However, for performance gains, this may be changed sorepparttar 118417 transaction log file is put on another hard drive. Be sure to checkrepparttar 118418 new SQL server to see how it is setup. Ifrepparttar 118419 transaction log files are setup on a different hard drive, it should be copied there andrepparttar 118420 data file should be put in its appropriate directory. And, when attachingrepparttar 118421 database, be surerepparttar 118422 paths torepparttar 118423 files are correct.

Blogging: The best Introduction to Internet Publishing

Written by David A. Saharkhiz


It's a common condition - you've got an urge to publish onrepparttar web but have no idea where to start and don't want to commit to a full-fledged website...just yet.

Thankfully, there's an easy solution.

Though some websites such as Geocities or Freewebs offer free website services, if you are absolutely confused byrepparttar 118375 internet and balk atrepparttar 118376 notion of having to learn HTML all at once, there's a really easy solution that just about anyone can do: blogging.

What's blogging you ask? A blog is a web log, or a place to publish text and images inrepparttar 118377 spirit of a journal or an online report. Many use it for just that purpose, but a blog can be just about anything you want it to be, and for all practical purposes, it is a web page...and you can blog absolutely free.

The best way to go is blogger, where you can set up a free blog and choose from a number of very stylish templates.

Not only are you now publishing for real, you can do it very intuitively, using blogger's built-in controls. Butrepparttar 118378 beauty of blogging is that Blogger supports raw html coding and allows you to modifyrepparttar 118379 blogger template at will. You can experiment with HTML tags and learn how to code HTML links, HTML images, and even HTML tables, and blogger will even ensure to make sure that your HTML tags check out as you experiment with them.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use