Forum Replies Created

Viewing 15 posts - 1,096 through 1,110 (of 1,995 total)

  • RE: Sending email script

    WiRL (5/24/2012)


    Hello all,

    I hope someone can help me.

    I have a table that holds peoples jobs and their deadlines. I want to email the people on a daily basis whose jobs...

  • RE: Help with a query? Parent - Child hierarchy problem

    not addressing the main point of the post, but in a parent/child hierarchical type query have you considered using the hierarchyid data type..?

    i only say this because i saw code...

  • RE: Making New Infrastructure Investments

    im curious,

    a lot of the resistance to cloud usage comes from a financial standpoint or a good old fashioned control of hardware need... but has anyone looked at this...

  • RE: Dynamic SQl error - I might be doing something wrong.

    michael vessey (5/24/2012)


    sqlbee19 (5/23/2012)


    michael vessey (5/23/2012)


    the multiple rows returned in your select statement are corrupting the @cmd value - in theory the value returned should be correct (although if you...

  • RE: Dynamic SQl error - I might be doing something wrong.

    sqlbee19 (5/23/2012)


    michael vessey (5/23/2012)


    the multiple rows returned in your select statement are corrupting the @cmd value - in theory the value returned should be correct (although if you use any...

  • RE: sys.dm_db_index_physical_stats hangs in one of my databases

    GilaMonster (5/23/2012)


    Check your IO throughput. Sounds like the drive is not responding as it should.

    Index physical stats doesn't run showcontig, more the other way around. Showcontig is deprecated and just...

  • RE: General Qestions

    Koen Verbeeck (5/24/2012)


    Schadenfreude-Mei (5/24/2012)


    Robert Davis (5/23/2012)


    I laughed very hard at the replies here, but if we're posting serious answers now, I think the OP should start with this post by...

  • RE: Where are the good Senior Level DBA's?

    Lynn Pettis (5/23/2012)


    michael vessey (5/23/2012)


    The person who wrote the original code or the tester that allowed it to make it into production?

    ahem.... the tester didn't put the defect...

  • RE: Set based iteration

    ...anything that necessarily iterates over 1 row at a time and cannot be made to iterate of more than 1 row at a time (you can read that as processes...

  • RE: Set based iteration

    oh and a recursive CTE may be an iterative operation, but when cross joined for an insert the "Insert" is not iterative..... it's still a set based operation in the...

  • RE: Set based iteration

    Jeff Moden (5/23/2012)


    michael vessey (5/23/2012)


    try this

    with x (id) as

    (select 1 as id

    union all

    select ID+1 from X as id

    where id<10000

    )

    insert into fooTable

    select d.name from sysdatabases d cross join...

  • RE: Where are the good Senior Level DBA's?

    The person who wrote the original code or the tester that allowed it to make it into production?

    ahem.... the tester didn't put the defect there (the developer did)...

  • RE: Set based iteration

    see my example

    create table footable (name varchar(1000))

    go

    select 'aaaaa';

    with x (id) as

    (select 1 as id

    union all

    select ID+1 from X as id

    where id<10000

    )

    insert into fooTable

    select d.name from sysdatabases d cross...

  • RE: Set based iteration

    any code before the "WITH x as" must be terminated with a ;

  • RE: Dynamic SQl error - I might be doing something wrong.

    the multiple rows returned in your select statement are corrupting the @cmd value - in theory the value returned should be correct (although if you use any fields from sys.server_principals...

Viewing 15 posts - 1,096 through 1,110 (of 1,995 total)