Viewing 15 posts - 181 through 195 (of 210 total)
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...
December 17, 2010 at 5:06 am
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...
December 13, 2010 at 8:47 am
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...
September 8, 2010 at 5:51 am
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...
May 26, 2010 at 5:11 am
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...
May 25, 2010 at 5:13 pm
Why wouldn't you just divide by 60.0?
As soon as you add the .0 is becomes numeric.
Ben
May 25, 2010 at 5:05 pm
Thanks, I am glad you put forth the effort and were rewarded for it.
Ben
May 24, 2010 at 11:42 am
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
May 24, 2010 at 10:39 am
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...
May 24, 2010 at 10:21 am
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...
May 24, 2010 at 9:31 am
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...
May 24, 2010 at 9:28 am
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. ...
May 24, 2010 at 5:47 am
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...
May 24, 2010 at 5:30 am
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...
May 17, 2010 at 10:23 am
Viewing 15 posts - 181 through 195 (of 210 total)