Forum Replies Created

Viewing 15 posts - 2,281 through 2,295 (of 8,416 total)

  • RE: help in my procedure

    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...

  • RE: help in my procedure

    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...

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (12/17/2010)


    Just be sure to turn off "Auto List Members" and "Auto Parameter Info" if you're working on a database with lots of objects or you will have SSMS...

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (12/17/2010)


    Has anyone tried SQLComplete intellisense[/url]? I'm trying it and it doesn't look bad at all. Since I work on 2005 servers it comes very handy. Moreover it's completely...

  • RE: Are the posted questions getting worse?

    Malcolm Daughtree (12/16/2010)


    Yep! Left that one.... I actually went back to the beginning of this thread and if one was inclined to make a career of 'SQL comedy' or Programmer...

  • RE: Are the posted questions getting worse?

    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...

  • RE: View is not ordered. Why?

    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...

  • RE: Are the posted questions getting worse?

    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()...

  • RE: View is not ordered. Why?

    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...

  • RE: View is not ordered. Why?

    Craig Farrell (12/16/2010)


    I'm trying to force an IAM defrag that will cause this. I've forced some fragging, but I'm still getting logical read orders. Get back to you....

  • RE: View is not ordered. Why?

    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...

  • RE: View is not ordered. Why?

    Tom.Thomson (12/16/2010)


    Paul White NZ (12/15/2010)


    Perhaps it would be nice if SQL Server printed a warning message in the second case. My understanding is that this is technically impossible to...

  • RE: View is not ordered. Why?

    CREATE TABLE dbo.Example

    (

    row_id INTEGER IDENTITY NOT NULL PRIMARY KEY CLUSTERED,

    data AS CONVERT(VARCHAR(11), row_id) PERSISTED...

  • RE: View is not ordered. Why?

    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...

  • RE: View is not ordered. Why?

    evald (12/15/2010)


    ...I'm just trying to say that if the order clause is not working in some cases for some reason than its useless and confusing give the possiblity to the...

Viewing 15 posts - 2,281 through 2,295 (of 8,416 total)