<?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>topic Re: DSN Less ODBC Connection in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76092#M8287</link>
    <description>Hi Karl&lt;BR /&gt;
Got it sorted but I'm just in the office...those typos!!. You &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;can&lt;E&gt;&lt;/E&gt; do a standard dsn less connection...its just that I copied the connection string example from the help file which is "V1.0" not "V10.0" and so it went under the radar for a little while.&lt;BR /&gt;
This codes works well for auto dsn generation when attached to the form open command;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.vbforums.com/showthread.php?t=358864" target="_blank"&gt;http://www.vbforums.com/showthread.php?t=358864&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and its quite terse. I discovered also that there is direct registry editing throught the getsettings of vba. More than one way to skin an archicat!&lt;BR /&gt;
Standard ADO with connection string is by far the best alternative though.&lt;BR /&gt;
Regs&lt;BR /&gt;
Mark</description>
    <pubDate>Tue, 06 Nov 2007 22:20:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-11-06T22:20:25Z</dc:date>
    <item>
      <title>DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76088#M8283</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello All&lt;BR /&gt;Is it possible to connect the AC ODBC dsn-less? Does anyone have an example or suggest a resource?&lt;BR /&gt;Many thanks&lt;BR /&gt;Mark&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:05:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76088#M8283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T08:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76089#M8284</link>
      <description>&lt;BLOCKQUOTE&gt;image_engine wrote:&lt;BR /&gt;Hello All&lt;BR /&gt;
Is it possible to connect the AC ODBC dsn-less? &lt;/BLOCKQUOTE&gt;

Not to my knowledge.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Tue, 06 Nov 2007 03:08:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76089#M8284</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2007-11-06T03:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76090#M8285</link>
      <description>Thanks Karl&lt;BR /&gt;
Makes it pretty messy with large number of projects without programatic access.&lt;BR /&gt;
Regs&lt;BR /&gt;
Mark</description>
      <pubDate>Tue, 06 Nov 2007 03:11:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76090#M8285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-06T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76091#M8286</link>
      <description>&lt;BLOCKQUOTE&gt;image_engine wrote:&lt;BR /&gt;Thanks Karl&lt;BR /&gt;
Makes it pretty messy with large number of projects without programatic access.&lt;BR /&gt;
Regs&lt;BR /&gt;
Mark&lt;/BLOCKQUOTE&gt;

You're welcome; and I agree.&lt;BR /&gt;
&lt;BR /&gt;
I just did a Google on 'programmatic system dsn' and among other things came up with this:&lt;BR /&gt;
&lt;A href="http://www.databasejournal.com/features/mssql/article.php/1491051" target="_blank"&gt;&lt;LINK_TEXT text="http://www.databasejournal.com/features ... hp/1491051"&gt;http://www.databasejournal.com/features/mssql/article.php/1491051&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and the registry hack seems like a potentially reasonable work around.&lt;BR /&gt;
&lt;BR /&gt;
On my XP Pro system, the system DSN entries are found at:&lt;BR /&gt;
\HKLM\Software\ODBC\ODBC.INI\&lt;BR /&gt;
&lt;BR /&gt;
Screenshot below shows the contents of an old DSN called "ODBC test" from the AC 9 version of the driver.  Note that the key "ODBC Data Sources" must also contain a link (index) to point to this entry.&lt;BR /&gt;
&lt;BR /&gt;
Maybe this will work?  Report back here if so to help the next guy...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Karl&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/17010i50918D4900CC3D15/image-size/large?v=v2&amp;amp;px=999" border="0" alt="odbc-reg.gif" title="odbc-reg.gif" /&gt;</description>
      <pubDate>Tue, 06 Nov 2007 16:14:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76091#M8286</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2007-11-06T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76092#M8287</link>
      <description>Hi Karl&lt;BR /&gt;
Got it sorted but I'm just in the office...those typos!!. You &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;can&lt;E&gt;&lt;/E&gt; do a standard dsn less connection...its just that I copied the connection string example from the help file which is "V1.0" not "V10.0" and so it went under the radar for a little while.&lt;BR /&gt;
This codes works well for auto dsn generation when attached to the form open command;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.vbforums.com/showthread.php?t=358864" target="_blank"&gt;http://www.vbforums.com/showthread.php?t=358864&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and its quite terse. I discovered also that there is direct registry editing throught the getsettings of vba. More than one way to skin an archicat!&lt;BR /&gt;
Standard ADO with connection string is by far the best alternative though.&lt;BR /&gt;
Regs&lt;BR /&gt;
Mark</description>
      <pubDate>Tue, 06 Nov 2007 22:20:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76092#M8287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-06T22:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76093#M8288</link>
      <description>&lt;BLOCKQUOTE&gt;image_engine wrote:&lt;BR /&gt;Standard ADO with connection string is by far the best alternative though.&lt;/BLOCKQUOTE&gt;

Are you saying that standard ADO does work, Mark?   (Or that that would be your wish?) That would be great, as it is how I usually do things in VB in Access...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Karl</description>
      <pubDate>Tue, 06 Nov 2007 23:53:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76093#M8288</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2007-11-06T23:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: DSN Less ODBC Connection</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76094#M8289</link>
      <description>Hi Karl&lt;BR /&gt;
Seems to be working fine. Just working on some timestamping but I get&lt;BR /&gt;
State = adStateOpen on conn open.&lt;BR /&gt;
Regs&lt;BR /&gt;
Mark</description>
      <pubDate>Wed, 07 Nov 2007 00:10:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DSN-Less-ODBC-Connection/m-p/76094#M8289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-07T00:10:54Z</dc:date>
    </item>
  </channel>
</rss>

