<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: SQL SERVER &#8211; List All the Tables for All Databases Using System Tables</title>
	<atom:link href="http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: naveen</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-411683</link>
		<dc:creator><![CDATA[naveen]]></dc:creator>
		<pubDate>Wed, 23 Jan 2013 08:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-411683</guid>
		<description><![CDATA[Dear all,

i have one problem in ssrs.i need to display sales report customer wise [sales and budget and variance and variance percentage] from different databases but in single server.it will be there detailes in multiple databases.i need to display detailes in single report.could you please anyone help me.for example we are maintaining 2010,2011 databases so i need to display customer no,sales,budget,variance,variance percentage in single report ...

year from 2012 year to 2013 date filter 01-01-12..31-12-13

Customer No. &#124; Sales -2012 &#124;Budget-2012 &#124;Variance-2012 &#124;Variance %-2012 Sales -2013 &#124;Budget-2013&#124; Variance-2013 &#124;Variance %-2013 

i need details like this in one report using multiple databases.please anyone help me.


navya krishna katta]]></description>
		<content:encoded><![CDATA[<p>Dear all,</p>
<p>i have one problem in ssrs.i need to display sales report customer wise [sales and budget and variance and variance percentage] from different databases but in single server.it will be there detailes in multiple databases.i need to display detailes in single report.could you please anyone help me.for example we are maintaining 2010,2011 databases so i need to display customer no,sales,budget,variance,variance percentage in single report &#8230;</p>
<p>year from 2012 year to 2013 date filter 01-01-12..31-12-13</p>
<p>Customer No. | Sales -2012 |Budget-2012 |Variance-2012 |Variance %-2012 Sales -2013 |Budget-2013| Variance-2013 |Variance %-2013 </p>
<p>i need details like this in one report using multiple databases.please anyone help me.</p>
<p>navya krishna katta</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: com</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-386957</link>
		<dc:creator><![CDATA[com]]></dc:creator>
		<pubDate>Tue, 04 Dec 2012 21:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-386957</guid>
		<description><![CDATA[The query doesnt tell in what database the field is belongs to.]]></description>
		<content:encoded><![CDATA[<p>The query doesnt tell in what database the field is belongs to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-303186</link>
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Tue, 19 Jun 2012 12:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-303186</guid>
		<description><![CDATA[As far as I can tell.  None of these queries show both master relevent tables and sys.schema local DB tables.  Is there a short and easy query to enumerate ALL databases and ALL tables in both the master and also local to each DB?  Hope that sounded clear.]]></description>
		<content:encoded><![CDATA[<p>As far as I can tell.  None of these queries show both master relevent tables and sys.schema local DB tables.  Is there a short and easy query to enumerate ALL databases and ALL tables in both the master and also local to each DB?  Hope that sounded clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teri.perrell@ssa.gov</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-269126</link>
		<dc:creator><![CDATA[teri.perrell@ssa.gov]]></dc:creator>
		<pubDate>Wed, 28 Mar 2012 20:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-269126</guid>
		<description><![CDATA[Hello!

I have over 700 databases on my server and have a task to identify each database with a column named &quot;Checked_Out&quot;.  This means I need to somehow query the system tables for database name then subquery for table.column = &quot;Checked_Out&quot;.

Thanks, Teri]]></description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I have over 700 databases on my server and have a task to identify each database with a column named &#8220;Checked_Out&#8221;.  This means I need to somehow query the system tables for database name then subquery for table.column = &#8220;Checked_Out&#8221;.</p>
<p>Thanks, Teri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-240988</link>
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Thu, 19 Jan 2012 22:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-240988</guid>
		<description><![CDATA[How can I find stored procedures that have never been executed. Not only in the time the log persists in memory? Any idea?]]></description>
		<content:encoded><![CDATA[<p>How can I find stored procedures that have never been executed. Not only in the time the log persists in memory? Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-182945</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 24 Oct 2011 15:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-182945</guid>
		<description><![CDATA[Create a table with same strcuture of what sp_msforeachdb  returns. Then use this statement

insert into #t(column_list)
EXEC sp_msforeachdb ‘select “?” AS db, * from [?].sys.tables’]]></description>
		<content:encoded><![CDATA[<p>Create a table with same strcuture of what sp_msforeachdb  returns. Then use this statement</p>
<p>insert into #t(column_list)<br />
EXEC sp_msforeachdb ‘select “?” AS db, * from [?].sys.tables’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tboonleong@yahoo.com</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-181512</link>
		<dc:creator><![CDATA[tboonleong@yahoo.com]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 08:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-181512</guid>
		<description><![CDATA[this is great tips. =&gt; sp_msforeachdb &#039;select &quot;?&quot; AS db, * from [?].sys.tables&#039;

But How to capture those output and use it into query statement ?becasue i need information for all those database names and all table names to export those data to text files using BPC.]]></description>
		<content:encoded><![CDATA[<p>this is great tips. =&gt; sp_msforeachdb &#8216;select &#8220;?&#8221; AS db, * from [?].sys.tables&#8217;</p>
<p>But How to capture those output and use it into query statement ?becasue i need information for all those database names and all table names to export those data to text files using BPC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-163628</link>
		<dc:creator><![CDATA[Andrey]]></dc:creator>
		<pubDate>Tue, 30 Aug 2011 13:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-163628</guid>
		<description><![CDATA[Colin,
   if it&#039;s still interesting for you : 
exec sp_MSforeachtable &#039;if COLUMNPROPERTY(object_id(&#039;&#039;?&#039;&#039;),&#039;&#039;XXXXX&#039;&#039;,&#039;&#039;ColumnID&#039;&#039;) is not null select &#039;&#039;?&#039;&#039; [Table],* from ?&#039;

Replace XXXXX with your column name.]]></description>
		<content:encoded><![CDATA[<p>Colin,<br />
   if it&#8217;s still interesting for you :<br />
exec sp_MSforeachtable &#8216;if COLUMNPROPERTY(object_id(&#8221;?&#8221;),&#8221;XXXXX&#8221;,&#8221;ColumnID&#8221;) is not null select &#8221;?&#8221; [Table],* from ?&#8217;</p>
<p>Replace XXXXX with your column name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-140308</link>
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Fri, 10 Jun 2011 18:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-140308</guid>
		<description><![CDATA[How do I use the output of the above command as input into another query. For instance, I want to get all the tables with a specific column name then use that result to further query each table to get the data for that column. Something like (DB2 syntax):

select * from (select tabname from syscat.columns where colname = &#039;my_column_name&#039;);

Of course that only gives me the table names, and not what I want...]]></description>
		<content:encoded><![CDATA[<p>How do I use the output of the above command as input into another query. For instance, I want to get all the tables with a specific column name then use that result to further query each table to get the data for that column. Something like (DB2 syntax):</p>
<p>select * from (select tabname from syscat.columns where colname = &#8216;my_column_name&#8217;);</p>
<p>Of course that only gives me the table names, and not what I want&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janarthanan</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-126734</link>
		<dc:creator><![CDATA[janarthanan]]></dc:creator>
		<pubDate>Tue, 05 Apr 2011 12:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-126734</guid>
		<description><![CDATA[how this query was used in production enviourment
when it was used?
what purpose itz used?]]></description>
		<content:encoded><![CDATA[<p>how this query was used in production enviourment<br />
when it was used?<br />
what purpose itz used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-121660</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 03 Mar 2011 08:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-121660</guid>
		<description><![CDATA[select * from information_schema.tables]]></description>
		<content:encoded><![CDATA[<p>select * from information_schema.tables</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anjay</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-121143</link>
		<dc:creator><![CDATA[anjay]]></dc:creator>
		<pubDate>Mon, 28 Feb 2011 05:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-121143</guid>
		<description><![CDATA[How can i search all the tables in a particular database.]]></description>
		<content:encoded><![CDATA[<p>How can i search all the tables in a particular database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hafiz Saleh</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-72832</link>
		<dc:creator><![CDATA[hafiz Saleh]]></dc:creator>
		<pubDate>Mon, 24 May 2010 08:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-72832</guid>
		<description><![CDATA[How i can find which table has Created from which User when a Data base is used by Different Login.plz guide me.]]></description>
		<content:encoded><![CDATA[<p>How i can find which table has Created from which User when a Data base is used by Different Login.plz guide me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-68300</link>
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Sat, 01 May 2010 19:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-68300</guid>
		<description><![CDATA[How can i search all procedures within a database for a specific table name?]]></description>
		<content:encoded><![CDATA[<p>How can i search all procedures within a database for a specific table name?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashank</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-64594</link>
		<dc:creator><![CDATA[Shashank]]></dc:creator>
		<pubDate>Tue, 06 Apr 2010 15:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-64594</guid>
		<description><![CDATA[How to write a script to truncate tables using sp_msForEachDB. Please help.
I am using:

DECLARE @Table1 NVARCHAR(100)
DECLARE @Table2 NVARCHAR(100)
DECLARE @Table3 NVARCHAR(100)

SET @Table1=&#039;fwkErrorLog&#039;
SET @Table2=&#039;fwkUserAuthenticationLog&#039;
SET @Table3=&#039;fwkUserAuthenticationLogArchive&#039;
DECLARE @dbname NVARCHAR(500)
DECLARE @sqlStatement  NVARCHAR(500)
DECLARE @singlequote char(4)
SET @singlequote=&#039;&#039;&#039;&#039;  


SET  @sqlStatement= &#039;USE ?; IF EXISTS (SELECT &#039;&#039;x&#039;&#039; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#039; +
		  + @singlequote+@Table1+@singlequote
		   +&#039;) TRUNCATE table &#039;+@Table1 
		 
EXEC sp_msForEachDB @sqlStatement

SET  @sqlStatement= &#039;USE ?; IF EXISTS (SELECT &#039;&#039;x&#039;&#039; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#039; +
		  + @singlequote+@Table2+@singlequote
		   +&#039;) TRUNCATE table &#039;+@Table2
EXEC sp_msForEachDB @sqlStatement

SET  @sqlStatement= &#039;USE ?; IF EXISTS (SELECT &#039;&#039;x&#039;&#039; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#039; +
		  +@singlequote+@Table3+@singlequote 
		   +&#039;) TRUNCATE table &#039;+@Table3
EXEC sp_msForEachDB @sqlStatement

Can it be much better]]></description>
		<content:encoded><![CDATA[<p>How to write a script to truncate tables using sp_msForEachDB. Please help.<br />
I am using:</p>
<p>DECLARE @Table1 NVARCHAR(100)<br />
DECLARE @Table2 NVARCHAR(100)<br />
DECLARE @Table3 NVARCHAR(100)</p>
<p>SET @Table1=&#8217;fwkErrorLog&#8217;<br />
SET @Table2=&#8217;fwkUserAuthenticationLog&#8217;<br />
SET @Table3=&#8217;fwkUserAuthenticationLogArchive&#8217;<br />
DECLARE @dbname NVARCHAR(500)<br />
DECLARE @sqlStatement  NVARCHAR(500)<br />
DECLARE @singlequote char(4)<br />
SET @singlequote=&#8221;&#8221;  </p>
<p>SET  @sqlStatement= &#8216;USE ?; IF EXISTS (SELECT &#8221;x&#8221; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#8216; +<br />
		  + @singlequote+@Table1+@singlequote<br />
		   +&#8217;) TRUNCATE table &#8216;+@Table1 </p>
<p>EXEC sp_msForEachDB @sqlStatement</p>
<p>SET  @sqlStatement= &#8216;USE ?; IF EXISTS (SELECT &#8221;x&#8221; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#8216; +<br />
		  + @singlequote+@Table2+@singlequote<br />
		   +&#8217;) TRUNCATE table &#8216;+@Table2<br />
EXEC sp_msForEachDB @sqlStatement</p>
<p>SET  @sqlStatement= &#8216;USE ?; IF EXISTS (SELECT &#8221;x&#8221; FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = &#8216; +<br />
		  +@singlequote+@Table3+@singlequote<br />
		   +&#8217;) TRUNCATE table &#8216;+@Table3<br />
EXEC sp_msForEachDB @sqlStatement</p>
<p>Can it be much better</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaitanya</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-62575</link>
		<dc:creator><![CDATA[chaitanya]]></dc:creator>
		<pubDate>Wed, 10 Mar 2010 03:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-62575</guid>
		<description><![CDATA[thnx a ton...]]></description>
		<content:encoded><![CDATA[<p>thnx a ton&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-62527</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-62527</guid>
		<description><![CDATA[Hello Chaitanya,

Statistics is stored in statblob column in sys.indexes table.

Regards,
Pinal dave]]></description>
		<content:encoded><![CDATA[<p>Hello Chaitanya,</p>
<p>Statistics is stored in statblob column in sys.indexes table.</p>
<p>Regards,<br />
Pinal dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaitanya</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-62427</link>
		<dc:creator><![CDATA[chaitanya]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 15:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-62427</guid>
		<description><![CDATA[in which table query statistics are stored?]]></description>
		<content:encoded><![CDATA[<p>in which table query statistics are stored?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaitanya</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-62426</link>
		<dc:creator><![CDATA[chaitanya]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 15:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-62426</guid>
		<description><![CDATA[where the statistics of query i.e cost ,time of exe. etc are stored??(in which table?)]]></description>
		<content:encoded><![CDATA[<p>where the statistics of query i.e cost ,time of exe. etc are stored??(in which table?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-57886</link>
		<dc:creator><![CDATA[Tejas Shah]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 07:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-57886</guid>
		<description><![CDATA[Hi Jyotsna,

You will get all Table&#039;s columns by this query:

select t.name As TableName, c.Column_Name
from sys.tables t
INNER JOIN information_schema.columns c ON c.Table_Name = t.Name
ORDER BY t.name


Thanks,

Tejas
SQLYoga.com]]></description>
		<content:encoded><![CDATA[<p>Hi Jyotsna,</p>
<p>You will get all Table&#8217;s columns by this query:</p>
<p>select t.name As TableName, c.Column_Name<br />
from sys.tables t<br />
INNER JOIN information_schema.columns c ON c.Table_Name = t.Name<br />
ORDER BY t.name</p>
<p>Thanks,</p>
<p>Tejas<br />
SQLYoga.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jyotsna</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-57841</link>
		<dc:creator><![CDATA[Jyotsna]]></dc:creator>
		<pubDate>Mon, 23 Nov 2009 18:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-57841</guid>
		<description><![CDATA[Hi,
Im new to SQL server, i was wondering if there was anyway, we could list all tables for a single database along with the column names.
Im finding this really hard so any help would be appreciated]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Im new to SQL server, i was wondering if there was anyway, we could list all tables for a single database along with the column names.<br />
Im finding this really hard so any help would be appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HING</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-51325</link>
		<dc:creator><![CDATA[HING]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 14:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-51325</guid>
		<description><![CDATA[Thank you , 

Sometimes a database may contain the name space

sp_msforeachdb &#039;select &quot;?&quot; AS db, * from [?].sys.tables&#039;]]></description>
		<content:encoded><![CDATA[<p>Thank you , </p>
<p>Sometimes a database may contain the name space</p>
<p>sp_msforeachdb &#8216;select &#8220;?&#8221; AS db, * from [?].sys.tables&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-51308</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 07:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-51308</guid>
		<description><![CDATA[Thank you Jacob Sir!]]></description>
		<content:encoded><![CDATA[<p>Thank you Jacob Sir!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zubaria</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-51307</link>
		<dc:creator><![CDATA[Zubaria]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 06:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-51307</guid>
		<description><![CDATA[Is there a way to use this query for auditing DMl events]]></description>
		<content:encoded><![CDATA[<p>Is there a way to use this query for auditing DMl events</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Sebastian</title>
		<link>http://blog.sqlauthority.com/2009/04/26/sql-server-list-all-the-tables-for-all-databases-using-system-tables/#comment-51300</link>
		<dc:creator><![CDATA[Jacob Sebastian]]></dc:creator>
		<pubDate>Mon, 27 Apr 2009 03:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=4540#comment-51300</guid>
		<description><![CDATA[And some times it is important to know which database is being processed and the following might be helpful.

sp_msforeachdb &#039;select &#039;&#039;?&#039;&#039; AS db, * from ?.sys.tables&#039;]]></description>
		<content:encoded><![CDATA[<p>And some times it is important to know which database is being processed and the following might be helpful.</p>
<p>sp_msforeachdb &#8216;select &#8221;?&#8221; AS db, * from ?.sys.tables&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
