Forum Replies Created

Viewing 15 posts - 4,516 through 4,530 (of 15,381 total)

  • RE: How to delete data from multiple tables at a time

    ashalatha.cse76 (6/11/2014)


    can i have one example regarding that

    I would not recommend using triggers for this. Use foreign keys with cascading deletes as Gail suggested.

  • RE: Today's Random Word!

    Ed Wagner (6/11/2014)


    Revenant (6/11/2014)


    eccentricDBA (6/10/2014)


    TomThomson (6/10/2014)


    sing4you (6/10/2014)


    Stuart Davies (6/10/2014)


    Sean Lange (6/10/2014)


    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    JAZZ Master (6/10/2014)


    Boots

    y Collins

    Drink

    Please!!!

    Thanks

    funkedelic

    cool

    bodacious

    90's

    80's Music

    totally

  • RE: output identity values

    The Dixie Flatline (6/10/2014)


    Sean, I'm just kidding with you.

    I wasn't continuing this discussion in order to "win" it. The best discussions ultimately reach a consensus, because everyone understands...

  • RE: output identity values

    The Dixie Flatline (6/10/2014)


    Go ahead, Sean. Spoil my fun. :crying:

    No fun spoiling here!!! The discussion is a good one but you both really want to be right and...

  • RE: output identity values

    This all started when I asked IF the OP was able to modify the table. And if so, I suggested adding a new column. Both approaches have merit and the...

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    timgapinski-841846 (6/10/2014)


    CREATE FUNCTION permission denied in database 'tempdb'.

    not sure why i do not have permission over the tempdb but i could not get started with these much needed tools because...

  • RE: Just curious, what are your SQL pet peeves ?

    below86 (6/10/2014)


    Having a consistent naming convention for fields. I am as guilty as anybody at not doing this, but it is driving me nuts now. Years ago we...

  • RE: Today's Random Word!

    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    JAZZ Master (6/10/2014)


    Boots

    y Collins

    Drink

    Please!!!

  • RE: Today's Random Word!

    JAZZ Master (6/10/2014)


    Boots

    y Collins

  • RE: Today's Random Word!

    Ed Wagner (6/10/2014)


    JAZZ Master (6/10/2014)


    crookj (6/10/2014)


    Sean Lange (6/10/2014)


    JAZZ Master (6/10/2014)


    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    Ed Wagner (6/10/2014)


    crookj (6/10/2014)


    Ed Wagner (6/10/2014)


    SQLRNNR (6/10/2014)


    Ed Wagner (6/10/2014)


    BWFC (6/10/2014)


    Stuart Davies (6/10/2014)


    Revenant (6/9/2014)


    Ed...

  • RE: Today's Random Word!

    JAZZ Master (6/10/2014)


    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    Ed Wagner (6/10/2014)


    Sean Lange (6/10/2014)


    Ed Wagner (6/10/2014)


    crookj (6/10/2014)


    Ed Wagner (6/10/2014)


    SQLRNNR (6/10/2014)


    Ed Wagner (6/10/2014)


    BWFC (6/10/2014)


    Stuart Davies (6/10/2014)


    Revenant (6/9/2014)


    Ed Wagner (6/9/2014)


    eccentricDBA (6/9/2014)


    Daniel Bowlin (6/9/2014)


    Ed Wagner (6/9/2014)


    Page

    turner

    &...

  • RE: Count (case when datepart(hh, Column ) error

    kabaari (6/10/2014)


    Thanks! I worked through it resolve

    select b.model,

    count(case when substring(u.unitcompleted, 1,2) = '05' then 0 end) '5AM',

    count(case when substring(u.unitcompleted, 1,2) = '06' then 0 end) '6AM',

    count(case when substring(u.unitcompleted, 1,2)...

  • RE: Count (case when datepart(hh, Column ) error

    You have a LOT of implicit casting going on here where you shouldn't be. DATEPART returns an integer, not a varchar. All of your comparisons are to a varchar. Change...

  • RE: Duplicate key issue ... again ... and again ...

    sql-lover (6/10/2014)


    SQL is delicious (6/10/2014)


    sql-lover (6/9/2014)


    thomaswoof (6/9/2014)


    I'm having the exact same problem. The table had at some point been reseeded while importing data from the old version of...

  • RE: CASE condition not affecting CAST output

    greg.bull (6/10/2014)


    Thanks for this. The query is quite simple, so I'm going to do it like this:

    declare @route int

    set @route = 2

    if @route = 1

    begin

    select cast(1 as decimal(10,2)) as...

Viewing 15 posts - 4,516 through 4,530 (of 15,381 total)