Viewing 15 posts - 1,051 through 1,065 (of 8,416 total)
Rob-350472 (1/18/2012)
January 18, 2012 at 6:41 am
Rob-350472 (1/18/2012)
January 18, 2012 at 5:59 am
It is possible to do this efficiently with CASE and subqueries, or with start-up filters:
Sample data:
CREATE TABLE #T (col1 integer PRIMARY KEY)
CREATE TABLE #1 (col1 integer PRIMARY KEY, col2 char(1)...
January 18, 2012 at 5:53 am
The query optimizer in SQL Server does consider storing and reusing intermediate result sets in some cases. One common case is where part of the plan is executed many...
January 18, 2012 at 5:06 am
martin.kerr 34088 (11/2/2011)
...
UPDATE attributes
SET id = 1000000 + CAST(@Counter AS int)
...
January 18, 2012 at 4:18 am
fahey.jonathan (1/17/2012)
What am I missing?
Joe is referring to a 'standard' SQL syntax that is not yet supported in SQL Server.
January 18, 2012 at 4:06 am
Rayven (1/17/2012)
I don't want to use the option RECOMPILE.
Don't rush to judgement on this. Unless the queries in question are being executed thousands of times per second, and execute...
January 18, 2012 at 4:00 am
CELKO (1/17/2012)
WHERE COALESCE (@param, some_column) = some_column. I one case, the compiler keeps multiple plans and pulls...
January 18, 2012 at 3:43 am
This shows three ways to solve this problem:
Example table and data:
CREATE TABLE #Example
(
Customer integer NOT NULL,
Amount ...
January 18, 2012 at 3:38 am
Christian Buettner-167247 (1/18/2012)
I would expect to find a row for the trigger in sys.all_objects, if it is said to be stored as an...
January 18, 2012 at 3:01 am
aitchkcandoo (1/18/2012)
January 18, 2012 at 1:34 am
Here you go:
SELECT
i.CustomerID,
STUFF(
(
...
January 18, 2012 at 1:24 am
Hugo Kornelis (1/17/2012)
EDIT: Removed the color tag after a few failed attempts to use it - I hope just using bold text emphasises the changes sufficiently.
Like this...? (the stupid trick...
January 17, 2012 at 2:07 pm
GSquared (1/17/2012)
January 17, 2012 at 6:53 am
Perhaps SSC should go dark too. Or just the 'getting worse' questions 🙂
January 17, 2012 at 2:21 am
Viewing 15 posts - 1,051 through 1,065 (of 8,416 total)