<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.hydrussoftware.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>John&amp;#39;s Brain Dump - All Comments</title><link>http://community.hydrussoftware.com/blogs/john/default.aspx</link><description>All the technical gyrations I go through to build software, so I don&amp;#39;t forget them and others can benefit from them.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: 5 Reasons to use Indexed Views</title><link>http://community.hydrussoftware.com/blogs/john/archive/2005/11/23/5-reasons-to-use-indexed-views.aspx#652</link><pubDate>Wed, 30 Jul 2008 14:23:12 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:652</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Fred,&lt;/p&gt;
&lt;p&gt;On your first question, I&amp;#39;m not exactly sure how to answer without seeing your actual tables &amp;amp; queries. &amp;nbsp;Based on what you&amp;#39;ve said, I don&amp;#39;t think that you need a new index on your second view. &amp;nbsp;Linking customer ID from your indexed view to the customers table should be a trivial operation that won&amp;#39;t benefit much from using an indexed view, so I wouldn&amp;#39;t worry about putting an index on the second view.&lt;/p&gt;
&lt;p&gt;On your second question, you should be able to request the second view. &amp;nbsp;If implemented according to my article, your second view will reference the first (indexed) view, so your query will gain the benefit of the view index.&lt;/p&gt;
&lt;p&gt;Hope that helps! &amp;nbsp;Keep the questions coming.&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=652" width="1" height="1"&gt;</description></item><item><title>re: 5 Reasons to use Indexed Views</title><link>http://community.hydrussoftware.com/blogs/john/archive/2005/11/23/5-reasons-to-use-indexed-views.aspx#651</link><pubDate>Wed, 30 Jul 2008 12:41:21 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:651</guid><dc:creator>frederic_eynard</dc:creator><description>&lt;p&gt;[comment moved from my old blog]&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Thanks for your article.&lt;/p&gt;
&lt;p&gt;I tried to apply your solution, but I encountered some difficulties. &lt;/p&gt;
&lt;p&gt;To Summary, I have 3 tables: date, customer and order table. In the first one, I have the YEAR column ( to simplify.. ) the second one, I have the cust_id, first name, last name. And the last one, I have a ref to date table, a ref to customer table, and a ORDER_AMOUNT column.&lt;/p&gt;
&lt;p&gt;I have created a first index on YEAR, SUM(ORDER_AMOUNT), CUST_ID.&lt;/p&gt;
&lt;p&gt;This works fine. The sql optimizer uses my index. &lt;/p&gt;
&lt;p&gt;I try to use your method to get the customer name with the previous result.&lt;/p&gt;
&lt;p&gt;So I created a new view as mentioned in your articles. But after that, I did not able to create the new index, because on sqlserver 2005, the index can not be created on a view.&lt;/p&gt;
&lt;p&gt;The other question I have. If you want to obtain YEAR, SUM(ORDER_AMOUNT), CUST_ID and LASTNAME, do You need to make the request directly on your second view or do you leave the SQL optimizer rewrite the query?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Fred&lt;/p&gt;&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=651" width="1" height="1"&gt;</description></item><item><title>NDoc 2.0 is (Not Quite) Dead! </title><link>http://community.hydrussoftware.com/blogs/john/archive/2006/07/26/ndoc-2-0-is-dead.aspx#643</link><pubDate>Wed, 23 Jul 2008 20:59:01 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:643</guid><dc:creator>John's Brain Dump</dc:creator><description>&lt;p&gt;Many of you were saddened by the news that Kevin Downs quit development on NDoc , the .NET documentation&lt;/p&gt;
&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=643" width="1" height="1"&gt;</description></item><item><title>re: 5 Reasons to use Indexed Views</title><link>http://community.hydrussoftware.com/blogs/john/archive/2005/11/23/5-reasons-to-use-indexed-views.aspx#636</link><pubDate>Tue, 15 Jul 2008 18:15:42 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:636</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You're right Ryan--the second query couldn't be indexed. &amp;nbsp;But I'm not suggesting that the second query be indexed. &amp;nbsp;In order for this example to work, you'll need both views. &amp;nbsp;(Sorry if that's not clear.)&lt;/p&gt;
&lt;p&gt;The first view (vwAccountTransactionBalance_Indexed) is the indexed view, where your performance gains are made. &amp;nbsp;The second view (vwAccountTransactionBalance&lt;/p&gt;
&lt;p&gt;) uses the first view and includes the LEFT JOIN to ensure that no accounts are missed because they have no transactions. &amp;nbsp;The second view also ensures that you're using the index on your view by specifying the (NOEXPAND) hint.&lt;/p&gt;
&lt;p&gt;You should always use the second view in your application queries, and you'll get the benefit of the index on the first view.&lt;/p&gt;
&lt;p&gt;I hope that clears things up!&lt;/p&gt;
&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=636" width="1" height="1"&gt;</description></item><item><title>re: 5 Reasons to use Indexed Views</title><link>http://community.hydrussoftware.com/blogs/john/archive/2005/11/23/5-reasons-to-use-indexed-views.aspx#635</link><pubDate>Tue, 15 Jul 2008 17:51:48 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:635</guid><dc:creator>Ryan</dc:creator><description>&lt;p&gt;You would not be able to index the second query in #4, because of the LEFT JOIN.&lt;/p&gt;&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=635" width="1" height="1"&gt;</description></item><item><title>re: Finding the Current and Last Page Numbers of a Crystal Report in ASP.NET 1.1</title><link>http://community.hydrussoftware.com/blogs/john/archive/2006/06/15/finding-the-current-and-last-page-numbers-of-a-crystal-report-in-asp-net-1-1.aspx#521</link><pubDate>Tue, 04 Dec 2007 16:19:03 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:521</guid><dc:creator>Gosvami</dc:creator><description>I found this solution looking for something else:

