<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SQL Server Journey with SQL Authority &#187; undocumented SQL</title>
	<atom:link href="http://blog.sqlauthority.com/tag/undocumented-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:51:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.sqlauthority.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>SQL Server Journey with SQL Authority &#187; undocumented SQL</title>
		<link>http://blog.sqlauthority.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.sqlauthority.com/osd.xml" title="SQL Server Journey with SQL Authority" />
	<atom:link rel='hub' href='http://blog.sqlauthority.com/?pushpress=hub'/>
		<item>
		<title>SQL SERVER &#8211; Get a List of Fixed Hard Drive and Free Space on Server</title>
		<link>http://blog.sqlauthority.com/2009/08/05/sql-server-get-a-list-of-fixed-hard-drive-and-free-space-on-server/</link>
		<comments>http://blog.sqlauthority.com/2009/08/05/sql-server-get-a-list-of-fixed-hard-drive-and-free-space-on-server/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 01:30:46 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=6193</guid>
		<description><![CDATA[When I am not blogging, I am typically working on SQL Server Optimization projects. Time and again, I only have access to SQL Server Management Studio that I can remotely connect to server but do not have access to Operating System, and it works just fine. At one point in optimization project, I have to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=6193&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">When I am not blogging, I am typically working on SQL Server Optimization projects. Time and again, I only have access to SQL Server Management Studio that I can remotely connect to server but do not have access to Operating System, and it works just fine.</p>
<p style="text-align:justify;">At one point in optimization project, I have to decide on index filegroup placement as well TempDB files (.ldf and .mdf) placement. It is commonly known that system gives enhanced performance when index and tempdb are on separate drives than where the main database is placed.</p>
<p style="text-align:justify;">As I do not have access to OS I use the following Stored Procedure to figure out the number of fixed drives (hard drive) a system has along with free space on each of those drives. Based on this result, I decide my strategy of where to put my indexes and tempdb.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">EXEC </span><span style="color:black;">master..</span><span style="color:darkred;">xp_fixeddrives</span></code></p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/hddrive.jpg" alt="" width="299" height="179" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
<br />Posted in SQL, SQL Authority, SQL Query, SQL Server, SQL Stored Procedure, SQL Tips and Tricks, T SQL, Technology Tagged: undocumented SQL <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/6193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/6193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/6193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=6193&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/08/05/sql-server-get-a-list-of-fixed-hard-drive-and-free-space-on-server/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/hddrive.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; List All the Tables for All Databases Using System Tables</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/</link>
		<comments>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 01:30:07 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL System Table]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540</guid>
		<description><![CDATA[Today we will go over very simple script which will list all the tables for all the database. sp_msforeachdb 'select "?" AS db, * from [?].sys.tables' Update: Based on comments received below I have updated this article. Thank you to all the readers. This is good example where something small like this have good participation from readers. Reference : Pinal Dave [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=4540&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Today we will go over very simple script which will list all the tables for all the database.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:darkred;">sp_msforeachdb </span><span style="color:red;">'select "?" AS db, * from [?].sys.tables'</span></code></p>
<p style="text-align:justify;"><strong>Update: </strong>Based on comments received below I have updated this article. Thank you to all the readers. This is good example where something small like this have good participation from readers.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://www.sqlauthority.com/" target="_blank">http://www.SQLAuthority.com</a>)</strong></p>
<br />Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Query, SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table, SQL Tips and Tricks, SQLServer, T SQL, Technology Tagged: undocumented SQL <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/4540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/4540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/4540/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=4540&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Find Table in Every Database of SQL Server &#8211; Part 2</title>
		<link>http://blog.sqlauthority.com/2008/05/05/sql-server-find-table-in-every-database-of-sql-server-part-2-2/</link>
		<comments>http://blog.sqlauthority.com/2008/05/05/sql-server-find-table-in-every-database-of-sql-server-part-2-2/#comments</comments>
		<pubDate>Mon, 05 May 2008 01:30:01 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=593</guid>
		<description><![CDATA[Long time blog reader and SQL Server Expert Simon Worth has suggested two additional method to achieve same results as described in article SQL SERVER &#8211; Find Table in Every Database of SQL Server. Method 1 sp_msforeachdb "SELECT '?' DatabaseName, Name FROM ?.sys.Tables WHERE Name LIKE '%address%'" Method 2 CREATE TABLE #TableNameResults (DatabaseName VARCHAR(100) NOT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=593&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Long time blog reader and SQL Server Expert <a href="http://blog.sqlauthority.com/2008/04/29/sql-server-find-table-in-every-database-of-sql-server/#comment-37340" target="_blank"><strong>Simon Worth</strong></a> has suggested two additional method to achieve same results as described in article <strong><a href="http://blog.sqlauthority.com/2008/04/29/sql-server-find-table-in-every-database-of-sql-server/" target="_blank">SQL SERVER &#8211; Find Table in Every Database of SQL Server</a></strong>.</p>
<p style="text-align:justify;"><strong>Method 1</strong><br />
<code style="font-size:12px;"><span style="color:darkred;">sp_msforeachdb </span><span style="color:black;">"SELECT '?' DatabaseName, Name FROM ?.sys.Tables WHERE Name LIKE '%address%'"<br />
</span></code><br />
<strong>Method 2</strong><br />
<code style="font-size:12px;"><span style="color:blue;">CREATE TABLE </span><span style="color:#434343;">#TableNameResults </span><span style="color:gray;">(</span><span style="color:black;">DatabaseName </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">100</span><span style="color:gray;">) NOT NULL, </span><span style="color:black;">TableName </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">100</span><span style="color:gray;">) NOT NULL)<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:#434343;">#TableNameResults<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_msforeachdb </span><span style="color:black;">"SELECT '?' DatabaseName, Name FROM ?.sys.Tables WHERE Name LIKE '%address%'"<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:#434343;">#TableNameResults<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:#434343;">#TableNameResults<br />
</span></code><br />
Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong>, <a href="http://blog.sqlauthority.com/2008/04/29/sql-server-find-table-in-every-database-of-sql-server/#comment-37340" target="_blank">Simon Worth</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sqlauthority.wordpress.com/593/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sqlauthority.wordpress.com/593/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/593/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/593/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=593&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2008/05/05/sql-server-find-table-in-every-database-of-sql-server-part-2-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Stored Procedure to Know Database Access Permission to Current User</title>
		<link>http://blog.sqlauthority.com/2007/09/23/sql-server-stored-procedure-to-know-database-access-permission-to-current-user/</link>
		<comments>http://blog.sqlauthority.com/2007/09/23/sql-server-stored-procedure-to-know-database-access-permission-to-current-user/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 14:00:49 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Cursor]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/23/sql-server-stored-procedure-to-know-database-access-permission-to-current-user/</guid>
		<description><![CDATA[Jr. DBA in my company only have access to the database which they need to use. Often they try to access database and if they do not have permission they face error. Jr. DBAs always check which database they have access using following system stored procedure. It is very reliable and provides accurate information. Sytanx: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=344&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Jr. DBA in my company only have access to the database which they need to use. Often they try to access database and if they do not have permission they face error. Jr. DBAs always check which database they have access using following system stored procedure. It is very reliable and provides accurate information.</p>
<p style="text-align:justify;"><strong>Sytanx:</strong><br />
<code style="font-size:12px;"><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_MShasdbaccess<br />
</span><span style="color:black;">GO<br />
</span></code><br />
<strong>ResultSet:</strong> ( I have listed only one column)<br />
AdventureWorks<br />
AdventureWorksDW<br />
master<br />
model<br />
msdb<br />
MyDB<br />
ReportServer<br />
ReportServerTempDB<br />
tempdb
</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sqlauthority.wordpress.com/344/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sqlauthority.wordpress.com/344/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=344&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2007/09/23/sql-server-stored-procedure-to-know-database-access-permission-to-current-user/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; DBCC commands List &#8211; documented and undocumented</title>
		<link>http://blog.sqlauthority.com/2007/05/15/sql-server-dbcc-commands-list-documented-and-undocumented/</link>
		<comments>http://blog.sqlauthority.com/2007/05/15/sql-server-dbcc-commands-list-documented-and-undocumented/#comments</comments>
		<pubDate>Tue, 15 May 2007 14:00:37 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Documentation]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBCC]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/15/sql-server-dbcc-commands-list-documented-and-undocumented/</guid>
		<description><![CDATA[Database Consistency Checker (DBCC) commands can gives valuable insight into what&#8217;s going on inside SQL Server system. DBCC commands have powerful documented functions and many undocumented capabilities. Current DBCC commands are most useful for performance and troubleshooting exercises. To learn about all the DBCC commands run following script in query analyzer. DBCC TRACEON(2520) DBCC HELP [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=48&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Database Consistency Checker (DBCC) commands can gives valuable insight into what&#8217;s going on inside SQL Server system. DBCC commands have powerful documented functions and many undocumented capabilities. Current DBCC commands are most useful for performance and troubleshooting exercises.<br />
To learn about all the DBCC commands run following script in query analyzer.<br />
DBCC TRACEON(2520)<br />
DBCC HELP (&#8216;?&#8217;)<br />
GO<br />
To learn about syntax of an individual DBCC command run following script in query analyzer.<br />
DBCC HELP(&lt;command&gt;)<br />
GO<br />
Following is the list of all the DBCC commands and their syntax. List contains all documented and undocumented DBCC commands.<br />
DBCC activecursors [(spid)]
</p>
<p style="text-align:justify;">DBCC addextendedproc (function_name, dll_name)</p>
<p style="text-align:justify;">DBCC addinstance (objectname, instancename)</p>
<p style="text-align:justify;">DBCC adduserobject (name)</p>
<p style="text-align:justify;">DBCC auditevent (eventclass, eventsubclass, success, loginname<br />
, rolename, dbusername, loginid)
</p>
<p style="text-align:justify;">DBCC autopilot (typeid, dbid, tabid, indid, pages [,flag])</p>
<p style="text-align:justify;">DBCC balancefactor (variance_percent)</p>
<p style="text-align:justify;">DBCC bufcount [(number_of_buffers)]</p>
<p style="text-align:justify;">DBCC buffer ( {&#8216;dbname&#8217; | dbid} [, objid [, number [, printopt={0|1|2} ]<br />
[, dirty | io | kept | rlock | ioerr | hashed ]]])
</p>
<p style="text-align:justify;">DBCC bytes ( startaddress, length )</p>
<p style="text-align:justify;">DBCC cachestats</p>
<p style="text-align:justify;">DBCC callfulltext</p>
<p style="text-align:justify;">DBCC checkalloc [('database_name'[, NOINDEX | REPAIR])]<br />
[WITH NO_INFOMSGS[, ALL_ERRORMSGS][, ESTIMATEONLY]]
</p>
<p style="text-align:justify;">DBCC checkcatalog [('database_name')] [WITH NO_INFOMSGS]</p>
<p style="text-align:justify;">DBCC checkconstraints [( 'tab_name' | tab_id | 'constraint_name' | constraint_id )]<br />
[WITH ALL_CONSTRAINTS | ALL_ERRORMSGS]</p>
<p style="text-align:justify;">DBCC checkdb [('database_name'[, NOINDEX | REPAIR])]<br />
[WITH NO_INFOMSGS[, ALL_ERRORMSGS]<br />
[, PHYSICAL_ONLY][, ESTIMATEONLY][,DBCC TABLOCK]
</p>
<p style="text-align:justify;">DBCC checkdbts (dbid, newTimestamp)]</p>
<p style="text-align:justify;">DBCC checkfilegroup [( [ {'filegroup_name' | filegroup_id} ]<br />
[, NOINDEX] )] [WITH NO_INFOMSGS<br />
[, ALL_ERRORMSGS][, PHYSICAL_ONLY][, ESTIMATEONLY][, TABLOCK]]
</p>
<p style="text-align:justify;">DBCC checkident (&#8216;table_name&#8217;[, { NORESEED | {RESEED [, new_reseed_value] } } ] )</p>
<p style="text-align:justify;">DBCC checkprimaryfile ( {&#8216;FileName&#8217;} [, opt={0|1|2|3} ])</p>
<p style="text-align:justify;">DBCC checktable (&#8216;table_name&#8217;[, {NOINDEX | index_id | REPAIR}])<br />
[WITH NO_INFOMSGS[, ALL_ERRORMSGS]<br />
[, PHYSICAL_ONLY][, ESTIMATEONLY][, TABLOCK]]
</p>
<p style="text-align:justify;">DBCC cleantable (&#8216;database_name&#8217;|database_id, &#8216;table_name&#8217;|table_id,[batch_size])</p>
<p style="text-align:justify;">DBCC cacheprofile [( {actionid} [, bucketid])</p>
<p style="text-align:justify;">DBCC clearspacecaches (&#8216;database_name&#8217;|database_id,<br />
&#8216;table_name&#8217;|table_id, &#8216;index_name&#8217;|index_id)
</p>
<p style="text-align:justify;">DBCC collectstats (on | off)</p>
<p style="text-align:justify;">DBCC concurrencyviolation (reset | display | startlog | stoplog)</p>
<p style="text-align:justify;">DBCC config</p>
<p style="text-align:justify;">DBCC cursorstats ([spid [,'clear']])</p>
<p style="text-align:justify;">DBCC dbinfo [('dbname')]</p>
<p style="text-align:justify;">DBCC dbrecover (dbname [, IgnoreErrors])</p>
<p style="text-align:justify;">DBCC dbreindex (&#8216;table_name&#8217; [, index_name [, fillfactor ]]) [WITH NO_INFOMSGS]</p>
<p style="text-align:justify;">DBCC dbreindexall (db_name/db_id, type_bitmap)</p>
<p style="text-align:justify;">DBCC dbrepair (&#8216;dbname&#8217;, DROPDB [, NOINIT])</p>
<p style="text-align:justify;">DBCC dbtable [({'dbname' | dbid})]</p>
<p style="text-align:justify;">DBCC debugbreak</p>
<p style="text-align:justify;">DBCC deleteinstance (objectname, instancename)</p>
<p style="text-align:justify;">DBCC des [( {'dbname' | dbid} [, {'objname' | objid} ])]</p>
<p style="text-align:justify;">DBCC detachdb [( 'dbname' )]</p>
<p style="text-align:justify;">DBCC dropcleanbuffers</p>
<p style="text-align:justify;">DBCC dropextendedproc (function_name)</p>
<p style="text-align:justify;">DBCC dropuserobject (&#8216;object_name&#8217;)</p>
<p style="text-align:justify;">DBCC dumptrigger ({&#8216;BREAK&#8217;, {0 | 1}} | &#8216;DISPLAY&#8217; | {&#8216;SET&#8217;, exception_number}<br />
| {&#8216;CLEAR&#8217;, exception_number})
</p>
<p style="text-align:justify;">DBCC errorlog</p>
<p style="text-align:justify;">DBCC extentinfo [({'database_name'| dbid | 0}<br />
[,{'table_name' | table_id} [, {'index_name' | index_id | -1}]])]
</p>
<p style="text-align:justify;">DBCC fileheader [( {'dbname' | dbid} [, fileid])</p>
<p style="text-align:justify;">DBCC fixallocation [({'ADD' | 'REMOVE'},<br />
{'PAGE' | 'SINGLEPAGE' | 'EXTENT' | 'MIXEDEXTENT'}<br />
, filenum, pagenum [, objectid, indid])
</p>
<p style="text-align:justify;">DBCC flush (&#8216;data&#8217; | &#8216;log&#8217;, dbid)</p>
<p style="text-align:justify;">DBCC flushprocindb (database)</p>
<p style="text-align:justify;">DBCC free dll_name (FREE)</p>
<p style="text-align:justify;">DBCC freeproccache</p>
<p style="text-align:justify;">dbcc freeze_io (db)</p>
<p style="text-align:justify;">dbcc getvalue (name)</p>
<p style="text-align:justify;">dbcc icecapquery (&#8216;dbname&#8217;, stored_proc_name<br />
[, #_times_to_icecap  (-1 infinite, 0 turns off)])<br />
Use &#8216;dbcc icecapquery (printlist)&#8217; to see list of SP&#8217;s to profile.<br />
Use &#8216;dbcc icecapquery (icecapall)&#8217; to profile all SP&#8217;s.
</p>
<p style="text-align:justify;">dbcc incrementinstance (objectname, countername, instancename, value)</p>
<p style="text-align:justify;">dbcc ind ( { &#8216;dbname&#8217; | dbid }, { &#8216;objname&#8217; | objid }, { indid | 0 | -1 | -2 } )</p>
<p style="text-align:justify;">DBCC indexdefrag ({dbid | dbname | 0}, {tableid | tablename}, {indid |indname})</p>
<p style="text-align:justify;">DBCC inputbuffer (spid)</p>
<p style="text-align:justify;">DBCC invalidate_textptr (textptr)</p>
<p style="text-align:justify;">DBCC invalidate_textptr_objid (objid)</p>
<p style="text-align:justify;">DBCC iotrace ( { &#8216;dbname&#8217; | dbid | 0 | -1 }<br />
, { fileid | 0 }, bufsize, [ { numIOs | -1 }<br />
[, { timeout (sec) | -1 } [, printopt={ 0 | 1 }]]] )
</p>
<p style="text-align:justify;">DBCC latch ( address [, 'owners'] [, 'stackdumps'])</p>
<p style="text-align:justify;">DBCC lock ([{'DUMPTABLE' | 'DUMPSTATS' | 'RESETSTATS' | 'HASH'}] |<br />
[{'STALLREPORTTHESHOLD', stallthreshold}])
</p>
<p style="text-align:justify;">DBCC lockobjectschema (&#8216;object_name&#8217;)</p>
<p style="text-align:justify;">DBCC log ([dbid[,{0|1|2|3|4}[,['lsn','[0x]x:y:z&#8217;]|['numrecs',num]|['xdesid','x:y']<br />
|['extent','x:y']|['pageid','x:y']|['objid',{x,'y'}]|['logrecs',<br />
{'lop'|op}...]|['output',x,['filename','x']]&#8230;]]])
</p>
<p style="text-align:justify;">DBCC loginfo [({'database_name' | dbid})]</p>
<p style="text-align:justify;">DBCC matview ({&#8216;PERSIST&#8217; | &#8216;ENDPERSIST&#8217; | &#8216;FREE&#8217; | &#8216;USE&#8217; | &#8216;ENDUSE&#8217;})</p>
<p style="text-align:justify;">DBCC memobjlist [(memory object)]</p>
<p style="text-align:justify;">DBCC memorymap</p>
<p style="text-align:justify;">DBCC memorystatus</p>
<p style="text-align:justify;">DBCC memospy</p>
<p style="text-align:justify;">DBCC memusage ([IDS | NAMES], [Number of rows to output])</p>
<p style="text-align:justify;">DBCC monitorevents (&#8216;sink&#8217; [, 'filter-expression'])</p>
<p style="text-align:justify;">DBCC newalloc &#8211; please use checkalloc instead</p>
<p style="text-align:justify;">DBCC no_textptr (table_id , max_inline)</p>
<p style="text-align:justify;">DBCC opentran [({'dbname'| dbid})] [WITH TABLERESULTS[,NO_INFOMSGS]]</p>
<p style="text-align:justify;">DBCC outputbuffer (spid)</p>
<p style="text-align:justify;">DBCC page ( {&#8216;dbname&#8217; | dbid}, filenum, pagenum<br />
[, printopt={0|1|2|3} ][, cache={0|1} ])
</p>
<p style="text-align:justify;">DBCC perflog</p>
<p style="text-align:justify;">DBCC perfmon</p>
<p style="text-align:justify;">DBCC pglinkage (dbid, startfile, startpg, number, printopt={0|1|2}<br />
, targetfile, targetpg, order={1|0})
</p>
<p style="text-align:justify;">DBCC pintable (database_id, table_id)</p>
<p style="text-align:justify;">DBCC procbuf [({'dbname' | dbid}[, {'objname' | objid}<br />
[, nbufs[, printopt = { 0 | 1 } ]]] )]
</p>
<p style="text-align:justify;">DBCC proccache</p>
<p style="text-align:justify;">DBCC prtipage (dbid, objid, indexid [, [{{level, 0}<br />
| {filenum, pagenum}}] [,printopt]])
</p>
<p style="text-align:justify;">DBCC pss [(uid[, spid[, printopt = { 1 | 0 }]] )]</p>
<p style="text-align:justify;">DBCC readpage ({ dbid, &#8216;dbname&#8217; }, fileid, pageid<br />
, formatstr [, printopt = { 0 | 1} ])
</p>
<p style="text-align:justify;">DBCC rebuild_log (dbname [, filename])</p>
<p style="text-align:justify;">DBCC renamecolumn (object_name, old_name, new_name)</p>
<p style="text-align:justify;">DBCC resource</p>
<p style="text-align:justify;">DBCC row_lock (dbid, tableid, set) &#8211; Not Needed</p>
<p style="text-align:justify;">DBCC ruleoff ({ rulenum | rulestring } [, { rulenum | rulestring } ]+)</p>
<p style="text-align:justify;">DBCC ruleon (  rulenum | rulestring } [, { rulenum | rulestring } ]+)</p>
<p style="text-align:justify;">DBCC setcpuweight (weight)</p>
<p style="text-align:justify;">DBCC setinstance (objectname, countername, instancename, value)</p>
<p style="text-align:justify;">DBCC setioweight (weight)</p>
<p style="text-align:justify;">DBCC show_statistics (&#8216;table_name&#8217;, &#8216;target_name&#8217;)</p>
<p style="text-align:justify;">DBCC showcontig (table_id | table_name [, index_id | index_name]<br />
[WITH FAST, ALL_INDEXES, TABLERESULTS [,ALL_LEVELS]])
</p>
<p style="text-align:justify;">DBCC showdbaffinity</p>
<p style="text-align:justify;">DBCC showfilestats [(file_num)]</p>
<p style="text-align:justify;">DBCC showoffrules</p>
<p style="text-align:justify;">DBCC showonrules</p>
<p style="text-align:justify;">DBCC showtableaffinity (table)</p>
<p style="text-align:justify;">DBCC showtext (&#8216;dbname&#8217;, {textpointer | {fileid, pageid, slotid[,option]}})</p>
<p style="text-align:justify;">DBCC showweights</p>
<p style="text-align:justify;">DBCC shrinkdatabase ({dbid | &#8216;dbname&#8217;}, [freespace_percentage<br />
[, {NOTRUNCATE | TRUNCATEONLY}]])</p>
<p style="text-align:justify;">DBCC shrinkfile ({fileid | &#8216;filename&#8217;}, [compress_size<br />
[, {NOTRUNCATE | TRUNCATEONLY | EMPTYFILE}]])
</p>
<p style="text-align:justify;">DBCC sqlmgrstats</p>
<p style="text-align:justify;">DBCC sqlperf (LOGSPACE)({IOSTATS | LRUSTATS | NETSTATS | RASTATS [, CLEAR]}<br />
| {THREADS} | {LOGSPACE})
</p>
<p style="text-align:justify;">DBCC stackdump [( {uid[, spid[, ecid]} | {threadId, &#8216;THREADID&#8217;}] )]</p>
<p style="text-align:justify;">DBCC tab ( dbid, objid )</p>
<p style="text-align:justify;">DBCC tape_control {&#8216;query&#8217; | &#8216;release&#8217;}[,('.tape')]</p>
<p style="text-align:justify;">DBCC tec [( uid[, spid[, ecid]] )]</p>
<p style="text-align:justify;">DBCC textall [({'database_name'|database_id}[, 'FULL' | FAST] )]</p>
<p style="text-align:justify;">DBCC textalloc ({&#8216;table_name&#8217;|table_id}[, 'FULL' | FAST])</p>
<p style="text-align:justify;">DBCC thaw_io (db)</p>
<p style="text-align:justify;">DBCC traceoff [( tracenum [, tracenum ... ] )]</p>
<p style="text-align:justify;">DBCC traceon [( tracenum [, tracenum ... ] )]</p>
<p style="text-align:justify;">DBCC tracestatus (trace# [, ...trace#])</p>
<p style="text-align:justify;">DBCC unpintable (dbid, table_id)</p>
<p style="text-align:justify;">DBCC updateusage ({&#8216;database_name&#8217;| 0} [, 'table_name' [, index_id]])<br />
[WITH [NO_INFOMSGS] [,] COUNT_ROWS]
</p>
<p style="text-align:justify;">DBCC upgradedb (db) DBCC usagegovernor (command, value)</p>
<p style="text-align:justify;">DBCC useplan [(number_of_plan)]</p>
<p style="text-align:justify;">DBCC useroptions DBCC wakeup (spid)</p>
<p style="text-align:justify;">DBCC writepage ({ dbid, &#8216;dbname&#8217; }, fileid, pageid, offset, length, data)</p>
<p>Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong> , BOL, <a href="http://www.extremeexperts.com/sql/articles/ListDBCCCommands.aspx" target="_blank">Extreme Expert</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sqlauthority.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sqlauthority.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=48&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2007/05/15/sql-server-dbcc-commands-list-documented-and-undocumented/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2005 &#8211; List all the database</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/</link>
		<comments>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comments</comments>
		<pubDate>Sat, 12 May 2007 14:00:33 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Stored Procedure]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[undocumented SQL]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/</guid>
		<description><![CDATA[List all the database on SQL Servers. All the following Stored Procedure list all the Databases on Server. I personally use EXEC sp_databases because it gives the same results as other but it is self explaining. ----SQL SERVER 2005 System Procedures EXEC sp_databases EXEC sp_helpdb ----SQL 2000 Method still works in SQL Server 2005 SELECT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=158&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">List all the database on SQL Servers.<br />
All the following Stored Procedure list all the Databases on Server.</p>
<p style="text-align:justify;">I personally use EXEC sp_databases because it gives the same results as other but it is self explaining.<br />
<code style="font-size:12px;"><span style="color:black;"> </span><span style="color:green;">----SQL SERVER 2005 System Procedures<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_databases<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_helpdb<br />
</span><span style="color:green;">----SQL 2000 Method still works in SQL Server 2005<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.databases<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.sysdatabases<br />
</span><span style="color:green;">----SQL SERVER Un-Documented Procedure<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">sp_msForEachDB </span><span style="color:red;">'PRINT ''?'''</span></code></p>
<p>Reference : <strong>Pinal Dave (</strong><a href="http://blog.SQLAuthority.com" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sqlauthority.wordpress.com/158/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sqlauthority.wordpress.com/158/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=158&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
	</channel>
</rss>
