Viewing 15 posts - 736 through 750 (of 8,416 total)
L' Eomot Inversé (2/17/2012)
I guess FORCESEEK always works, though (?).
Nothing always works :-). FORCESEEK will result in a plan with a seek operation on the hinted table (or index...
February 17, 2012 at 8:33 am
Basit Farooq (2/17/2012)
You can implement locks in SQL Server using locking hints read below:
Much of that 'information' is wrong. Might have been easier/better to have simply linked to BOL...
February 17, 2012 at 7:25 am
SQLKnowItAll (2/17/2012)
Ok, this is a new one for me. Why would one use this?
Application locks can be handy in all sorts of situations. One example that I use...
February 17, 2012 at 6:38 am
Hugo Kornelis (2/17/2012)
February 17, 2012 at 6:22 am
Hugo Kornelis (2/17/2012)
SQL Kiwi (2/17/2012)
John Mitchell-245523 (2/17/2012)
February 17, 2012 at 5:44 am
Hugo Kornelis (2/17/2012)
Since this is undocumented, there is no way to guarantee this even if it is true today.
It isn't true and there are many ways to disprove it. ...
February 17, 2012 at 5:28 am
John Mitchell-245523 (2/17/2012)
February 17, 2012 at 4:59 am
guerillaunit (2/16/2012)
Hi there,Is there a keyboard shorcut to turn on / off IntelliSense in Management Studio?
In 2012 yes; the default shortcut is CTRL-Q, CTRL-I but that is customizable.
February 17, 2012 at 12:06 am
Or:
INSERT INTO period_dim (col1, col2, ..., coln)
SELECT ...
FROM ...
WHERE NOT EXISTS
(
SELECT 1
FROM dbo.period_dim WITH (HOLDLOCK)
WHERE years =...
February 16, 2012 at 11:51 pm
Rowles (2/14/2012)
A table hint would be used in a T-SQL query. So table hints would then be a sub-type of query hint, right?
I'm not sure I would agree. ...
February 16, 2012 at 11:38 pm
R.P.Rozema (2/16/2012)
My guess would be they were asking for sp_getapplock (link).
You beat me to it 🙂
February 16, 2012 at 11:08 pm
sharon-472085 (2/16/2012)
without using sum() function ,without loop, without cursor ,without using any other temp table or column.
A bit of a cheat, but:
SELECT
result =
...
February 16, 2012 at 10:59 pm
Stewart "Arturius" Campbell (2/16/2012)
will this help?
This is an unreliable and unsupported construct, and should not be used or recommended:
CREATE TABLE #test (col1 tinyint, col2 char(5));
INSERT #test (col1)
VALUES (1),(2),(3),(7),(8);
DECLARE @sum...
February 16, 2012 at 10:54 pm
It is certainly very good practice to match data types, but that is not the only way to obtain a seek here (assuming the default collation is a Windows one...
February 16, 2012 at 10:29 pm
Viewing 15 posts - 736 through 750 (of 8,416 total)