<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841395</guid>
        <pubDate>Sun, 20 Jan 2008 08:40:04 +0000</pubDate>
        <title>C# и ADO</title>
        <link>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841395</link>
        <description><![CDATA[(~Lapa~): Большое спасибо&#33; :)]]></description>
        <author>(~Lapa~)</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841350</guid>
        <pubDate>Sun, 20 Jan 2008 07:01:05 +0000</pubDate>
        <title>C# и ADO</title>
        <link>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841350</link>
        <description><![CDATA[GarF1eld: привычка :)]]></description>
        <author>GarF1eld</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841241</guid>
        <pubDate>Sat, 19 Jan 2008 22:00:46 +0000</pubDate>
        <title>C# и ADO</title>
        <link>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841241</link>
        <description><![CDATA[Leprecon: <strong class='tag-b'>GarF1eld</strong>, а зачем в finally conn.Close(), если ты и так using используешь?]]></description>
        <author>Leprecon</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841181</guid>
        <pubDate>Sat, 19 Jan 2008 20:37:13 +0000</pubDate>
        <title>C# и ADO</title>
        <link>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841181</link>
        <description><![CDATA[GarF1eld: ну где-то так: <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const string cmdText = &quot;SELECT MAX (ID_Project) FROM SProject&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int max = 0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;using (OleDbConnection conn = new OleDbConnection(&quot;...&quot;))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbCommand cmd = new OleDbCommand(cmdText, conn);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;conn.Open();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max = (int)cmd.ExecuteScalar();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;max = -1;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;finally</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;conn.Close();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>GarF1eld</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841151</guid>
        <pubDate>Sat, 19 Jan 2008 19:58:49 +0000</pubDate>
        <title>C# и ADO</title>
        <link>https://forum.sources.ru/index.php?showtopic=219769&amp;view=findpost&amp;p=1841151</link>
        <description><![CDATA[(~Lapa~): Кто-нибудь подскажите пожалуйста, как из таблицы базы Access отыскать допустим максимальный ID и присвоить переменной?<br>
Смогла додуматься только вот до этого:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;OleDbCommand q = new OleDbCommand(&quot;SELECT MAX (ID_Project) FROM SProject&quot;, conn);</div></ol></div></div></div></div><br>
А дальше как не знаю..]]></description>
        <author>(~Lapa~)</author>
        <category>.NET: Базы данных</category>
      </item>
	
      </channel>
      </rss>
	