<?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; Get Information of Index of Tables and Indexed Columns</title>
	<atom:link href="http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: kishor</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-366985</link>
		<dc:creator><![CDATA[kishor]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 11:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-366985</guid>
		<description><![CDATA[Hi Shivam ,
 try below query i think it will help you

select *from(
(select *from Kishor.summ))c1,
(select SUM(value) summ from Kishor.summ)c2]]></description>
		<content:encoded><![CDATA[<p>Hi Shivam ,<br />
 try below query i think it will help you</p>
<p>select *from(<br />
(select *from Kishor.summ))c1,<br />
(select SUM(value) summ from Kishor.summ)c2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kishor</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-366984</link>
		<dc:creator><![CDATA[kishor]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 11:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-366984</guid>
		<description><![CDATA[select *from(
(select *from Kishor.summ))c1,
(select SUM(value) summ from Kishor.summ)c2]]></description>
		<content:encoded><![CDATA[<p>select *from(<br />
(select *from Kishor.summ))c1,<br />
(select SUM(value) summ from Kishor.summ)c2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-285462</link>
		<dc:creator><![CDATA[Manish]]></dc:creator>
		<pubDate>Thu, 17 May 2012 14:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-285462</guid>
		<description><![CDATA[Hi,

Thanks for the useful tips. 
I need help to sort out one problem. Actually in our database at one point of time we created an index on a single column and released it in our upgrade script and now some of the clients are running with this. But now according to our requirement we want to update the same index but want it on two columns. But we dont want to drop the index in our upgrade script. Is there any way to retrieve the column names on the existing index so that we would be able to update our upgrade script to check if the existing index is on one column create index on second as well other otherwise create multi column index .]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the useful tips.<br />
I need help to sort out one problem. Actually in our database at one point of time we created an index on a single column and released it in our upgrade script and now some of the clients are running with this. But now according to our requirement we want to update the same index but want it on two columns. But we dont want to drop the index in our upgrade script. Is there any way to retrieve the column names on the existing index so that we would be able to update our upgrade script to check if the existing index is on one column create index on second as well other otherwise create multi column index .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-265220</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 08:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-265220</guid>
		<description><![CDATA[Use this

select ident_current(&#039;table_name&#039;)]]></description>
		<content:encoded><![CDATA[<p>Use this</p>
<p>select ident_current(&#8216;table_name&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheetal</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-264000</link>
		<dc:creator><![CDATA[Sheetal]]></dc:creator>
		<pubDate>Sat, 17 Mar 2012 06:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-264000</guid>
		<description><![CDATA[I have (Is Identity) = Yes for a column - ID

Now, I want to know which next value will be inserted for this column.

Can I know that?

Thank u in advance.]]></description>
		<content:encoded><![CDATA[<p>I have (Is Identity) = Yes for a column &#8211; ID</p>
<p>Now, I want to know which next value will be inserted for this column.</p>
<p>Can I know that?</p>
<p>Thank u in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-145735</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 04 Jul 2011 10:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-145735</guid>
		<description><![CDATA[You have to make sure that functions are not used over this column in the where clause]]></description>
		<content:encoded><![CDATA[<p>You have to make sure that functions are not used over this column in the where clause</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveed</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-145647</link>
		<dc:creator><![CDATA[Naveed]]></dc:creator>
		<pubDate>Mon, 04 Jul 2011 04:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-145647</guid>
		<description><![CDATA[dear 
          Every one
to creart an index we write this quary
                          CREATE INDEX index_name
                          ON table_name (column_name)

but if you search values on it, so for this you write quary............]]></description>
		<content:encoded><![CDATA[<p>dear<br />
          Every one<br />
to creart an index we write this quary<br />
                          CREATE INDEX index_name<br />
                          ON table_name (column_name)</p>
<p>but if you search values on it, so for this you write quary&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-121654</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 03 Mar 2011 08:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-121654</guid>
		<description><![CDATA[Search for Running Total in this site]]></description>
		<content:encoded><![CDATA[<p>Search for Running Total in this site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shivam Shukla</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-121221</link>
		<dc:creator><![CDATA[Shivam Shukla]]></dc:creator>
		<pubDate>Mon, 28 Feb 2011 18:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-121221</guid>
		<description><![CDATA[Hello Sir,

please answer me that how can i get the -ve value&#039;s sum in other column like as given below table

id                   value             diffrence

1                   900                 900
2                  -500                 400
3                   -200                 200

Please tell me the query of sql server 2005.
it will b great full.

[email removed]
mail me plz]]></description>
		<content:encoded><![CDATA[<p>Hello Sir,</p>
<p>please answer me that how can i get the -ve value&#8217;s sum in other column like as given below table</p>
<p>id                   value             diffrence</p>
<p>1                   900                 900<br />
2                  -500                 400<br />
3                   -200                 200</p>
<p>Please tell me the query of sql server 2005.<br />
it will b great full.</p>
<p>[email removed]<br />
mail me plz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sekhar</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-103518</link>
		<dc:creator><![CDATA[sekhar]]></dc:creator>
		<pubDate>Fri, 03 Dec 2010 03:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-103518</guid>
		<description><![CDATA[send me some tips and material to my mail please]]></description>
		<content:encoded><![CDATA[<p>send me some tips and material to my mail please</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anima003</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-40894</link>
		<dc:creator><![CDATA[Anima003]]></dc:creator>
		<pubDate>Mon, 28 Jul 2008 09:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-40894</guid>
		<description><![CDATA[Really useful!!!
Thx!!!]]></description>
		<content:encoded><![CDATA[<p>Really useful!!!<br />
Thx!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-31919</link>
		<dc:creator><![CDATA[abhishek]]></dc:creator>
		<pubDate>Wed, 09 Jan 2008 11:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-31919</guid>
		<description><![CDATA[Table: 

TableA

Columns: 

Column1

Column2

Column3

Column4

Indexes

Column1 – Simple individual Index

Column2 – Simple individual Index

Query

1. SELECT * FROM TABLEA WHERE COLUMN1=’A’ AND COLUMN2=’B’

2. SELECT * FROM TABLEA WHERE COLUMN2=’B’ AND COLUMN1=’A’

3. SELECT * FROM TABLEA WHERE COLUMN1=’A’ AND COLUMN3=’B’

4. SELECT * FROM TABLEA WHERE COLUMN2=’A’ AND COLUMN4=’B’

 

could you pleasetell me which indexes use in case (queries.)
or both are equally important.?

is the other individual index useless and should be deleted?]]></description>
		<content:encoded><![CDATA[<p>Table: </p>
<p>TableA</p>
<p>Columns: </p>
<p>Column1</p>
<p>Column2</p>
<p>Column3</p>
<p>Column4</p>
<p>Indexes</p>
<p>Column1 – Simple individual Index</p>
<p>Column2 – Simple individual Index</p>
<p>Query</p>
<p>1. SELECT * FROM TABLEA WHERE COLUMN1=’A’ AND COLUMN2=’B’</p>
<p>2. SELECT * FROM TABLEA WHERE COLUMN2=’B’ AND COLUMN1=’A’</p>
<p>3. SELECT * FROM TABLEA WHERE COLUMN1=’A’ AND COLUMN3=’B’</p>
<p>4. SELECT * FROM TABLEA WHERE COLUMN2=’A’ AND COLUMN4=’B’</p>
<p>could you pleasetell me which indexes use in case (queries.)<br />
or both are equally important.?</p>
<p>is the other individual index useless and should be deleted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Hameed</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-27406</link>
		<dc:creator><![CDATA[Mohammad Hameed]]></dc:creator>
		<pubDate>Thu, 20 Dec 2007 14:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-27406</guid>
		<description><![CDATA[Hi,

Sorry, I should have checked other articles before posting my question.  

Thanks again

Mohammad]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Sorry, I should have checked other articles before posting my question.  </p>
<p>Thanks again</p>
<p>Mohammad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Hameed</title>
		<link>http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-27397</link>
		<dc:creator><![CDATA[Mohammad Hameed]]></dc:creator>
		<pubDate>Thu, 20 Dec 2007 14:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/18/sql-server-get-information-of-index-of-tables-and-indexed-columns/#comment-27397</guid>
		<description><![CDATA[Hi,

Yes these king of small tips are helpful.  I have a question of my own though it has to do with system tables containing information about user defined tables.  

If I want to find the number of columns in a user defined table, can i do it with a simple select statement, or do i have to manually go in each table and count it?

I hope you will answer this question at the earliest possible

Regards

Mohammad]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes these king of small tips are helpful.  I have a question of my own though it has to do with system tables containing information about user defined tables.  </p>
<p>If I want to find the number of columns in a user defined table, can i do it with a simple select statement, or do i have to manually go in each table and count it?</p>
<p>I hope you will answer this question at the earliest possible</p>
<p>Regards</p>
<p>Mohammad</p>
]]></content:encoded>
	</item>
</channel>
</rss>
