<?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: Reading External Database or Excel in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6333410#M36081</link>
    <description>&lt;P&gt;SQLite may also be an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proper selection of data format is important - no point setting up a SQL Server system for storing a couple of system variables but works very well with exceptionally large data sets and large numbers of users; an Excel workbook can be inappropriate for very large amounts of values even&amp;nbsp;though it is easily human-modified; MS Access can be a good option for mid-sized data sets but has problems with sharing large numbers of users and ties you to an MS Office bit-ness; XML can be slow for very large data sets but works well for smaller data sets, handles irregular/"jagged" data better, and converts to other formats very easily.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 14:32:58 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2016-05-18T14:32:58Z</dc:date>
    <item>
      <title>Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6322333#M36074</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a concept for a number of applications. The piece I am missing is how to go about reading an external database or excel sheet from the autocad.net application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 09:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6322333#M36074</guid>
      <dc:creator>deusextechnic</dc:creator>
      <dc:date>2016-05-12T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6322871#M36075</link>
      <description>&lt;P&gt;Without knowing your programming knowledge, it is really a too broad topic of "how to read data from external database...".&amp;nbsp;If you have programming data access (to data file, database, servcies) experience outside AutoCAD, then there is no difference in terms how to do it inside AutoCAD (with VBA, .NET API). Almost all generic database access programming examples, Excel sheet data reading/writing programming examples you can find, or you have done, could be used in AutoCAD prgramming with minimum, or without, change.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6322871#M36075</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2016-05-12T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6325859#M36076</link>
      <description>&lt;P&gt;Hi, Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a nutshel, I want to know what approach is good and reliable and any good examples would be helpful. I will need to read both excel and access dbs at some stage. I already tried a NuGet package called LINQtoExcel which didn't work in AutoCAD API even though the program compiles, so I don't want to spend a heap of time with similar trial and error. I have some experience with databases using EF so that was going to be my next move. For the moment, I am stuck with having to read .csv files. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 20:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6325859#M36076</guid>
      <dc:creator>deusextechnic</dc:creator>
      <dc:date>2016-05-13T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6326088#M36077</link>
      <description>&lt;P&gt;If you use the DataSource tools in VS, you can connect to xls and mdb. VS comes with the necessary drivers and it builds a set of objects that you can then use in code. To view the Data Sources palette, &lt;STRONG&gt;View&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt;Other Windows&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt;Data Sources&lt;/STRONG&gt; or Shift+Alt+D.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 23:17:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6326088#M36077</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-05-13T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6327036#M36078</link>
      <description>&lt;P&gt;That is a good suggestion. Simply, there is nothing special to connect to a database (or spreadsheet) from AutoCAD; it is exactly the same as you would do from any .NET WinForm application. I think if you look in that direction (ie separate to AutoCAD)&amp;nbsp;you will get plenty of samples to fit your needs. As a side note, I have used&amp;nbsp;the OpenXML SDK for some time to read/write XLSx files. This avoids the issue of your application being dependent on the users Office version/installation. I can look for some snippets if you don't have any luck.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2016 12:02:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6327036#M36078</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2016-05-15T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6331507#M36079</link>
      <description>&lt;P&gt;Appreciate the suggestions so far. I am running into a common problem with all the approaches I tried so far though. All the autodesk products in the office are 64 bit, while all the Microsoft office installs are 32. From what i can gather, the service providers used to connect to the data sources (such as jet or ace) need to be 64 bit to run in 64 bit autocad .net - with no exeptions, but cannot be used in a 32bit Microsoft office environment. Any ideas? I am going to try&amp;nbsp;&lt;SPAN&gt; OpenXML SDK fo as suggested by dale in the meantime.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 21:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6331507#M36079</guid>
      <dc:creator>deusextechnic</dc:creator>
      <dc:date>2016-05-17T21:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6331616#M36080</link>
      <description>&lt;P&gt;It looks like you want to connect data stored in either MS Access DB or Excel sheet with MS Access DB Engine. Yes, with 64-bit AutoCAD, the MS Access DB Engine must be 64 bit, which is a free download from MS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you stated, the computers of yours all have 32-bit MS Office installed. Thus, installing 64bit MS Access DB Engine could be an issue, or not possible, if the 32-bit MS Office suite is older version (2007, maybe even 2010, I could not recall exactly). But with later version of MS Office suite, at least MS Office 2013 or later, you can install 64-MS Access DB Engine with MS office 32bit in the same computer. With this said, making your CAD app dependent on&amp;nbsp;MS Access DB Engine is not a very good choice. I'd avoid to use MS Access DBfor data storage whenever possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do go with MS Access DB engine, you do not need to create DSN (data source name) in each computer, as the other reply suggested. With ADO.NET, you can create DSN-less OldDb.net connection easily to read data fromo MS Access DB or from Excel sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know many people tend to use Excel sheet for data storage. In this case, you can use OpenXML to read/wriet data back and forth to Excel sheet (so that you can avoid the dependency to MS Access DB Engine).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 22:27:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6331616#M36080</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2016-05-17T22:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6333410#M36081</link>
      <description>&lt;P&gt;SQLite may also be an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proper selection of data format is important - no point setting up a SQL Server system for storing a couple of system variables but works very well with exceptionally large data sets and large numbers of users; an Excel workbook can be inappropriate for very large amounts of values even&amp;nbsp;though it is easily human-modified; MS Access can be a good option for mid-sized data sets but has problems with sharing large numbers of users and ties you to an MS Office bit-ness; XML can be slow for very large data sets but works well for smaller data sets, handles irregular/"jagged" data better, and converts to other formats very easily.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 14:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6333410#M36081</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2016-05-18T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6342893#M36082</link>
      <description>&lt;P&gt;Thanks for the input. All the approaches work in isolation but don't transfer well to other machines since the installs are all different. I ended up going with reading a CSV instead of using OpenXML or DataTools. This avoids the driver and File version issue. I am then writing the values to an SQL database using Entity Framework and reading values from there. This introduces an extra step into the process but the database only needs to be updated once a week or so.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6342893#M36082</guid>
      <dc:creator>deusextechnic</dc:creator>
      <dc:date>2016-05-22T21:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading External Database or Excel</title>
      <link>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6343093#M36083</link>
      <description>&lt;P&gt;For Excel I have used &lt;A href="http://epplus.codeplex.com/" target="_self"&gt;http://epplus.codeplex.com/&lt;/A&gt;&amp;nbsp;with good results. Another alternative is &lt;A href="https://www.syncfusion.com/products/communitylicense" target="_self"&gt;Syncfusion's community license&lt;/A&gt; for their &lt;A href="https://www.syncfusion.com/products/file-formats/xlsio" target="_self"&gt;XLSIO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also had good results with SQLite and Entity Framework using&amp;nbsp;&lt;A href="https://github.com/msallin/SQLiteCodeFirst" target="_self"&gt;https://github.com/msallin/SQLiteCodeFirst&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 04:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reading-external-database-or-excel/m-p/6343093#M36083</guid>
      <dc:creator>CADbloke</dc:creator>
      <dc:date>2016-05-23T04:44:39Z</dc:date>
    </item>
  </channel>
</rss>

