<?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; 2005 &#8211; List all the database</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:31:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Dang Thai Huynh</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-164276</link>
		<dc:creator><![CDATA[Dang Thai Huynh]]></dc:creator>
		<pubDate>Thu, 01 Sep 2011 11:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-164276</guid>
		<description><![CDATA[The code above is t-sql and must be connect to get server instant name. I mean list all instant name of sql server without connect to any database.]]></description>
		<content:encoded><![CDATA[<p>The code above is t-sql and must be connect to get server instant name. I mean list all instant name of sql server without connect to any database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dang Thai Huynh</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-164272</link>
		<dc:creator><![CDATA[Dang Thai Huynh]]></dc:creator>
		<pubDate>Thu, 01 Sep 2011 11:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-164272</guid>
		<description><![CDATA[Could someone tell me code to list all sql instant name in a computer?]]></description>
		<content:encoded><![CDATA[<p>Could someone tell me code to list all sql instant name in a computer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Russell</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-157511</link>
		<dc:creator><![CDATA[Eric Russell]]></dc:creator>
		<pubDate>Mon, 15 Aug 2011 19:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-157511</guid>
		<description><![CDATA[Depending on the user&#039;s role and database membership, these various techniques will not return the same result and may even return nothing.
 
sp_databases requires CREATE DATABASE, or ALTER ANY DATABASE, or VIEW ANY DEFINITION permission, otherwise it returns an empty result -- even for those databases where you are a member.
 
sp_helpdb and EXEC sp_msForEachDB &#039;PRINT &#039;&#039;?&#039;&#039;&#039; return those database for which you are a member, even if you don&#039;t have any of the above permissions.
 
sys.databases and sys.sysdatabases return all databases regardless of permissons or membership.]]></description>
		<content:encoded><![CDATA[<p>Depending on the user&#8217;s role and database membership, these various techniques will not return the same result and may even return nothing.</p>
<p>sp_databases requires CREATE DATABASE, or ALTER ANY DATABASE, or VIEW ANY DEFINITION permission, otherwise it returns an empty result &#8212; even for those databases where you are a member.</p>
<p>sp_helpdb and EXEC sp_msForEachDB &#8216;PRINT &#8221;?&#8221;&#8217; return those database for which you are a member, even if you don&#8217;t have any of the above permissions.</p>
<p>sys.databases and sys.sysdatabases return all databases regardless of permissons or membership.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-147023</link>
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Sat, 09 Jul 2011 00:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-147023</guid>
		<description><![CDATA[Nice]]></description>
		<content:encoded><![CDATA[<p>Nice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitor</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-128165</link>
		<dc:creator><![CDATA[Vitor]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 00:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-128165</guid>
		<description><![CDATA[Great !!!!! thanks a lot  !!!now my sqlcmd it&#039;s more than a weapon it&#039;s one great soldier of work yes!!]]></description>
		<content:encoded><![CDATA[<p>Great !!!!! thanks a lot  !!!now my sqlcmd it&#8217;s more than a weapon it&#8217;s one great soldier of work yes!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cihan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-119158</link>
		<dc:creator><![CDATA[Cihan]]></dc:creator>
		<pubDate>Fri, 18 Feb 2011 13:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-119158</guid>
		<description><![CDATA[Useful post, ty :)]]></description>
		<content:encoded><![CDATA[<p>Useful post, ty :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Gledhill</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-111599</link>
		<dc:creator><![CDATA[Mike Gledhill]]></dc:creator>
		<pubDate>Tue, 18 Jan 2011 09:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-111599</guid>
		<description><![CDATA[Here&#039;s a nice script, which will list the databases on your SQL Server, along with the path+filenames of their log &amp; data files.

SELECT db.database_id, 
   db.[name], 
   case when mf.type_desc = &#039;ROWS&#039; then &#039;Data file&#039; else &#039;Log file&#039; end,
   mf.physical_name as &#039;Filename&#039;
FROM sys.databases db,
   sys.master_files mf
where mf.database_id = db.database_id
order by 2]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s a nice script, which will list the databases on your SQL Server, along with the path+filenames of their log &amp; data files.</p>
<p>SELECT db.database_id,<br />
   db.[name],<br />
   case when mf.type_desc = &#8216;ROWS&#8217; then &#8216;Data file&#8217; else &#8216;Log file&#8217; end,<br />
   mf.physical_name as &#8216;Filename&#8217;<br />
FROM sys.databases db,<br />
   sys.master_files mf<br />
where mf.database_id = db.database_id<br />
order by 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-110328</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 14:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-110328</guid>
		<description><![CDATA[What do you mean by all records from a database?]]></description>
		<content:encoded><![CDATA[<p>What do you mean by all records from a database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshu Verma</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-109787</link>
		<dc:creator><![CDATA[Anshu Verma]]></dc:creator>
		<pubDate>Thu, 06 Jan 2011 18:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-109787</guid>
		<description><![CDATA[Hi..
      Can you tell me the query from which I can retrive all the records from a database in sql server 2005 or 2008.]]></description>
		<content:encoded><![CDATA[<p>Hi..<br />
      Can you tell me the query from which I can retrive all the records from a database in sql server 2005 or 2008.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simhadri</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-95899</link>
		<dc:creator><![CDATA[Simhadri]]></dc:creator>
		<pubDate>Tue, 26 Oct 2010 13:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-95899</guid>
		<description><![CDATA[Thanks a bunch, it helps me a lot.]]></description>
		<content:encoded><![CDATA[<p>Thanks a bunch, it helps me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janathan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-86281</link>
		<dc:creator><![CDATA[Janathan]]></dc:creator>
		<pubDate>Thu, 02 Sep 2010 08:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-86281</guid>
		<description><![CDATA[Thanx Buddy :)]]></description>
		<content:encoded><![CDATA[<p>Thanx Buddy :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81257</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81257</guid>
		<description><![CDATA[exec sp_databases

will show you occupied disk space]]></description>
		<content:encoded><![CDATA[<p>exec sp_databases</p>
<p>will show you occupied disk space</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81256</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81256</guid>
		<description><![CDATA[Read about SYSDATABASES in SQL Server help file
It has informations about all the columns]]></description>
		<content:encoded><![CDATA[<p>Read about SYSDATABASES in SQL Server help file<br />
It has informations about all the columns</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vandana</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81138</link>
		<dc:creator><![CDATA[Vandana]]></dc:creator>
		<pubDate>Wed, 21 Jul 2010 18:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-81138</guid>
		<description><![CDATA[Hi Pinal,

Just a query what does version &#039;Null&#039; signifies while querying sysdatabases.

Also do let us know about status &#039;4259841&#039;, ststus2 &#039;1627389952&#039;.

Thanx]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Just a query what does version &#8216;Null&#8217; signifies while querying sysdatabases.</p>
<p>Also do let us know about status &#8217;4259841&#8242;, ststus2 &#8217;1627389952&#8242;.</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80477</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 16 Jul 2010 07:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80477</guid>
		<description><![CDATA[Use this

select
name
,DATABASEPROPERTYEX(name, ‘Status’)
,crdate
,filename
,”
,*
from master..sysdatabases
where DATABASEPROPERTYEX(name, ‘Status’)=&#039;ONLINE&#039;]]></description>
		<content:encoded><![CDATA[<p>Use this</p>
<p>select<br />
name<br />
,DATABASEPROPERTYEX(name, ‘Status’)<br />
,crdate<br />
,filename<br />
,”<br />
,*<br />
from master..sysdatabases<br />
where DATABASEPROPERTYEX(name, ‘Status’)=&#8217;ONLINE&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80476</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 16 Jul 2010 07:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80476</guid>
		<description><![CDATA[They should be

SELECT * FROM master..sysdatabases]]></description>
		<content:encoded><![CDATA[<p>They should be</p>
<p>SELECT * FROM master..sysdatabases</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80434</link>
		<dc:creator><![CDATA[Jerry]]></dc:creator>
		<pubDate>Thu, 15 Jul 2010 23:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80434</guid>
		<description><![CDATA[Well Dave, Just I want to know what databases are online in sql server 2000, so the next query is ok, for this?

select 
	name
	,DATABASEPROPERTYEX(name, &#039;Status&#039;)
	,crdate
	,filename
	,&#039;&#039;
	,*
from master..sysdatabases]]></description>
		<content:encoded><![CDATA[<p>Well Dave, Just I want to know what databases are online in sql server 2000, so the next query is ok, for this?</p>
<p>select<br />
	name<br />
	,DATABASEPROPERTYEX(name, &#8216;Status&#8217;)<br />
	,crdate<br />
	,filename<br />
	,&#8221;<br />
	,*<br />
from master..sysdatabases</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80433</link>
		<dc:creator><![CDATA[Jerry]]></dc:creator>
		<pubDate>Thu, 15 Jul 2010 23:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80433</guid>
		<description><![CDATA[Hi Dave, 

When I run:

SELECT * FROM master..sys.databases
SELECT * FROM master..sys.sysdatabases

The output is:

Could not find server &#039;master&#039; in sysservers. Execute sp_addlinkedserver to add the server to sysservers.

Execute:

exec sp_addlinkedserver 

Returns:

Msg 15028, Level 16, State 1, Procedure sp_addlinkedserver, Line 79
The server &#039;&#039; already exists.

Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi Dave, </p>
<p>When I run:</p>
<p>SELECT * FROM master..sys.databases<br />
SELECT * FROM master..sys.sysdatabases</p>
<p>The output is:</p>
<p>Could not find server &#8216;master&#8217; in sysservers. Execute sp_addlinkedserver to add the server to sysservers.</p>
<p>Execute:</p>
<p>exec sp_addlinkedserver </p>
<p>Returns:</p>
<p>Msg 15028, Level 16, State 1, Procedure sp_addlinkedserver, Line 79<br />
The server &#8221; already exists.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dvr</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80399</link>
		<dc:creator><![CDATA[dvr]]></dc:creator>
		<pubDate>Thu, 15 Jul 2010 11:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-80399</guid>
		<description><![CDATA[list of used databases since last reboot



select a.name, a.dbid, max(last_user_seek), max(last_user_scan)
from  sys.sysdatabases a
left outer join sys.dm_db_index_usage_stats b on a.dbid = b.database_id
group by a.name, a.dbid]]></description>
		<content:encoded><![CDATA[<p>list of used databases since last reboot</p>
<p>select a.name, a.dbid, max(last_user_seek), max(last_user_scan)<br />
from  sys.sysdatabases a<br />
left outer join sys.dm_db_index_usage_stats b on a.dbid = b.database_id<br />
group by a.name, a.dbid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pradip</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-79027</link>
		<dc:creator><![CDATA[pradip]]></dc:creator>
		<pubDate>Wed, 07 Jul 2010 05:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-79027</guid>
		<description><![CDATA[marvellous....thanx dear...]]></description>
		<content:encoded><![CDATA[<p>marvellous&#8230;.thanx dear&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atiq</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-78675</link>
		<dc:creator><![CDATA[Atiq]]></dc:creator>
		<pubDate>Sat, 03 Jul 2010 20:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-78675</guid>
		<description><![CDATA[Thanks, Great.]]></description>
		<content:encoded><![CDATA[<p>Thanks, Great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-70690</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Thu, 13 May 2010 11:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-70690</guid>
		<description><![CDATA[The ordinal position of the column doesn&#039;t matter as long as you use them in the proper place in the SELECT statement. If you still need it do it via Management studio]]></description>
		<content:encoded><![CDATA[<p>The ordinal position of the column doesn&#8217;t matter as long as you use them in the proper place in the SELECT statement. If you still need it do it via Management studio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rafique</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-69696</link>
		<dc:creator><![CDATA[rafique]]></dc:creator>
		<pubDate>Fri, 07 May 2010 17:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-69696</guid>
		<description><![CDATA[how can i insert a new column in existing table?
but that column should insert between two columns
plz tell me query

thank u]]></description>
		<content:encoded><![CDATA[<p>how can i insert a new column in existing table?<br />
but that column should insert between two columns<br />
plz tell me query</p>
<p>thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tushar</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-64339</link>
		<dc:creator><![CDATA[tushar]]></dc:creator>
		<pubDate>Fri, 02 Apr 2010 20:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-64339</guid>
		<description><![CDATA[How to check all database disk space uitilized on a certain sql server?]]></description>
		<content:encoded><![CDATA[<p>How to check all database disk space uitilized on a certain sql server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emre</title>
		<link>http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-63737</link>
		<dc:creator><![CDATA[Emre]]></dc:creator>
		<pubDate>Thu, 25 Mar 2010 12:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/#comment-63737</guid>
		<description><![CDATA[Thank you so much. Its very helpful,Greetings from Turkey]]></description>
		<content:encoded><![CDATA[<p>Thank you so much. Its very helpful,Greetings from Turkey</p>
]]></content:encoded>
	</item>
</channel>
</rss>

