Solved

Taking the snapshots of a database

Posted on 2006-11-15
3
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

729 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