<?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; 2008 &#8211; Interview Questions and Answers &#8211; Part 4</title>
	<atom:link href="http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Raghul</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-247444</link>
		<dc:creator><![CDATA[Raghul]]></dc:creator>
		<pubDate>Fri, 03 Feb 2012 11:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-247444</guid>
		<description><![CDATA[@rafi.tdata
SELECT MAX(column_name) FROM table_name]]></description>
		<content:encoded><![CDATA[<p>@rafi.tdata<br />
SELECT MAX(column_name) FROM table_name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rafi.tdata@gmail.com</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-137205</link>
		<dc:creator><![CDATA[rafi.tdata@gmail.com]]></dc:creator>
		<pubDate>Sat, 28 May 2011 14:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-137205</guid>
		<description><![CDATA[i have three columns like 

stno  stmar1  stmar2  stmar3

01         65        90        99
02         90       100       65
03         03         90       100
04         99         20       22


in this table i want max marks of top 3 student information

please solve this problem]]></description>
		<content:encoded><![CDATA[<p>i have three columns like </p>
<p>stno  stmar1  stmar2  stmar3</p>
<p>01         65        90        99<br />
02         90       100       65<br />
03         03         90       100<br />
04         99         20       22</p>
<p>in this table i want max marks of top 3 student information</p>
<p>please solve this problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: levpius</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-122707</link>
		<dc:creator><![CDATA[levpius]]></dc:creator>
		<pubDate>Thu, 10 Mar 2011 17:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-122707</guid>
		<description><![CDATA[I like your solution though it was kind of already put by Pinal

SELECT COUNT(1) AS number_of_records
FROM tabla]]></description>
		<content:encoded><![CDATA[<p>I like your solution though it was kind of already put by Pinal</p>
<p>SELECT COUNT(1) AS number_of_records<br />
FROM tabla</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kadir Evciler</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-103597</link>
		<dc:creator><![CDATA[Kadir Evciler]]></dc:creator>
		<pubDate>Fri, 03 Dec 2010 14:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-103597</guid>
		<description><![CDATA[I think this is the best way to count of any 
table (It&#039;s in sp_spaceused code)

SELECT   SUM (CASE  WHEN (index_id&lt;2) THEN row_count ELSE 0 END) FROM sys.dm_db_partition_stats   WHERE object_id = OBJECT_ID(&#039;Table&#039;)

Regards]]></description>
		<content:encoded><![CDATA[<p>I think this is the best way to count of any<br />
table (It&#8217;s in sp_spaceused code)</p>
<p>SELECT   SUM (CASE  WHEN (index_id&lt;2) THEN row_count ELSE 0 END) FROM sys.dm_db_partition_stats   WHERE object_id = OBJECT_ID(&#039;Table&#039;)</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-84369</link>
		<dc:creator><![CDATA[Manish]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 07:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-84369</guid>
		<description><![CDATA[Try

SELECT rows FROM sysindexes WHERE id = OBJECT_ID(&#039;table1&#039;) AND indid &lt; 2

Thanks
Manish]]></description>
		<content:encoded><![CDATA[<p>Try</p>
<p>SELECT rows FROM sysindexes WHERE id = OBJECT_ID(&#8216;table1&#8242;) AND indid &lt; 2</p>
<p>Thanks<br />
Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudarshan</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-82999</link>
		<dc:creator><![CDATA[Sudarshan]]></dc:creator>
		<pubDate>Wed, 04 Aug 2010 13:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-82999</guid>
		<description><![CDATA[SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid &lt; 2

Did not work.
can u guide to me for this?]]></description>
		<content:encoded><![CDATA[<p>SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid &lt; 2</p>
<p>Did not work.<br />
can u guide to me for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions &#38; Answers Needs Your Help Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-63214</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions &#38; Answers Needs Your Help Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 01:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-63214</guid>
		<description><![CDATA[[...] SQL SERVER – 2008 – Interview Questions and Answers – Part 4 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – 2008 – Interview Questions and Answers – Part 4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete blackwell</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-55353</link>
		<dc:creator><![CDATA[pete blackwell]]></dc:creator>
		<pubDate>Fri, 28 Aug 2009 17:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-55353</guid>
		<description><![CDATA[Just an idea question if you don&#039;t mind providing your insight.  

We have an application which several regular processing jobs.  Each job may call any number of programs which individually update the database. 

Periodically, one of these programs may fail, so we want to put the database back to the state it was before any of the programs in the job ran.  Since they are separate programs we can&#039;t use a transaction.

The only way I know how to do this is to backup the db prior to the job starting, or recover using the a prior backup the and associated log file.

Is there a way to mark the db as it is at a given time, and then rollback to that point without involvement of a database backup?  I was hoping if full logging was on that this would be possible, but I don&#039;t see anything that would help with this.

If you reply, could you please send reply to my email address (you can post it as well if you wish)?

Thanks much,
Pete Blackwell]]></description>
		<content:encoded><![CDATA[<p>Just an idea question if you don&#8217;t mind providing your insight.  </p>
<p>We have an application which several regular processing jobs.  Each job may call any number of programs which individually update the database. </p>
<p>Periodically, one of these programs may fail, so we want to put the database back to the state it was before any of the programs in the job ran.  Since they are separate programs we can&#8217;t use a transaction.</p>
<p>The only way I know how to do this is to backup the db prior to the job starting, or recover using the a prior backup the and associated log file.</p>
<p>Is there a way to mark the db as it is at a given time, and then rollback to that point without involvement of a database backup?  I was hoping if full logging was on that this would be possible, but I don&#8217;t see anything that would help with this.</p>
<p>If you reply, could you please send reply to my email address (you can post it as well if you wish)?</p>
<p>Thanks much,<br />
Pete Blackwell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-53609</link>
		<dc:creator><![CDATA[Kumar]]></dc:creator>
		<pubDate>Fri, 10 Jul 2009 12:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-53609</guid>
		<description><![CDATA[Hi,

I want to check the expiration date of sql server 2008 evaluation copy.  And also want to verify the licenesed version of sql server 2008 standard edition&#039;s validity period.

please guide me.

Expecting your reply.

Regards
Kumar.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to check the expiration date of sql server 2008 evaluation copy.  And also want to verify the licenesed version of sql server 2008 standard edition&#8217;s validity period.</p>
<p>please guide me.</p>
<p>Expecting your reply.</p>
<p>Regards<br />
Kumar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sri</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-52468</link>
		<dc:creator><![CDATA[sri]]></dc:creator>
		<pubDate>Wed, 27 May 2009 08:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-52468</guid>
		<description><![CDATA[hi pinal 

 This  site is very nice...lot of information is there ..
 if it possible plz provide printer friendly option]]></description>
		<content:encoded><![CDATA[<p>hi pinal </p>
<p> This  site is very nice&#8230;lot of information is there ..<br />
 if it possible plz provide printer friendly option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-52114</link>
		<dc:creator><![CDATA[Leo]]></dc:creator>
		<pubDate>Wed, 20 May 2009 14:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-52114</guid>
		<description><![CDATA[4 way to get an accurate count of the number of records in a table:
SELECT     COUNT(1) AS number_of_records
FROM   tabla]]></description>
		<content:encoded><![CDATA[<p>4 way to get an accurate count of the number of records in a table:<br />
SELECT     COUNT(1) AS number_of_records<br />
FROM   tabla</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Red Bull</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-43439</link>
		<dc:creator><![CDATA[Red Bull]]></dc:creator>
		<pubDate>Wed, 01 Oct 2008 19:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-43439</guid>
		<description><![CDATA[I guess there is a type mistake in this, instead of @@ROWCOUNT, @@Recordcount is mentioned.]]></description>
		<content:encoded><![CDATA[<p>I guess there is a type mistake in this, instead of @@ROWCOUNT, @@Recordcount is mentioned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-43258</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Thu, 25 Sep 2008 20:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-43258</guid>
		<description><![CDATA[Hi Pinal

Want to clarify, you wrote
Enterprise Editions only supports log shipping.

Standard editions also support log shipping (and mirroring) as well]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>Want to clarify, you wrote<br />
Enterprise Editions only supports log shipping.</p>
<p>Standard editions also support log shipping (and mirroring) as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar amit</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-43246</link>
		<dc:creator><![CDATA[kumar amit]]></dc:creator>
		<pubDate>Thu, 25 Sep 2008 12:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-43246</guid>
		<description><![CDATA[pl send me on this mail id.
thanks
Regards;
amit;]]></description>
		<content:encoded><![CDATA[<p>pl send me on this mail id.<br />
thanks<br />
Regards;<br />
amit;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers Complete List Download Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/09/15/sql-server-2008-interview-questions-and-answers-part-4/#comment-43100</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers Complete List Download Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Mon, 22 Sep 2008 07:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=995#comment-43100</guid>
		<description><![CDATA[[...] SQL SERVER - 2008 - Interview Questions and Answers - Part 4 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; 2008 &#8211; Interview Questions and Answers &#8211; Part 4 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

