Viewing 15 posts - 1,486 through 1,500 (of 6,486 total)
Greg - just be careful - that has SQL injection written all over it.
February 22, 2010 at 10:07 am
From BOL:
READUNCOMMITTED
Specifies that dirty reads are allowed. No shared locks are issued to prevent other transactions from modifying data read by the current transaction, and exclusive locks set by...
February 22, 2010 at 9:56 am
As far as I know - option 1 is not "legal". You should get something squeeking at you for putting the BEGIN tran outside of the TRY, and the...
February 21, 2010 at 9:13 pm
All I can say it - boy am I happy they're getting rid of that flag!
No matter how you look at it - the non-ANSI setting isn't consistent....
February 21, 2010 at 9:07 pm
CirquedeSQLeil (2/21/2010)
Lynn Pettis (2/21/2010)
CirquedeSQLeil (2/21/2010)
If not Barry, Lynn, or Gus, it must be Jack. 😀After that - Gail, Andy, Tim, K. Brian Kelley, Steve, and Jeff are already MVP's.
Or maybe...
February 21, 2010 at 1:23 pm
Paul White (2/21/2010)
ChrisM@home (2/21/2010)
February 21, 2010 at 11:45 am
Sorry - just remembered how Michael Coles did it.
LIKE unfortunately can returning an UNKNOWN:
set ansi_nulls off
if null like null
print 'true 3'
if not (null like null)
print 'true 3a'
if '' not like...
February 21, 2010 at 11:41 am
Paul White (2/20/2010)
Matt Miller (#4) (2/15/2010)
February 21, 2010 at 11:32 am
John Paul -
SQL Server allows you to use joins in your DELETE statements, so perhaps having EXISTS is not necessary.
Assuming the primary key in both tables is Pkey, you...
February 20, 2010 at 1:21 pm
GT-897544 (2/20/2010)
ziangij (2/19/2010)
i just checked it out.. without indexes, update query takes 30 sec.
with the indexes in places, it takes 2 min !
RBarryYoung (2/17/2010)
February 20, 2010 at 10:58 am
nadabadan (2/18/2010)
Matt Miller (#4) (2/15/2010)
NULL is not a value, so as such, NULL is neither equal nor not equal to any value. Unfortunately, that also means...
February 20, 2010 at 9:26 am
ChrisM@home (2/20/2010)
Paul White (2/20/2010)
UsingChrisM'sArun's super test-data script, the following appeals to me:snip
'Course it does, it's got a CROSS APPLY in it!:hehe:
CROSS APPLY is an awesome operator to use...
February 20, 2010 at 9:16 am
Yes you will. Even in a simple recovery model every change gets logged first before the change is applied, so if your log file has insufficient space and cannot...
February 19, 2010 at 2:08 pm
if you don't have access to sys.tables, then it's not a SQL Server (at least not a 2005 or 2008 server). What's the other side?
February 18, 2010 at 6:27 pm
This is still going to give you trouble:
And (tEx.EventResults LIKE %)
needs to be
And (tEx.EventResults LIKE '%')
at very least
February 18, 2010 at 6:25 pm
Viewing 15 posts - 1,486 through 1,500 (of 6,486 total)