Viewing 15 posts - 2,281 through 2,295 (of 8,416 total)
CELKO (12/17/2010)
Yep, it is time to report a bug! That second SELECT inside the parameter list is dialect and ought to blow up, too.
Serious question:
Should scalar subqueries not be...
December 17, 2010 at 4:36 pm
I won't use COALESCE, because it's broken:
SELECT COALESCE((SELECT CASE WHEN RAND() <= 0.5 THEN 999 END), 999);
SELECT ISNULL((SELECT CASE WHEN RAND() <= 0.5 THEN 999 END), 999);
The final 999 value...
December 17, 2010 at 12:33 pm
Gianluca Sartori (12/17/2010)
December 17, 2010 at 3:01 am
Gianluca Sartori (12/17/2010)
December 17, 2010 at 2:50 am
Malcolm Daughtree (12/16/2010)
December 16, 2010 at 9:52 pm
CirquedeSQLeil (12/16/2010)
In that query, the place where intellisense always fouls up for me is PARTITION. For whatever reason, it always wants to select something else there automatically.
Yup, and as...
December 16, 2010 at 9:49 pm
WayneS (12/16/2010)
One thing I noticed is that if you don't have the Unique constraint, then it produces (this limited result set) in the CI order.
That's the point. The index...
December 16, 2010 at 9:33 pm
WayneS (12/16/2010)
Here's just two of the reasons why I've turned it off:
I just typed this successfully in 2008 SSMS with Intellisense on (which it always is):
SELECT rn = ROW_NUMBER()...
December 16, 2010 at 8:49 pm
Craig Farrell (12/16/2010)
Thanks Paul... a little adaptation for the 2k5 amongst us:
I hadn't noticed that 2005 objected...the fix is simple though, just remove the pointless (data) column reference:
INSERT dbo.Example...
December 16, 2010 at 8:11 pm
Craig Farrell (12/16/2010)
December 16, 2010 at 7:52 pm
Malcolm Daughtree (12/16/2010)
I think the reason that your example comes out in order is because the data is not causing a page split (8K) nor a re-allocation.
The point of the...
December 16, 2010 at 7:48 pm
Tom.Thomson (12/16/2010)
Paul White NZ (12/15/2010)
December 16, 2010 at 7:40 pm
CREATE TABLE dbo.Example
(
row_id INTEGER IDENTITY NOT NULL PRIMARY KEY CLUSTERED,
data AS CONVERT(VARCHAR(11), row_id) PERSISTED...
December 16, 2010 at 6:08 pm
evald (12/15/2010)
I would say Paul that a warning helps a lot.
Perhaps so. Sadly it wasn't practical so we have to live with it.
And i would say also that if...
December 15, 2010 at 11:15 pm
evald (12/15/2010)
December 15, 2010 at 9:25 am
Viewing 15 posts - 2,281 through 2,295 (of 8,416 total)