Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
 
DECLARE @SumVal int
BEGIN TRANSACTION
SELECT @SumVal = SUM(Value) FROM DevicesData WHERE DeviceId > 999000
WAITFOR DELAY '00:00:03'
IF (@SumVal) = 0
   INSERT INTO DevicesData (DeviceId, Value) VALUES (1000000, 111)
COMMIT




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012