<?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: Connection String for SQLAlchemy-SQLAny api in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/connection-string-for-sqlalchemy-sqlany-api/qaa-p/13845683#M4876526</link>
    <description>&lt;P&gt;I figured this out. The following worked:&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;eng=sql.create_engine(url,connect_args={'dbf': "D:\\\\database_file_path.db", 
'ServerName':'MyServer'} 
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Oct 2014 12:11:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-10T12:11:50Z</dc:date>
    <item>
      <title>Connection String for SQLAlchemy-SQLAny api</title>
      <link>https://community.sap.com/t5/technology-q-a/connection-string-for-sqlalchemy-sqlany-api/qaq-p/13845682</link>
      <description>&lt;P&gt;I am trying to connect to SQLAnywhere using the SQLAlchemy-SQLAny dialect for python. Here is my connection string format:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;url="sqlalchemy_sqlany://user:pwd@localhost/D:\\database_file_path.db?ServerName=MyServer"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here I want to connect to SQLAnywhere using a service named "MyServer" setup in my computer. But I get the following error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;sqlalchemy.exc.OperationalError: (OperationalError) Specified database not found None None&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Though I am able to connect using the raw sqlanydb python api as:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;conn=sqlanydb.connect(UserID="user",Password="pwd",DatabaseFile="D:\\database_file_path.db",ServerName="MyServer")&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I just want to use the same with SQLAlchemy. Any help would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connection-string-for-sqlalchemy-sqlany-api/qaq-p/13845682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-09T16:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connection String for SQLAlchemy-SQLAny api</title>
      <link>https://community.sap.com/t5/technology-q-a/connection-string-for-sqlalchemy-sqlany-api/qaa-p/13845683#M4876526</link>
      <description>&lt;P&gt;I figured this out. The following worked:&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;eng=sql.create_engine(url,connect_args={'dbf': "D:\\\\database_file_path.db", 
'ServerName':'MyServer'} 
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connection-string-for-sqlalchemy-sqlany-api/qaa-p/13845683#M4876526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-10T12:11:50Z</dc:date>
    </item>
  </channel>
</rss>

