Viewing 15 posts - 48,376 through 48,390 (of 59,102 total)
No extensions on the file names?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 9:39 pm
Here you go, Jody...
--===== If the temp table already exists, drop it.
-- This should be commented out in a production environment
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 7:54 pm
Manie, great primer on PatIndex!
There is hundreds of other ways to use these functions and the way I used here is most probably not the best way so, if anyone...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 7:35 pm
One of the folks on this very forum said it best... "The extraordinary DBA is the first person someone goes to when they need help, not the last." Sounds...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 7:13 pm
Thanks for the awesome feedback, Hans. You made my day. Just remember, the Tally table is not a panacea... it cannot be used for all things that loop....
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 7:09 pm
On the other hand, look at the bright side... 🙂 They have such a crappy DB that they need someone like you to wade through it and fix things....
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 7:02 pm
Jody Claggett (9/11/2008)
What I am looking for is to sum the YTD quota up...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 6:54 pm
Whew! Thanks for the feedback, Fraggle. Thought I missed something:).
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 6:50 pm
Just for grins, I'd still like to know the naming convention of the files that aren't empty../. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 6:37 pm
Those are all good, but let's revisit the OP's restrictions...
xp_fixeddrives returns FREE disk space, but not TOTAL disk space.
xp_cmdshell will not work because this is a high security place.
sp_OACreate, sp_OAMethod,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2008 at 6:34 pm
virgilrucsandescu (9/10/2008)
1a - select * from import_cc_requests where reference not in (select reference from import_cc_payments )
or
1b - select * from import_cc_requests where rtrim(reference) not in (select rtrim(reference)...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 10:38 pm
Heh... you want to do 12 "IF's" per query, Jody? No, no need for IF's here. You didn't post any test data so the outer query...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 9:28 pm
Crud, I made a mistake on the fiscal year :blush:... don't use the code above... I'll post a correction soon.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 9:24 pm
Sorry... deleted this post... I made an error in the code. Repaired further on below...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 9:14 pm
Lowell (9/10/2008)
two also i prefer to use a left join syntax instead..
Check the execution plans of both on a set of big tables sometime...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 8:22 pm
Viewing 15 posts - 48,376 through 48,390 (of 59,102 total)