Viewing 15 posts - 361 through 375 (of 8,416 total)
sqlfriends (8/23/2012)
So in the merge statement, Right below when matched statement I can add where not exists like below ? Thanks
Don't just copy and paste, read the article and understand...
August 23, 2012 at 7:11 pm
I also knew the fact the question was looking to test, but fell foul of the start at zero like so many others.
I personally think the question would have been...
August 23, 2012 at 2:46 am
Evil Kraig F (8/22/2012)
August 22, 2012 at 11:47 pm
Marios Philippopoulos (9/11/2011)
Dropping the temp table explicitly at the end of a batch is considered good programming practice.
Certainly best practice for ad-hoc batches, but I would say it is merely...
August 22, 2012 at 11:34 pm
Evil Kraig F (8/22/2012)
I believe I have a query (or 10) to mark for modification once we get out of 2k5.
The NOT EXISTS...INTERSECT thing works in SQL Server 2005 of...
August 22, 2012 at 5:51 pm
Another example, using APPLY syntax:
DECLARE @T AS TABLE
(
pk integer PRIMARY KEY,
col1 integer NULL,
...
August 22, 2012 at 5:02 pm
sqlfriends (8/22/2012)
...
August 22, 2012 at 4:31 pm
You make some good points, Joe, but I fear the "proprietary module" allows for limited rewrite & redesign opportunities.
August 22, 2012 at 7:46 am
SQLSACT (8/22/2012)
So if the Primary Key has 2 columns defined, my foreign key needs to have the same 2 Columns defined?
Yes. The point is that each child record must...
August 22, 2012 at 5:24 am
Col1 needs to have a PRIMARY KEY, UNIQUE constraint, or (less acceptably) a UNIQUE index defined on it. Something needs to enforce uniqueness on col1 alone. The composite...
August 22, 2012 at 5:10 am
ChrisM@Work (8/22/2012)
August 22, 2012 at 5:05 am
jshahan (8/21/2012)
For example, would you have the procs set to recompile each time they are run? Would you make use of "OPTIMIZE FOR.." etc.
Using WITH RECOMPILE on the procedure...
August 22, 2012 at 5:01 am
Sergiy,
I've been trying to work out why you're getting so excited about all this. Perhaps you are wondering whether an update to the same value is actually written to...
August 22, 2012 at 4:04 am
ChrisM@Work (8/16/2012)
August 22, 2012 at 3:33 am
Sergiy (8/16/2012)
You may try it for yourself - still no dirty pages.
Sorry Paul.
It's different only when PK is declared on (Name).
Then it goes like Paul...
August 22, 2012 at 3:12 am
Viewing 15 posts - 361 through 375 (of 8,416 total)