Viewing 15 posts - 2,806 through 2,820 (of 3,348 total)
bkubicek (5/25/2010)
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 using...
May 26, 2010 at 12:57 am
bkubicek (5/25/2010)
Why wouldn't you just divide by 60.0?As soon as you add the .0 is becomes numeric.
Ben
If numeric(3,1) works, then 60.0 is as good as any of the other options....
May 25, 2010 at 5:08 pm
marklegosz (5/25/2010)
May 25, 2010 at 5:04 pm
honza.mf (5/25/2010)
stewartc-708166 (5/25/2010)
TrickyRequires some knowledge of collations
Yes, the question was in Collations category 😛
:laugh: I had not even seen that!
(note to self: in future, check question category before answering!)
May 25, 2010 at 2:12 am
malleswarareddy_m (5/24/2010)
like operator will search for _ only.and return any characters. then it does not return any rows.because i worked many times using like operator.but if we use '%_%'...
May 25, 2010 at 12:38 am
Great question!
I did consider collations before replying, but only thinking about the possibility of a collation where the space character would fall somewhere between 'A' and 'Z'. And after discarding...
May 25, 2010 at 12:34 am
CirquedeSQLeil (5/24/2010)
I see both sides of it. You, Trey and Hugo all have valid points.Please, don't let that discourage you from submitting more questions.
+1 on all points made by...
May 24, 2010 at 2:31 pm
bkubicek (5/24/2010)
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 2:27 pm
I'll admit this right away - I cheated; I used copy and paste to have SSMS work out the answer for me.
I don't feel bad about it either. I know...
May 24, 2010 at 2:07 am
Toreador (5/21/2010)
Note - the error appears in a popup window. I've a feeling that depending...
May 21, 2010 at 4:27 am
Toreador (5/21/2010)
Oleg Netchaev (5/20/2010)
select * from #t for xml auto, root('rows');
This will prevent the problems with XML segment problem as the result will include the root element.
Nope, doesn't work for...
May 21, 2010 at 2:29 am
While I mostly agree with the sentiment expressed in the editorial, there is one place where I don't. Where, in fact, I'd even reverse the statement:
"There really is little justification...
May 21, 2010 at 2:07 am
natalie.ignatieva (5/20/2010)
May 20, 2010 at 1:05 pm
honza.mf (5/20/2010)
Hugo Kornelis (5/20/2010)
The only thing I like less about the question was that it...
May 20, 2010 at 2:46 am
da-zero (5/20/2010)
honza.mf (5/19/2010)
Maddy...! (5/19/2010)
wht ever it may be in order to run completely a block of t-sql code it should be syntax error free
i think there is...
May 20, 2010 at 2:29 am
Viewing 15 posts - 2,806 through 2,820 (of 3,348 total)