<?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=351354&amp;view=findpost&amp;p=3085672</guid>
        <pubDate>Mon, 27 Feb 2012 14:47:08 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3085672</link>
        <description><![CDATA[NetVir: <a class='tag-url' href='http://msdn.microsoft.com/en-us/library/aa288452(v=vs.71).aspx' target='_blank'>OLE DB Tutorial</a>]]></description>
        <author>NetVir</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080246</guid>
        <pubDate>Fri, 17 Feb 2012 19:34:39 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080246</link>
        <description><![CDATA[Patrool: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=351354&view=findpost&p=3080227'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>kanes &#064; <time class="tag-quote__quoted-time" datetime="2012-02-17T18:38:40+00:00">17.02.12, 18:38</time></span><div class='quote '>Слешы в connectionString не те. должны быть &#092; </div></div><br>
<br>
Поменял, не помогло, ошибка та же]]></description>
        <author>Patrool</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080227</guid>
        <pubDate>Fri, 17 Feb 2012 18:38:40 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080227</link>
        <description><![CDATA[kanes: Слешы в connectionString не те. должны быть &#092;]]></description>
        <author>kanes</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080148</guid>
        <pubDate>Fri, 17 Feb 2012 14:24:11 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080148</link>
        <description><![CDATA[Patrool: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=351354&view=findpost&p=3080102'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>coder &#064; <time class="tag-quote__quoted-time" datetime="2012-02-17T12:30:01+00:00">17.02.12, 12:30</time></span><div class='quote '>Там текст ошибки &quot;Неопознанная ошибка&quot; или что-то другой?<br>
Можеть быть в задании пути файла неправильный слэш (&#092;&#092;) поставили? </div></div><br>
<br>
<br>
вот что пишет<br>
&quot;System.Data.OleDb.OleDbException не обработано<br>
  Message=Неопознанная ошибка<br>
  Source=Microsoft JET Database Engine<br>
  ErrorCode=-2147467259&quot;<br>
<br>
слеши вроде те]]></description>
        <author>Patrool</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080102</guid>
        <pubDate>Fri, 17 Feb 2012 12:30:01 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080102</link>
        <description><![CDATA[coder: Там текст ошибки &quot;Неопознанная ошибка&quot; или что-то другой?<br>Можеть быть в задании пути файла неправильный слэш (&#092;&#092;) поставили?]]></description>
        <author>coder</author>
        <category>.NET: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080090</guid>
        <pubDate>Fri, 17 Feb 2012 11:46:57 +0000</pubDate>
        <title>Неопознанная ошибка соединения с бд</title>
        <link>https://forum.sources.ru/index.php?showtopic=351354&amp;view=findpost&amp;p=3080090</link>
        <description><![CDATA[Patrool: Вижал выдаёт неопознанную ошибку в данном коде:<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;string sql = &quot;SELECT * FROM WORDS&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string connectionString;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;@&quot;Data Source= D:/бд/english.mdb&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbConnection connection = new OleDbConnection(connectionString);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !!! connection.Open();!!!</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbCommand command = new OleDbCommand(sql, connection);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbDataReader dataReader = command.ExecuteReader();</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
&#33;&#33;&#33; выделено место ошибки. <br>
<br>
полный код тут<br>
<div class="tag-spoiler spoiler closed"><div class="spoiler_header" onclick="openCloseParent(this)">Скрытый текст</div><div class="body"><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">using System;</div><div class="code_line">using System.Collections.Generic;</div><div class="code_line">using System.ComponentModel;</div><div class="code_line">using System.Data;</div><div class="code_line">using System.Drawing;</div><div class="code_line">using System.Linq;</div><div class="code_line">using System.Text;</div><div class="code_line">using System.Windows.Forms;</div><div class="code_line">using System.Data.OleDb;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">namespace Diplom</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;public partial class Form1 : Form</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;public Form1()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;InitializeComponent();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbacces.acces();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;public class dbacces</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;public static void acces()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//список для английских слов</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List&#60;string&#62; englw = new List&#60;string&#62;();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Формируем запрос к базе данных -</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// считываем английские слова</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string sql = &quot;SELECT * FROM WORDS&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string connectionString;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;@&quot;Data Source= D:/бд/english.mdb&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbConnection connection = new OleDbConnection(connectionString);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connection.Open();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbCommand command = new OleDbCommand(sql, connection);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OleDbDataReader dataReader = command.ExecuteReader();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Организуем циклический перебор полученных записей</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Заносим слова в список</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (dataReader.Read())</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;englw.Add(dataReader[&quot;Englwords&quot;].ToString());</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form1 Sform1 = new Form1();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sform1.button1.Text = englw[1];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Очистка</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dataReader.Close();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connection.Close();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; </div><div class="code_line">}</div></ol></div></div></div></div></div></div><br>
<br>
В чём проблема? по-мимо кривых рук конечно=)]]></description>
        <author>Patrool</author>
        <category>.NET: Базы данных</category>
      </item>
	
      </channel>
      </rss>
	