Solved

Best practice fro 'snapshots'

Posted on 2012-04-09
2
179 Views
Last Modified: 2012-04-10
I am throwing this out for ideas...

I need to run a query against up to 4 tables/views and grab then put the results into a database - kind of like a snapshot but not sure if this is the best way to phrase it.

I need to store the results in a format where they do not change and label the new table with datestamp?

Ideas? Pro's/Con's
0
Comment
Question by:edrz01
2 Comments
 
LVL 20

Accepted Solution

by:
Marten Rune earned 500 total points
ID: 37826490
Shouldn't you run one transaction in READ COMMITTED SNAPSHOT isolation mode, i e begin transaction, read and then commit transaction. This will ensure you get all rows from all tables in transactionally sync.

Write the lot to a new table that you create in the above transaction (given a special name)

If you don't need many tables, I would choose to write to one table, and set extended properties for that table and in that store date and time for last batch load.

Regards Marten
0
 

Author Closing Comment

by:edrz01
ID: 37827079
thx
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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