Viewing 15 posts - 1,471 through 1,485 (of 2,894 total)
Your trigger is written in such way that it can only work for update/insert of a single record at the time. It's a classical example of how "never write your...
May 29, 2012 at 3:11 am
It does actually look like parameter sniffing...
But, if it's not blocked or other, try to add Option (MAXDOP 1)
Are you running on SQL2008?
May 29, 2012 at 3:05 am
I thought there is a concept of "short-circuiting" in sql server. Try the following.
SELECT 1 WHERE (1 = 1) OR (1 / 0 = 0)
even if there is a division...
May 29, 2012 at 2:58 am
pravasis (5/28/2012)
Dung Dinh (5/28/2012)
idname1name2desc
1test1 test2 ...
May 28, 2012 at 2:36 pm
That is exactly what I've described (even a bit more).
It returns two rows as single record in Test_Join_Source2 matches two different records in Test_Join_Destination2:
it matches the first one on...
May 28, 2012 at 10:21 am
OP has two records as it matches to two different records in table she JOINs to, one record matches on ONE column and another record matches on SECOND column.
OP...
May 28, 2012 at 9:48 am
Could you please post the complete trigger code.
May 28, 2012 at 9:38 am
I've done it before in a place when standard SQL replication wasn't allowed for stupid reason.
You will need to create custom triggers to capture change and build appropriate DML. The...
May 28, 2012 at 9:29 am
Schadenfreude-Mei (5/28/2012)
pdanes (5/28/2012)
Eugene Elutin (5/24/2012)
Ask electrician to connect your server room power supply via your floor light switch, so...
May 28, 2012 at 9:11 am
Ian Scarlett (5/28/2012)
Hmmm... I wonder if the OP will start going for interviews as a plasterer with all this knowledge being imparted. 😛
I can say (reading detailed DIY advices here)...
May 28, 2012 at 7:03 am
May 28, 2012 at 5:13 am
If guidsource in dbo.LR_TABLE_TEST is unique, ou can try this way:
SELECT * INTO dbo.LR_TABLE_TEST_1
FROM (SELECT ROW_NUMBER() OVER (ORDER BY guidsource) AS RN, * FROM dbo.LR_TABLE_TEST) q
WHERE RN...
May 28, 2012 at 5:07 am
anthony.green (5/28/2012)
May 28, 2012 at 4:58 am
I guess this thread should be placed into dedicated forum. Can be called "All SQL in 15 minutes"
or "What I'm going to do on this weekend"
Any other ideas?
May 25, 2012 at 4:46 am
Viewing 15 posts - 1,471 through 1,485 (of 2,894 total)