Forum Replies Created

Viewing 15 posts - 736 through 750 (of 844 total)

  • RE: SQL case when statement( without hardcode values)

    This looks to be a double posted question.

    Here is what I replied to the other post. Why would you need 2 when statements? Never mind I see why, didn't...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: sql case when statement

    See if this does what you want.

    declare @startdate datetime;

    declare @trandate datetime;

    set @trandate = '02/05/2012';

    set @startdate = (select casewhen @trandate between '06/04/' + cast(year(@trandate) - 1 as char(4)) and '05/04/' +...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: Adding to SQL Server

    How about a way to log the results from stored procedures? Seems like a simply request. As the user community says to us all the time 'How hard...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: Logging and Error Handling for SQL Stored Procedures

    Misha_SQL (1/22/2014)


    Thank you very much for the article! I found it very useful. I do have a comment though. With the approach presented, we have to incorporate logging...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Well said Craig. This is the point I was trying to make. I need to hone/work at trying to be better at expressing my thoughts into words. ...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Steve Jones - SSC Editor (1/15/2014)


    below86 (1/15/2014)


    And I would say that in your example Norm Abram could do the bare minimum to build a book shelve, and he would still...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Grant Fritchey (1/15/2014)


    I'm actually a little shocked at some of the responses from the editorial. I thought the editorial was absolutely spot on.

    For all those who think that you shouldn't...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Steve Jones - SSC Editor (1/15/2014)


    below86 (1/15/2014)


    I think this line is what 'set' me off: "Doing just enough to complete a job is the sign of a amateur, not a...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Steve Jones - SSC Editor (1/15/2014)


    below86 (1/15/2014)


    You get pulled into so many different projects with so little time it impossible to 'craft' the perfect solution. As they say 'A...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    Thomas Abraham (1/15/2014)


    Making tradeoffs in time versus quality in just the right places, that's what a craftsperson does.

    Well said Thomas.

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: We're not craftsmen and craftswomen

    You get pulled into so many different projects with so little time it impossible to 'craft' the perfect solution. As they say 'A jack of many trades, master of...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: The Desktop Setup

    Steve Jones - SSC Editor (1/13/2014)


    Or ask for more monitors to surround yourself and prevent distractions :w00t:

    It seemed to take forever to just get two, I think the chances of...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: how to differentiate between two tables sharing the same name but belonging to different databases

    Almost ever query we write will span more than one database, so that's why I prefer it.:-)

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: how to differentiate between two tables sharing the same name but belonging to different databases

    liteswitch (1/13/2014)


    I'd actually disagree with putting the database name in the 3 identifier, if the database gets renamed all the queries will fail, and that's a lot of effort to...

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

  • RE: how to differentiate between two tables sharing the same name but belonging to different databases

    Jeff Moden (1/12/2014)


    GilaMonster (1/12/2014)


    Use three-part naming for your queries

    SELECT <column list> FROM Sims.dbo.Students

    SELECT <column list> FROM SimsCopy.dbo.Students

    I agree that works great for ad hoc queries (and you already know this......

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.

Viewing 15 posts - 736 through 750 (of 844 total)