Forum Replies Created

Viewing 15 posts - 5,521 through 5,535 (of 9,707 total)

  • RE: Nulls and logic

    zapouk (7/21/2011)


    ....

    declare @B1 char(1) --could be null

    declare @B2 char(1) --could be null

    ....

    select @B1 = 'x'

    select @B2 = null

    ....

    @B1 = @B2

    ....

    select @B1 = null

    select @B2 = null

    ...

    @B1 = @B2

    --Ans:...

  • RE: Index seek and Index scan

    Philip Yale-193937 (7/21/2011)


    Brandie Tarvin (7/20/2011)


    This code will most likely NOT use the index because the index only works if your WHERE clause has Col3 listed and if it references Col3...

  • RE: Are the posted questions getting worse?

    I'm curious. How many people subscribe to a job service (or keep in touch with job sites / recruiters) because they're currently looking?

    Or do you just keep in touch just...

  • RE: Today's Random Word!

    Kit G (7/20/2011)


    Revenant (7/20/2011)


    Mousketeers

    Annette Funicello

    Gidget

  • RE: Are the posted questions getting worse?

    hor_netuk (7/21/2011)


    I know times are hard, but a job alert email subscription delivered me the attached vacancy today. For the record, I won't be applying. 😛

    That salary can't be...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (7/20/2011)


    I think that's just Steve's warning to people presenting at PASS to take care of their voices. He's showing what happens when you get a little hoarse.

    Oi! That...

  • RE: Index seek and Index scan

    We do not have enough information to fully answer your questions. We would need create table statements, create index statements, and sample data insert statements in order to test ourselves....

  • RE: Index seek and Index scan

    Without seeing your DDL, I can't be sure, but it sounds like your non-clustered index doesn't use tran1 in the first column.

    I heard a lecture at a SQL Saturday that...

  • RE: Are the posted questions getting worse?

    Ninja's_RGR'us (7/20/2011)


    Brandie Tarvin (7/20/2011)


    On a semi-technical note, can I just say that I figured out how to do a JOIN to an UNPIVOT without using a derived table in the...

  • RE: Removing or Replacing Data

    AndrewSQLDBA (7/20/2011)


    I forgot to mention this, but the column is a text data type, and replace is not working with Text data type.

    Can you update it to VARCHAR(MAX) without breaking...

  • RE: Removing or Replacing Data

    Why would a combination of REPLACE(), LIKE() and PATINDEX() not work here?

    EDIT: Like in Lowell's example? It's set based, no looping. Looping bad if you don't need to do it.

  • RE: Database in Shutdown Status

    Thanks, Gail. I appreciate you verifying that for me.

  • RE: Database in Shutdown Status

    GilaMonster (7/20/2011)


    Restore from backup. Log file missing, database not cleanly shut down.

    So just restore over the exist rather than delete first?

  • RE: Automatically name backup file from T-SQL?

    My advice would be to use Dynamic SQL. Declare a variable, set the variable's value to the sql command above (with the date / time info concated into the string),...

  • RE: Removing or Replacing Data

    Have you tried the REPLACE() function?

Viewing 15 posts - 5,521 through 5,535 (of 9,707 total)