Solved

Best practice fro 'snapshots'

Posted on 2012-04-09
2
177 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Group by correlation 4 54
SQL Server agent & maintenance task issue ? 8 65
SQL Date from a string 4 57
2 comma seperated list - SQL Server 12 38
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

911 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

19 Experts available now in Live!

Get 1:1 Help Now