Viewing 15 posts - 51,931 through 51,945 (of 59,091 total)
Would be a heck of a lot faster if you used a holiday table or, better yet, a calendar table.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 8:12 pm
Bob Fazio (3/7/2008)
;WITH table1(col1) AS (
SELECT objects.[object_id] FROM sys.objects
)
SELECT DISTINCT TOP(2000) Table1.col1,Table2.col1,Table3.col1
FROM table1,table1 TABLE2,table1 table3
ORDER BY table3.col1
-- option(force order)
The above comes back...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 8:09 pm
It's also unfortunately due to the fact that it's substantially easier to get "certified" as a Microsoft DBA than it is in Oracle. You therefore have a lot larger...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 7:39 pm
I had a dog like Matt's... the only way to get her to take meds was with a small enough piece of steak for her to swallow in one gulp......
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 7:14 pm
Thanks for the feedback, Marvin. Yeah, and if you throw in a check by IsDate, you can control the error instead of throwing it against the wall to see...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 7:03 pm
Thanks Timothy... That's why I normally don't use VBS scripts... I can do almost everything with T-SQL. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 6:59 pm
There's just nothing like someone providing instant confirmation for us folks just finally getting into 2k5... 🙂 Thanks, Matt.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 6:56 pm
rbarryyoung (3/10/2008)
Lynn Pettis (3/10/2008)
Cursors may be evil, but they may be a necessary evil...
In my experience they are necessary and acceptable for only one thing: variable-izing SQL objects in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 6:44 pm
kent waldrop (3/10/2008)
What are the circumstances for that? When I run the following query it get the commented results:
use tempdb
go
select name as before from sysobjects where type = 'U'
exec...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 5:15 pm
Guess it's time for porkchops here... Vika, if you want really good answers the first time around, see the URL in my signature line...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 5:03 pm
Pivot also has some limits... I believe you can only Pivot based on one column...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 5:00 pm
I disagree... a lookup or definition table better have a Primary Key...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 4:57 pm
Sorry Lynn... it was more directed at the OP than you...
Also, we'll probably disagree on this, but the new DATE only and TIME only datatypes are a real loss of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 4:55 pm
Problem is... most people give up on trying to find a good set-based solution way too early...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 4:43 pm
OK, then move on to one that does interest you
Whether I agree or not, it's still interesting and dialog about such subjects are one way for folks to exchange ideas...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 10, 2008 at 3:14 pm
Viewing 15 posts - 51,931 through 51,945 (of 59,091 total)