Viewing 15 posts - 45,241 through 45,255 (of 59,101 total)
In that case, this might be just a little faster because it doesn't have as many CONVERT's...
SELECT CONVERT(CHAR(11),GETDATE(),101)
+ CONVERT(CHAR( 5),GETDATE(),114)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 10:07 pm
You could always use a view.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 5:38 pm
Bruce W Cassidy (2/9/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 5:36 pm
No... when you use any function on the column, the best that will happen is an INDEX SCAN which can actually be worse than a table scan if every row...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 5:33 pm
What is it that you really want to do? Do you just want to return a list of items that can't be converted to an INT or do you...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 5:30 pm
Olga B (2/9/2009)
I suspect it's because thinking through the problem is not the norm. 😉
BWAA-HAA!!! That's the perfect answer! Thanks for the feedback, Olga! 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 12:10 pm
Garadin (2/8/2009)
Is it good practice then to add all criteria to the derived tables instead of the outer query? Guess that makes more sense overall anyways.
I hate to use...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 10:52 am
andrewd.smith (2/8/2009)
OP does state the following which Jeff's query doesn't do.
I also want to...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 10:46 am
Thanks, Osskey... I appreciate the feedback.
This doesn't apply just to forums when it comes to readability and self or embedded documentation. I started a consulting job about 7 months...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 10:43 am
webrunner (2/9/2009)
Thanks, Jeff,This is good advice for any type of forum post for help. But especially useful for SQL.
- webrunner
Thanks, WebRunner... I appreciate the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2009 at 9:37 am
heh... I was actually considering that. I just haven't had the time to do the animation.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2009 at 9:28 am
brian (2/8/2009)
There are other corrections...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2009 at 9:11 am
peace2007 (2/8/2009)
our tempdb file is 12GB, and he says it's so strange...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2009 at 9:06 am
aram_golbaghi (2/8/2009)
hii think smith is right
About what and why?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2009 at 9:01 am
Grant Fritchey (2/8/2009)
Guild?
Heh... better.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2009 at 9:00 am
Viewing 15 posts - 45,241 through 45,255 (of 59,101 total)