Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,251 total)

  • RE: Today's Random Word!

    richxs (1/15/2015)


    Giraffe DBA (1/14/2015)


    SQLRNNR (1/14/2015)


    Ed Wagner (1/14/2015)


    djj (1/14/2015)


    BWFC (1/14/2015)


    Ed Wagner (1/14/2015)


    Stuart Davies (1/14/2015)


    TomThomson (1/13/2015)


    Ed Wagner (1/13/2015)


    SQLRNNR (1/13/2015)


    regex

    Pattern

    Match

    Point

    Edge

    Bono

    Sonny

    Cher

    Babe (i've got you ...)

    Ruth

    Sultan

    Swing


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Today's Random Word!

    Ed Wagner (1/14/2015)


    Stuart Davies (1/14/2015)


    TomThomson (1/13/2015)


    Ed Wagner (1/13/2015)


    SQLRNNR (1/13/2015)


    regex

    Pattern

    Match

    Point

    Edge

    Bono


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Lowest of a few dates

    I did think your question was over-thinking things with CASE statements in there. You're right, MIN() won't work. Can you post some sample data please? This...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Lowest of a few dates

    Depending on what you're trying to to select MIN(datecolumn) will do it.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Dynamic Query

    I should have been clearer about the potential risks, although I'll admit to forgetting completely about QUOTENAME.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Dynamic Query

    In VERY simple terms:

    declare @tablename varchar(50) = 'YourTableName'

    declare @SQl Nvarchar(4000)

    set @SQL =

    N'select * from '+@tablename

    exec(@SQL)


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: NULL Aggregates

    Koen Verbeeck (1/7/2015)


    Nice question, but I'd argue GROUPING doesn't ignore NULL values as well.

    That's what I took from BOL and got the question wrong.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Date Table

    Ed Wagner (1/6/2015)


    CELKO (1/6/2015)


    You just have to adjust your baking time.

    You mean I have to use kiloseconds for a kilogram cake :w00t:

    Silly me - I still use minutes in...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Date Table

    Ed Wagner (1/5/2015)


    CELKO (1/5/2015)


    I've actually got a few recipes that call for equal weights of eggs and other ingredients. You weigh the eggs in the shells then match the...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Date Table

    It would be funny though, to change recipes to call for 25 grams of egg yolk fully encapsulated by 33.7 grams of egg white instead of just calling for "1...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Today's Random Word!

    crookj (1/5/2015)


    Ed Wagner (1/5/2015)


    djj (1/5/2015)


    Ed Wagner (1/5/2015)


    Stuart Davies (1/5/2015)


    Ed Wagner (1/5/2015)


    SQLRNNR (1/2/2015)


    Sonic

    Boom

    Bust

    Museum

    Night

    History

    Buff

    Polish


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Into Clause in SQL Server

    I'm really not sure what you want to do here but it's best to include the columns you want by name rather than using SELECT * and trying to exclude...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Find Appropriate Event After An Incident

    ChrisM@Work (1/2/2015)


    Thanks.

    Query 1 (insert into #temp_violation etc.) has an odd filter:

    and

    (

    cast(fh.startdate as date)<= cast(tv.startdate as date)

    and

    cast(fh.startdate as time)<= cast(tv.startdate as time)

    )

    This will capture datetimes from fh where they...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Find Appropriate Event After An Incident

    ChrisM@Work (12/31/2014)


    Can you post the execution plan? Done

    Have you considered using EXISTS No I hadn't, see my earlier comment about being a noob 🙂 The fact it ran at all...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • RE: Find Appropriate Event After An Incident

    I've finally got back to this after the Christmas break and a brief sojourn in proper work.

    Thanks for your advice gents. I learned something very useful about execution...


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

Viewing 15 posts - 766 through 780 (of 1,251 total)