<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=How_to_locate_a_table_by_table_name</id>
		<title>How to locate a table by table name - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=How_to_locate_a_table_by_table_name"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=How_to_locate_a_table_by_table_name&amp;action=history"/>
		<updated>2026-05-06T13:19:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=How_to_locate_a_table_by_table_name&amp;diff=2858&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;sql&quot;&gt; create table #t (     DBName sysname not null ) go exec sp_msforeachdb 'use [?]; if OBJECT_ID(''dbo.staff'') is not null insert into #t (DBName) select ''?...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=How_to_locate_a_table_by_table_name&amp;diff=2858&amp;oldid=prev"/>
				<updated>2016-01-29T17:06:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt; create table #t (     DBName sysname not null ) go exec sp_msforeachdb &amp;#039;use [?]; if OBJECT_ID(&amp;#039;&amp;#039;dbo.staff&amp;#039;&amp;#039;) is not null insert into #t (DBName) select &amp;#039;&amp;#039;?...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
create table #t (&lt;br /&gt;
    DBName sysname not null&lt;br /&gt;
)&lt;br /&gt;
go&lt;br /&gt;
exec sp_msforeachdb 'use [?]; if OBJECT_ID(''dbo.staff'') is not null insert into #t (DBName) select ''?'''&lt;br /&gt;
go&lt;br /&gt;
select * from #t&lt;br /&gt;
go&lt;br /&gt;
drop table #t&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>