Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little SQL Server brain-teaser question
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01586880
Message ID:
01586950
Views:
36
>
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform