Viewing 15 posts - 3,691 through 3,705 (of 5,588 total)
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 5, 2010 at 12:30 pm
jeff.mason (8/5/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 5, 2010 at 11:27 am
Lowell (8/5/2010)
WayneS (8/5/2010)
If it's a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 5, 2010 at 9:21 am
If it's a registered server, right-click server and select properties. Go to the connection properties tab. Check the "Use Custom Color" checkbox, and select the color.
If it's a server that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 5, 2010 at 9:15 am
check out the EXCEPT and INTERSECT operators:
select <columnlist> from table1
EXCEPT
select <columnlist> from table2
will show you what's in table1 but not in table2
replacing EXCEPT with INTERSECT will show you what is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 5, 2010 at 8:35 am
Viewing 15 posts - 3,691 through 3,705 (of 5,588 total)