Forum Replies Created

Viewing 15 posts - 181 through 195 (of 210 total)

  • RE: Under Appreciated Features

    I think a cool feature of sql server 2005 and above that you don't always hear a lot about is the recursive query with the CTE. We use this...

  • RE: iPads for Christmas

    I have a unique situation in my job. I have the DBA responsibilities for my company's sql servers. The dev and test servers along with the sql servers...

  • RE: Developer Deployment Frustrations

    I am a developer. I code in .net, but I also develop in sql server as well. If you ask my opinion, the developers out there that don't...

  • RE: What will this return?

    Glad you worked through it and figued it out.

    Ben

  • RE: SQL Connections 2010

    Hey Steve,

    I thought I would send you a link to my brother's old band. They aren't together anymore, but you can listen and download their music at:

    http://www.myspace.com/theespiviesofficialpage

    I...

  • RE: What will this return?

    Hugo,

    It is the precision of the variable you are putting the value into that matter. @min-2 is a numeric(10,4), so you will get your four decimal places...

  • RE: What will this return?

    Why wouldn't you just divide by 60.0?

    As soon as you add the .0 is becomes numeric.

    Ben

  • RE: What will this return?

    Thanks, I am glad you put forth the effort and were rewarded for it.

    Ben

  • RE: What will this return?

    You are welcome.

    Thanks for not complaining about the formatting.

    If I do another Question of the day I will have to watch my formatting.

    Ben

  • RE: What will this return?

    Trey,

    Fair enough. I guess I have seen a lot harder questions of the day and I guess the formatting didn't seem that hard to fix to me. I...

  • RE: What will this return?

    Trey,

    The purpose of this question of the day was to show that sometimes when looking at complicated code, the bug or problem can be something simple. If you never...

  • RE: What will this return?

    Webrunner,

    select @startDt = getdate()

    select @startDt =

    dateadd(millisecond,0-datepart(millisecond,@startDt),

    dateadd(second,0-datepart(second,@startDt),

    dateadd(minute, 30-datepart(minute,@startDt),

    dateadd(hour,10-datepart(hour,@startDt),

    @startDt))))

    So the idea is that you can start with any date time and set it to a specific time.

    If you want the time...

  • RE: What will this return?

    Hugo,

    To do what you suggest would cause this Question to be too easy. Perhaps you are fortunate enough to NOT have inherited some poor code from previous employees. ...

  • RE: What will this return?

    Sorry for the misdirection. I thought it was what made this question fun. I found a problem just like this in some code I inherited from some previous...

  • RE: Precious Ideas

    I understand the EULA protects us from having to fix it for free. My point is for several of our clients the fence (encryption) keeps us from having to...

Viewing 15 posts - 181 through 195 (of 210 total)