<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SQL Anywhere Help - Connection String Error? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849230#M4880073</link>
    <description>&lt;P&gt;Yes, I am using .net. Any chance you can provide the connection string using DbConnection?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Todd&lt;/P&gt;</description>
    <pubDate>Sun, 02 Oct 2011 22:19:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-02T22:19:01Z</dc:date>
    <item>
      <title>SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaq-p/13849223</link>
      <description>&lt;P&gt;I'm trying to connect to an SQL Anywhere database on the network.&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Here is the connections string:
&lt;/P&gt;&lt;PRE&gt;MICROS&amp;amp;Provider=SAOLEDB.11;UID=custom;PWD=custom;ENG=sqlmicros1;CON=SQL_DBC_190f07d8;LINKS='TCPIP(IP=10.4.0.40;PORT=2638)'
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here is the error I'm getting.&lt;/P&gt;
&lt;PRE&gt;See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.OleDb.OleDbException (0x80040E4D): Connection error: Found server but communication error occurred
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Oct 2011 11:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaq-p/13849223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-02T11:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849229#M4880072</link>
      <description>&lt;P&gt;More diagnostic information might help; see &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/network-s-3532726.html"&gt;http://dcx.sybase.com/index.html#1201/en/dbadmin/network-s-3532726.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 15:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849229#M4880072</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-10-02T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849224#M4880067</link>
      <description>&lt;P&gt;Try using DbConnection, it's better than OLEDB.&lt;/P&gt;
&lt;P&gt;I'm presuming that you are using .net .&lt;/P&gt;
&lt;P&gt;EDIT: &lt;/P&gt;
&lt;P&gt;sample
connectionString="uid=DBA;pwd=sql;ServerName=DemoDB;links=tcpip(host=my.server.name;port=5577)"&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 21:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849224#M4880067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-02T21:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849230#M4880073</link>
      <description>&lt;P&gt;Yes, I am using .net. Any chance you can provide the connection string using DbConnection?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Todd&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 22:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849230#M4880073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-02T22:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849225#M4880068</link>
      <description>&lt;P&gt;You should be able to feed the connection string to the &lt;STRONG&gt;SAConnection class&lt;/STRONG&gt; (which is a spezialized type of the generic .Net DBConnection class), either as a common connetion string, or with the help of the &lt;STRONG&gt;SAConnectionStringBuilder class&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I haven't used this myself, but the handling seems quite easy...look at that &lt;A href="http://dcx.sybase.com/1101/en/dbprogramming_en11/connecting-adodotnet-development.html"&gt;doc page&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 07:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849225#M4880068</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-10-03T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849231#M4880074</link>
      <description>&lt;P&gt;see my response again &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849231#M4880074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-03T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849226#M4880069</link>
      <description>&lt;P&gt;Why are you specifying a connection name ("CON=SQL_DBC_190f07d8"), especially one which looks very similar to the names generated automatically?&lt;/P&gt;
&lt;P&gt;If a connection with that name already exists, you are creating your own conflict in naming.&lt;/P&gt;
&lt;P&gt;Try omitting the CON= parameter and see if your problem goes away with it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 10:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849226#M4880069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-04T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849232#M4880075</link>
      <description>&lt;P&gt;AFAIK there's no rule against duplicate connection names, and SQL Anywhere certainly doesn't check for uniqueness. Maybe some application or other might get confused if it's expecting uniqueness but that would not explain the symptom here... IMO anyway. FWIW I just successfully created 10 dbisql sessions all with CON=SQL_DBC_190f07d8... the title bars all say exactly the same thing "SQL_DBC_190f07d8 - Interactive SQL"&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 11:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849232#M4880075</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-10-04T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849227#M4880070</link>
      <description>&lt;P&gt;May this be related to .NET Connection pooling?&lt;/P&gt;
&lt;P&gt;Once you have tried to use the native SQL Anywhere data provider (see my other answer), you might try whether the enabling/disabling of &lt;A href="http://dcx.sybase.com/index.html#1101/en/dbprogramming_en11/connection-pooling-dotnet-dev.html"&gt;connection pooling&lt;/A&gt; will have an influence.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849227#M4880070</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-10-04T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849233#M4880076</link>
      <description>&lt;P&gt;Dang, putting my ignorance out there is getting educational!&lt;/P&gt;
&lt;P&gt;I never realized that the connection names aren't unique. That is interesting -- not terribly useful, but definitely interesting in a "I wouldn't do it that way" sense.&lt;/P&gt;
&lt;P&gt;Thank you for the correction, Breck.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 13:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849233#M4880076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-04T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Help - Connection String Error?</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849228#M4880071</link>
      <description>&lt;P&gt;Generically, "Connection error: Found server but communication error occurred" means just what the message implies - the connection library was able to find the targeted server name via UDP broadcasting (e.g. "sqlmicros1"), but couldn't make an active TCP connection to it (over "10.4.0.40:2638").&lt;/P&gt;
&lt;P&gt;Are you sure that the "sqlmicros1" database server is running on that IP/port? Can you check &lt;A href="http://dcx.sybase.com/index.html#1101/en/dbadmin_en11/dblocate-server-dbutilities.html"&gt;dblocate 10.4.0.40&lt;/A&gt; to see if it can see this server as well? Can you add the connection option &lt;A href="http://dcx.sybase.com/index.html#1101/en/dbadmin_en11/logfileparameter.html"&gt;"LOG=c:\\connlog.txt"&lt;/A&gt; to the connection string, and review the resulting log to check how the client is attempting to contact this server?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 13:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-help-connection-string-error/qaa-p/13849228#M4880071</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2011-10-04T13:52:01Z</dc:date>
    </item>
  </channel>
</rss>

