Forum Replies Created

Viewing 15 posts - 8,986 through 9,000 (of 9,399 total)

  • RE: Time difference

    If you're sure that all you need is HH:MM:SS, then this will work.

    with cte as (

    select datediff(second, '09:28:00', '13:38:02') diff)

    select

    right('00' + convert(varchar(2), (diff % 86400)...

  • RE: Time difference

    DaveDB (9/6/2013)


    Is there a way to mark a question as answered in SQL Server Central?

    Not that I've seen. Most volunteers open a question, read it, see that it's been...

  • RE: Time difference

    DaveDB (9/6/2013)


    Hi all,

    I have a rather basic question, but having difficulty.... I need to calculate the difference between 2 times. Any help would be appreciated.

    Example:

    09:28:00 - 09:38:00 = 00:10:00

    You...

  • RE: Today's Random Word!

    SQLRNNR (9/5/2013)


    crookj (9/5/2013)


    jasona.work (9/5/2013)


    SQLRNNR (9/5/2013)


    crookj (9/5/2013)


    batgirl (9/5/2013)


    Cliff Jones (9/5/2013)


    crookj (9/5/2013)


    Ed Wagner (9/5/2013)


    Gatling Gun

    Vulcan

    Spock

    He's dead Jim

    "It's just a flesh wound...."

    What? I'm not dead yet.

    Yes, you are, now lie back down!

    Zombie?

    headless

    Horsemen

  • RE: Same query, two users, different performance

    Grant Fritchey (9/5/2013)


    Without knowing what's happening inside those UDF's, it's hard to say whether or not it would affect performance. I'm willing to bet money that there's some type of...

  • RE: Same query, two users, different performance

    Tom - I've seen so many problems caused by with views on views on views in the past that I've denounced them as heretical and will never write them myself....

  • RE: String splitter function

    We figured you were using SQL 2008 since you posted in a SQL 2008 forum.

    I believe CTEs were introduced in SQL 2005. Sorry, but I don't have a SQL...

  • RE: Today's Random Word!

    Gatling Gun

  • RE: String splitter function

    This is absolutely the best approach I've seen anywhere for string parsing. It uses a set-based approach instead of parsing through the data set row by row and then...

  • RE: Are the posted questions getting worse?

    Sean Lange (9/4/2013)


    Koen Verbeeck (9/4/2013)


    Sean Lange (9/4/2013)


    Koen Verbeeck (9/4/2013)


    Sean Lange (9/4/2013)


    Well this post is my 10,000th point. I guess I have proved I too can waste lots of time answering...

  • RE: Same query, two users, different performance

    Are the returned data sets the same no matter who runs the query? If you're selecting everything from a TVF, what is that function doing? Does it depend...

  • RE: Are the posted questions getting worse?

    WayneS (9/3/2013)


    Ed Wagner (9/3/2013)


    GilaMonster (9/2/2013)


    SQLRNNR (9/2/2013)


    Pins and needles seeing the strike-through on your MCM in the signature.

    I'll remove the strikeout in a week or two. Just making a point.

    Like normal,...

  • RE: ACID Properties Question

    Good question - thank you. It made me go back "a few" years and think about something that most of us take for granted now.

  • RE: Sql Server Objects Naming Conventions

    ScottPletcher (9/3/2013)


    Whatever rules you decide on, you should enforce them programmatically. Otherwise, the rules will be broken and be meaningless.

    Also, follow the first rule of naming -- don't build...

  • RE: Query Help

    This can't be as simple as it appears, so I have to question what is missing. If it really is this simple, just use the SUBSTRING function to concatenate...

Viewing 15 posts - 8,986 through 9,000 (of 9,399 total)