Viewing 15 posts - 58,831 through 58,845 (of 59,039 total)
> If you are using this for a one time query, you really will want to do it that way
... unless the return is very large in which case you'll...
January 14, 2005 at 9:15 pm
There is if you update other fields along with the "cased" field. Nulls will be put in the "cased" field.
January 14, 2005 at 9:11 pm
Just to dispell some of the drum beating on this thread, I've asked 22 different SQL programmers and DBAs in some pretty large companies, some of which were related to...
January 12, 2005 at 11:19 pm
First, Adam, thanks for the great link. I took a look at ALL of the scripts including the additional reference to the auxiliary number table and I definitely see your...
January 11, 2005 at 6:03 pm
Very nice. The graphics you took the time to do the "Alice's Restaurant" thing to really make this a very clear article on what Rollups and Cubes actually do. The...
January 11, 2005 at 6:37 am
Again, lot's of good posts. Shie, Robert L, Noeld, and Adam have all pointed out that the use of a "Calendar Table" or "Holiday Table" to hold non-workdays (I'm assuming...
January 10, 2005 at 5:43 pm
Bert,
Thanks for the great compliment! As my follow-up note (long posting above) suggests, you can easily add a reference to a simplified holiday table to the function.
Frank,
Thanks for the tip. ...
January 10, 2005 at 6:16 am
As Farrell suggested, you don't need to do the rounding thing because INT will do the rounding for you.
Either of these will work...
SELECT CONVERT(INT,CONVERT(MONEY,'27.49')) SELECT CAST(CAST('26.50' AS MONEY) AS INT)
Obviously, you...
January 8, 2005 at 1:14 pm
Great responses, all, folks. Thank you very much for taking the time to make them.
Hmmmm… perhaps the title of the article should have been “Calculating ‘Week’...
January 7, 2005 at 10:00 pm
mkeast,
We've all done that before. Thanks for the come back.
January 7, 2005 at 7:22 am
Sorry mkeast,
Didn't work the way you expected... here's the output.
col
----------
1
2
3
10
11
2A
2B
3A
3B
3C
I think the original poster wants...
col
----------
1
2
2A
2B
3
3A
3B
3C
10
11
January 7, 2005 at 7:00 am
Great idea but I think they really want a custom error message and a check constraint won't do it. Ran into the same problem with permissions... no custom error message.
Switching...
January 6, 2005 at 8:04 pm
Like I said, I agree especially in light of that fact that many companies just don't have a documentation system in place. Documentation always seems to take it in the...
January 6, 2005 at 7:15 am
I'd think that the "permission denied" message would drive the point home to a developer but, I agree, it might save a couple of trouble calls to the DBA's.
January 6, 2005 at 6:41 am
I kind of like Andy's idea... all of the ideas are great ones but it's not really broken. Maybe leave it like it is?
January 6, 2005 at 6:16 am
Viewing 15 posts - 58,831 through 58,845 (of 59,039 total)