Forum Replies Created

Viewing 15 posts - 6,001 through 6,015 (of 8,416 total)

  • RE: Help with Cursor

    RBarryYoung (2/20/2010)


    FYI: @PartDescription is not defined.

    It was defined in the previous posts as NVARCHAR(60). The destination column appears to be NVARCHAR(100) though.

    I am going with NVARCHAR(100), just to be...

  • RE: Quering data from same table

    pritesh-807803 (2/21/2010)


    If i create index on same table is there any thing wrong.. insted of view index.

    Pritesh,

    The point of an indexed view is that it automatically keeps partial aggregations up...

  • RE: Sql 2005 query problem, thanks for your help

    My best guess...

    DECLARE @data

    TABLE (

    [date] DATETIME NOT NULL PRIMARY KEY,

    ...

  • RE: SQL JOB

    Thanks!

  • RE: EXISTS

    Alex Kuznetsov blogged about this recently, highlighting common code and some considerations to bear in mind. I don't necessarily agree with all the content, but I thought I should...

  • RE: EXISTS

    MERGE was new for 2008 😛

    Demonstration code using EXISTS:

    -- Test table

    CREATE TABLE #Test

    (col1 INTEGER PRIMARY KEY, data INTEGER NOT NULL);

    -- A row...

  • RE: EXISTS

    Demonstration code using MERGE:

    -- Test table

    DECLARE @test-2

    TABLE (col1 INT PRIMARY KEY, data INTEGER NOT NULL);

    -- A row to UPSERT

    INSERT @test-2 (col1, data) VALUES (1, 1);

    SELECT *

    FROM...

  • RE: EXISTS

    Wrap your code in [ code ] [ /code ] tags (remove the spaces within the tags there)

    Click the 'IFCode' button in the editor (to the right of the Bold,...

  • RE: Unique Key on Text datatype

    Welsh Corgi (2/20/2010)


    I apologize for not taking the time as Paul did to fully explain the implications concerning the use of a Text Field.

    Nothing to apologize for -...

  • RE: EXISTS

    I am unsure how your code relates to the requirement "The idea is that if the record being saved already exists, update the row, otherwise insert it."

    You appear to be...

  • RE: Looking for Explanation for this

    Matt Miller (#4) (2/15/2010)


    NULL is not a value, so as such, NULL is neither equal nor not equal to any value. Unfortunately, that also means that it's not LIKE...

  • RE: SQL Server 2008 running 50% faster on desktop than server - what to look for?

    Lynn Pettis (2/20/2010)


    Actually, both are the same.

    Both what? Query performance and server performance? :blink: :unsure:

    The whole thread is about why a given query appears to run faster on...

  • RE: SQL SRVR 2008 - no product key on package

    Yes, I should have said 'interior case' in my earlier attempt to explain where the product key sticker is on my copy.

  • RE: nullable foreign keys for all primary keys

    I'd like to help, but the question isn't quite clear to me.

    If you post some example data to demonstrate, it might help me understand it better.

  • RE: SQL JOB

    Hi Mr. Corgi 🙂

    Thanks for taking the time to track down those helpful links. As a tip, if you wrap those in IFCode [ url ] and [...

Viewing 15 posts - 6,001 through 6,015 (of 8,416 total)