[code]
CrystalDecisions.Web.ViewInfo vi = crViewer.ViewInfo;

pagenum.Text = vi.PageNumber + &amp;quot; of &amp;quot; + vi.LastPageNumber;

[end code]


URL of the forum:
&amp;quot;http://forums.asp.net/p/1078417/1589473.aspx#1589473&amp;quot;

it almost worked. I tried putting the code inside the init, or in the page_load, but it displays the correct last_page, only if you navigate manually to the 2nd page. 

I hope it can help someone else to find a best solution...&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=521" width="1" height="1"&gt;</description></item><item><title>re: Code Formatter for Windows Live Writer</title><link>http://community.hydrussoftware.com/blogs/john/archive/2007/03/08/code-formatter-for-windows-live-writer.aspx#500</link><pubDate>Tue, 02 Oct 2007 18:19:29 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:500</guid><dc:creator>Steve Dunn</dc:creator><description>Hi,  version 1.0.0.3 is now available with more languages and compatible with the latest beta of Windows Live Writer.  Cheers,

Steve&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=500" width="1" height="1"&gt;</description></item><item><title>re: TableAdapterManager in ADO.NET Orcas</title><link>http://community.hydrussoftware.com/blogs/john/archive/2007/05/01/tableadaptermanager-in-ado-net-orcas.aspx#363</link><pubDate>Wed, 08 Aug 2007 19:48:38 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:363</guid><dc:creator>Andrey Titov</dc:creator><description>&lt;p&gt;thanks, good review&lt;/p&gt;&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=363" width="1" height="1"&gt;</description></item><item><title>re: Finding the Current and Last Page Numbers of a Crystal Report in ASP.NET 1.1</title><link>http://community.hydrussoftware.com/blogs/john/archive/2006/06/15/finding-the-current-and-last-page-numbers-of-a-crystal-report-in-asp-net-1-1.aspx#330</link><pubDate>Mon, 04 Jun 2007 09:43:56 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:330</guid><dc:creator>Michael Yousupov</dc:creator><description>&lt;p&gt;I Can not Find the Current , Last Page Number and sum pages &amp;nbsp;in &amp;nbsp;a Crystal Report in ASP.NET 1.1 &lt;/p&gt;
&lt;p&gt;If someone can help me I will be gratefull?&lt;/p&gt;&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=330" width="1" height="1"&gt;</description></item><item><title>re: GMail vs. Windows Live Mail</title><link>http://community.hydrussoftware.com/blogs/john/archive/2006/08/28/gmail-vs-windows-live-mail.aspx#298</link><pubDate>Sat, 02 Jun 2007 01:28:15 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:298</guid><dc:creator>s</dc:creator><description>gmail is very nice except for one HIGHLY annoying (to me) feature called conversations.  it actually drove me to live mail, which I have never used (or hotmail for that matter).  The only things that keeping me with gmail is that you can access it via pop3 in outlook, and the hope that gmail will allow you to turn the conversation feature off.  if it wasn&amp;#39;t for the pop3 access I would ditch it immediately.  Some people really like conversations, but to me they utterly confuse my inbox.&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=298" width="1" height="1"&gt;</description></item><item><title>re: TableAdapterManager in ADO.NET Orcas</title><link>http://community.hydrussoftware.com/blogs/john/archive/2007/05/01/tableadaptermanager-in-ado-net-orcas.aspx#47</link><pubDate>Tue, 01 May 2007 21:45:20 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:47</guid><dc:creator>John</dc:creator><description>&lt;p&gt;John, don't forget that with the DST you not only get this functionality now, but supported in 1.1 framework as well.&lt;/p&gt;
&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=47" width="1" height="1"&gt;</description></item><item><title>TableAdapterManager in ADO.NET Orcas</title><link>http://community.hydrussoftware.com/blogs/john/archive/2007/05/01/tableadaptermanager-in-ado-net-orcas.aspx#48</link><pubDate>Tue, 01 May 2007 20:32:21 GMT</pubDate><guid isPermaLink="false">c2db566d-197c-4b54-a525-68e4f5f6e16d:48</guid><dc:creator>TrackBack</dc:creator><description>&lt;p&gt;TableAdapterManager in ADO.NET Orcas&lt;/p&gt;
&lt;img src="http://community.hydrussoftware.com/aggbug.aspx?PostID=48" width="1" height="1"&gt;</description></item></channel></rss>