Viewing 15 posts - 48,376 through 48,390 (of 59,099 total)
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
What is the naming convention for the pairs of files?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 8:17 pm
Fraggle (9/10/2008)
Just make sure you don't kill any...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 8:14 pm
If you use parameters on either proc, you may be fighting "parameter sniffing". Google it for a wealth of information.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 10, 2008 at 8:14 pm
Viewing 15 posts - 48,376 through 48,390 (of 59,099 total)