Solved

Taking the snapshots of a database

Posted on 2006-11-15
3
220 Views
Last Modified: 2006-12-04
I have a  database called 'projectserver'
I took the backup of this database and restored to a new database 'projectsnap' on the same server.
Now i want to use this 'projectsnap' database as a reporting database for the actual database
To accomplish this i want to take snapshots of the 'projectserver' and load the data at that particular instance into 'projectsnap'
The main objective of this operation is that i can go back to any particular time and see how the data looked like at that instance of time in 'projectsnap'
     I searched the net but didnt find proper information as how to do this...please help


thanks,
kishore
0
Comment
Question by:k_rasuri
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 17954092
ARe u talking abt snap shot replication.

if so check this

Snapshot Agent, snapshot replication in BOL
0
 
LVL 29

Accepted Solution

by:
Nightman earned 300 total points
ID: 17954105
Assuming you want to take a proper snapshot using SQL 2005

USE AdventureWorks
go

USE master
go

CREATE DATABASE AdventureWorksSnap
ON
( NAME = N'AdventureWorks_Data',
FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorksSnap_Data.mdfss')
-- , SIZE = 167872KB , MAXSIZE = UNLIMITED, FILEGROWTH = 16384KB )
AS SNAPSHOT OF AdventureWorks  <<<< ----------
go

USE AdventureWorksSnap
go

SELECT * FROM person.contact
go

taken verbatim from http://www.sqlskills.com/blogs/kimberly/SearchView.aspx?q=snapshot
0
 
LVL 29

Expert Comment

by:Nightman
ID: 17954123
Have a look at
'How Database Snapshots Work' (http://msdn2.microsoft.com/en-us/library/ms187054.aspx)
and
'How to: Create a Database Snapshot (Transact-SQL)' (http://msdn2.microsoft.com/en-us/library/ms175876.aspx)
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
kill process lock Sql server 9 45
Help Required 2 29
SQL Server Designer 19 39
Insert query into temp tables using Coldfusion 3 13
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now