Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little SQL Server brain-teaser question
Message
 
 
À
30/10/2013 17:09:21
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01586880
Message ID:
01586950
Vues:
35
>
>SELECT * from myTable WHERE ID = @ID WITH (READPAST)
>
>
>That's a good guess....but a READPAST essentially ignores a row where it can't get a shared lock.
>
>Again, in this situation, if a shared lock could not be obtained, we want the last good committed version.
>
>Give you a hint....think "camera"

Based on the hint I guess you're talking about snapshots.
CREATE DATABASE AdventureWorks_dbss1800 ON
( NAME = AdventureWorks_Data, FILENAME = 
'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Data\AdventureWorks_data_1800.ss' )
AS SNAPSHOT OF AdventureWorks;
http://technet.microsoft.com/en-us/library/ms175876.aspx

I haven't played with them yet.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform