Viewing 15 posts - 1 through 15 (of 69 total)
hahahahaha
now, this is clear tutorial!
conceptually ok =)
December 14, 2005 at 7:24 pm
I got 974.6 the second time... since then, no inch more... Call me Grinch, but God, I love to kick Santa!!
=)
December 14, 2005 at 7:21 pm
Hungarian Notation is critical in long codes. My guess is, this should not be the case in set-oriented store procedures: fewer vars. So, as long as no one takes...
July 22, 2005 at 8:21 am
I agree. The second best thing is to use the same owner if dbo is not possible (some peculiar security reason) and stick to it.
Keep it simple if possible.
July 22, 2005 at 8:09 am
Do not agree on cluster index; do agree on identity primary key, as a starting point.
Also it's much easier (and this argument was not included in you article) to have...
July 22, 2005 at 8:00 am
Sorry my mistake, you need both in the first case!
A HOLDLOCK (also know as SERIALIZABLE) is a proper lock. And UPDLOCK is also correct; you also need an Exclusive Lock,...
July 15, 2005 at 9:20 am
A sub query in a EXISTS does not return rows, so the columns list is not relevant. It's just a syntax issue. That’s not the case with the IN case...
July 15, 2005 at 7:43 am
The last person needs aditional resources dynamically assigned by the server: locks for example.
July 15, 2005 at 5:04 am
I preffer,
DELETE FROM PARTY_COMMENT WHERE exists
(SELECT * FROM PARTY WHERE PARTY.CORRESPONDENCE_ID = @corrid and
PARTY.PARTY_ID = PARTY_COMMENT.PARTY_ID
)
DELETE FROM PHONE WHERE exists
(SELECT * FROM PARTY WHERE PARTY.CORRESPONDENCE_ID = @corrid and
PARTY.PARTY_ID...
July 15, 2005 at 4:53 am
This is one of the most interesting topics I've read so far. Thanks Remi!!!.
Sorry I'd missed the original challenge...
July 15, 2005 at 4:27 am
Be sure about the datetime format, even if you read in a string, you should (pre) agree, the valid date(s) format(s).
If it differs from the host default datetime format,...
July 15, 2005 at 3:18 am
wow! It will work because you are blocking ALL the Table1. A HOLDLOCK would be enough. Your COMMIT/ROLLBACK will release all locks.
For my personal taste, I like identity cols, even...
July 15, 2005 at 2:58 am
But even then, maybe a TOP n and a loop over a result set... even using a temp with an identity col and just the primary keys (and not all...
July 15, 2005 at 2:42 am
Prefer and IPConfig solution, since you won't depend of a proper sql config. @@servername may not have your server name, for instance.
July 7, 2005 at 10:11 pm
Just SELECT, no (SELECT ... ) (a former Oracle kid?):
INSERT INTO #SingleHolders
(PolicyHolder, CorrespondenceClient)
SELECT DISTINCT PolicyHolder1, ISNull(CorrespondenceClient, 0)
FROM #PolicyList
WHERE PolicyHolder2 IS Null
ORDER BY PolicyHolder1, ISNull(CorrespondenceClient, 0)
And yes, sorting according to the...
July 7, 2005 at 9:46 pm
Viewing 15 posts - 1 through 15 (of 69 total)