Forum Replies Created

Viewing 15 posts - 4,336 through 4,350 (of 8,731 total)

  • RE: Are the posted questions getting worse?

    spaghettidba (8/24/2015)


    Hi all!

    Long time no see... I've been away from the forums lately and I have 650 unread posts on The Thread (which I won't even try to catch...

  • RE: Converting a column of type nvarchar to datetime

    DuncEduardo (8/24/2015)


    you can use SQL string functions (Left, Right, Substring) to split out "date" parts.

    Then can concatenate and apply a "cast ... as datetime" clause.

    Always worked for me.

    That might not...

  • RE: Usage Query

    And if you don't need the time, just use the date datatype instead of a datetime.

  • RE: Today's Random Word!

    whereisSQL? (8/21/2015)


    Ed Wagner (8/21/2015)


    djj (8/21/2015)


    Ed Wagner (8/21/2015)


    djj (8/21/2015)


    Eirikur Eiriksson (8/21/2015)


    TomThomson (8/20/2015)


    whereisSQL? (8/20/2015)


    Luis Cazares (8/20/2015)


    DonlSimpson (8/20/2015)


    Curves

    Lines

    Parallel

    Euclid

    Relation

    Commitment

    Honor

    Offer

    Counter

    Reject

    Eject

  • RE: Locating the mdf,log,and back up files?

    Are you looking in the server or your personal computer? Are they the same or different machines?

    Remember that those are local paths for the server but might not be local...

  • RE: Pivots date ranges with union data

    Hi and welcome to the forums.

    As J Livingston mentioned, we need some sample data to give a good and tested advice. It's important that this sample data is posted as...

  • RE: Are the posted questions getting worse?

    Ed Wagner (8/21/2015)


    Luis Cazares (8/21/2015)


    Ed Wagner (8/21/2015)


    Brandie Tarvin (8/21/2015)


    Phil Parkin (8/21/2015)


    Ah yes, tried to take a sneaky shortcut. Needs to be fixed:

    and sjh.run_date >= (year(getdate() - 1) * 10000 +...

  • RE: how to overcome from the tempdb spill over ?

    Not a big deal, but you can change this:

    cross apply (select * from dbo.[DelimitedSplit8K](value1,',') )temp

    To this:

    cross apply dbo.[DelimitedSplit8K](value1,',') temp

    With the exact same results.

  • RE: Are the posted questions getting worse?

    Ed Wagner (8/21/2015)


    Brandie Tarvin (8/21/2015)


    Phil Parkin (8/21/2015)


    Ah yes, tried to take a sneaky shortcut. Needs to be fixed:

    and sjh.run_date >= (year(getdate() - 1) * 10000 + month(getdate() - 1) *...

  • RE: Today's Random Word!

    DonlSimpson (8/20/2015)


    Revenant (8/20/2015)


    djj (8/20/2015)


    whereisSQL? (8/20/2015)


    Ray K (8/20/2015)


    Ed Wagner (8/20/2015)


    whereisSQL? (8/20/2015)


    BL0B_EATER (8/20/2015)


    Eirikur Eiriksson (8/20/2015)


    Ed Wagner (8/20/2015)


    djj (8/20/2015)


    DonlSimpson (8/19/2015)


    Ed Wagner (8/19/2015)


    Luis Cazares (8/19/2015)


    Revenant (8/19/2015)


    ZZartin (8/19/2015)


    whereisSQL? (8/19/2015)


    BL0B_EATER (8/19/2015)


    Water

    Conservation

    Fire

    Alarm

    Clock

    Time

    Fades

    Grave

    Dead

    Terminal

    airport

    Security

    Breach

    Beach

    Volleyball

    Cloths

    Bikini

    Curves

    Lines

  • RE: question about complex 'Mode' (average) calculation

    This should do the trick. Feel free to ask any questions that you might have.

    WITH cteCounts AS(

    SELECT trip, loads, COUNT(*) counts

    FROM test6

    ...

  • RE: NORMALIZING A COLUMN CONTAINING LISTS

    You can do it easily with the help of the DelimitedSplit8k. It's explained in here and you can find the code to create it in your system. http://www.sqlservercentral.com/articles/Tally+Table/72993/

    Once having it,...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/19/2015)


    Silver spoon, silver spoon, silver spoon, when are you going to admit you are in over your head and really need to find a different career.

    I was really...

  • RE: Fine tuning Queries

    Other that removing the * and include only the needed columns, there's not much advice I could give with the information provided.

    For further assistance, please read the following article: http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

  • RE: Designing Query

    Note that UNION will remove any duplicates. To avoid this problem and receive a possible performance improvement, use UNION ALL.

Viewing 15 posts - 4,336 through 4,350 (of 8,731 total)