Viewing 15 posts - 3,691 through 3,705 (of 5,590 total)
Check out the articles in my signature on Cross-Tabs / Pivot tables, Part 1 and 2. Part 2 delves into dynamic solutions, which sounds like what you would need.
August 6, 2010 at 9:22 am
You might want to try http://www.ssmstoolspack.com
August 5, 2010 at 8:10 pm
Jeff, you might be able to use this article[/url] to do it.
Also, can you get this information if you were to use xp_cmdshell? You could enable/disable that just like...
August 5, 2010 at 8:07 pm
Lynn Pettis (8/5/2010)
Well, getting really short here, tomorrow is my last day with my current employer!Wish me luck!!
Good Luck in them letting you actually leave! :crying:
Seriously, best of luck in...
August 5, 2010 at 5:16 pm
Thanks for the update Jeff.
In 2008, you should be able to use PowerShell to get the data you need.
August 5, 2010 at 5:07 pm
Ricardumus (8/5/2010)
I just didn't understand the CTE (N). Not sure what that is. 🙂
A "CTE" (Common-Table-Expression) is essentially a pre-defined sub-query. It starts with the keyword "WITH", followed by the...
August 5, 2010 at 1:47 pm
Ricardumus (8/4/2010)
What does it do? lol
Honestly you blasted way past me with your SQL knowledge. You went to the moon and
im still stuck in Rhode...
August 5, 2010 at 12:30 pm
jeff.mason (8/5/2010)
August 5, 2010 at 12:27 pm
Jaime E. Maccou (8/5/2010)
...please note or make any suggestion for improvement.
How about simply:
execute sp_MSforeachdb 'IF ''?'' NOT IN (''model'',''master'',''msdb'',''tempdb'',''ReportServer'',''ReportServerTempDB'') BEGIN PRINT ''Checking Database ?'';DELETE FROM [?].dbo.WORKLISTLOG;END;'
Note: those are all single-quotes...
August 5, 2010 at 11:45 am
@Lowell: while you're in a learning mode, did you know that you can add "Places" to your SSMS open/save dialogs?
For SQL 2008 (for 2005, substitute 90 for 100 below):
Windows Registry...
August 5, 2010 at 11:38 am
Sounds like a dynamic cross-tab / pivot. See the two articles in my signature (Parts 1 and 2) - part 2 covers a dynamic cross-tab.
August 5, 2010 at 11:32 am
Can you get the mount point information from VBSCRIPT? If so, then you should be able to just expand upon what is already there with the sp_OA calls. I've never...
August 5, 2010 at 11:30 am
Back to the original question...
How does this work for you? (It might need some adjustment if running on a Sunday, but you should be able to work that out. If...
August 5, 2010 at 11:27 am
Lowell (8/5/2010)
WayneS (8/5/2010)
If it's a...
August 5, 2010 at 11:02 am
Not sure if this will get the mount points. This method requires ole automation be on. It turns it on, and then returns it to it's original setting when finished.
IF...
August 5, 2010 at 9:21 am
Viewing 15 posts - 3,691 through 3,705 (of 5,590 total)