Forum Replies Created

Viewing 15 posts - 3,286 through 3,300 (of 8,416 total)

  • RE: What is this?

    vk-kirov (5/26/2010)


    Hmmm... Microsoft changed it in SQL Server 2008. In SQL 2005, 'DECLARE @b-2 sYsNaMe' produces an error. Well, SQL 2008 became more consistent here.

    I didn't know that - I...

  • RE: What will this return?

    What Hugo said. 🙂

  • RE: Simple LIKE with wildcard

    Very nice question today. I only found it easy because I have been doing stuff with unusual collations recently.

    There's a great set of visual tables showing sort (and comparison)...

  • RE: Use Dynamic SQL to Improve Query Performance

    Hey James,

    So:

    "It is well know for instance that if we put NEWID() in a SELECT statement, it will be executed once per row. Other functions and expressions such...

  • RE: Elegant way to change field to "Identity" type?

    Is the current column defined as NOT NULL? If so, there is a neat trick that makes it almost instant regardless of the number of rows.

    Table definition please (including...

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (5/26/2010)


    Steve Jones - Editor (5/26/2010)


    no, there have been some doozy's this week. Though our PhD friend doesn't help the impression.

    Who? You mean this individual?

    Karthik confuses me. Just...

  • RE: Are the posted questions getting worse?

    Chris Morris-439714 (5/26/2010)


    David Webb's is darned good too:

    David Webb-200187 (5/25/2010)


    "I don't know why your update didn't work. Perhaps your data has trouble accepting change."

    Sparkling.

  • RE: What is this?

    vk-kirov (5/26/2010)


    Paul White NZ (3/30/2010)


    It seems odd to me that type names must be lower cased in a case-sensitive database.

    It's not true (or I don't understand what you mean).

    I was...

  • RE: Time Bomb Design - A Longer Fuse

    David.Poole (5/26/2010)


    What am I doing wrong Paul? I don't seem to get any space back (in SQL2005) other than that I would get by defragging the index.

    What are you...

  • RE: Time Bomb Design - A Longer Fuse

    David,

    I just scanned through on a first read, but something important caught my eye:

    In the section on changing data types (after rebuilding the clustered index) you say that for SQL...

  • RE: Egg exists in the basket ???

    DECLARE @Parameter VARCHAR(MAX);

    SET @Parameter = ',' + 'A123,B123,C123,D123,E123,F123' + ','

    BEGIN TRANSACTION

    -- Update existing items

    UPDATE ReportData

    SET -- New...

  • RE: Constant Scan vs Clustered index scan

    Thanks for the execution plan, shame about the table definition, sample data, and index definitions, but I'll take what I can get.

    You might consider an index like the following:

    CREATE ...

  • RE: Query Cost ~ USD $$$

    GilaMonster (5/25/2010)


    Paul White NZ (5/25/2010)


    Whatever figure you decide on, remember to send 80% of it to the people on here that have helped you over the last year 😀

    Only the...

  • RE: Constant Scan vs Clustered index scan

    GilaMonster (5/25/2010)


    Paul White NZ (5/25/2010)


    It sucks a bit as a solution for reasons already given in this thread (not SARGable) but that doesn't stop people using it.

    Also doesn't stop people...

  • RE: Constant Scan vs Clustered index scan

    karthikeyan-444867 (5/25/2010)


    ???

    Not wasting any words tonight, are you? 😀

    In a case sensitive collation 'a' <> 'A' so developers often throw a LOWER or UPPER on both sides to get around...

Viewing 15 posts - 3,286 through 3,300 (of 8,416 total)