ms-jet-ace

ACE oleDb drivers unable to handle huge excel files

柔情痞子 提交于 2019-12-12 10:09:02
问题 Does ACE OLEDB drivers have any known issues with larger files? I am using the below code to retrieve the worksheets in a 400Mb xls file public string[] GetWorkSheets() { var connectionString = "Provider=Microsoft.ACE.OleDb.12.0; data source=c:\filepath\filename.xls; Extended Properties=\"Excel 8.0;IMEX=1;HDR=YES;\""; DataTable dataTable; using (OleDbConnection connection = new OleDbConnection(connectionString)) { connection.Open();//Exception thrown here for large files dataTable =

ADO with XLSX files in Delphi XE

一曲冷凌霜 提交于 2019-12-11 08:47:42
问题 The issue here is ADO connection with Excel - is this still the standard way to read/write excel files within a Dephi XE environment? We're coming up with multiple issues when reading/writing using the ACEOLEDB driver (ACE 12) and this includes Reading cells with hashtags don't return results "Invalid Floating Point" when exporting grids. We've also noticed that there's many versions of the ACE 12 driver out on Microsoft's website (via Access Database driver executables) and they each seem to

Creating Access 07 DB with VB.net always runs Repair when opening it the first time

柔情痞子 提交于 2019-12-10 11:56:41
问题 I have a VB.NET (Visual Studio 2010) app that creates an Access 07 database programmatically, then imports a CSV file as a new Access table. The DB gets created, and the CSV gets imported with no problems. The code uses ADOX.Catalog to create the database, and an OleDb.OleDbConnection with ACE to import the CSV. All is well, except the first time I open the Access DB. When I launch Access 07 from my desktop (Office 07), I get the green "repair" progress bar at the bottom right of the screen

Using math functions in Sql with MS Access

那年仲夏 提交于 2019-12-10 11:22:57
问题 I designed a query in SQL View using MS Access: select floor(num1) from t1; When I run it, I get "undefined function floor". I get similar errors for Ceil , Mod , Power , Sign , Sqrt , Trunc , and initcap functions. Does the Access database engine's SQL syntax have equivalent functions? 回答1: Replace Floor() with Int(). I learned this by searching in the Access help files, in this case, hitting F1 while in the query designer, and searching for "functions." That took me to a help topic

C# Issue: What is the simplest way for me to load a .MDB file, make changes to it, and save the changes back to the original file?

做~自己de王妃 提交于 2019-12-07 07:43:24
问题 My project that I am working on is almost finished. I am loading a .MDB file, displaying the contents on a DataGrid and attempting to get those changes on the DataGrid and save them back into the .MDB file. I am also going to create a function that allows me to take the tables from one .MDB file and save it to another .MDB file. Of course, I cannot do any of this if I cannot figure out how to save the changes back to the .MDB file. I have researched Google extensively and there are no answers

ACE oleDb drivers unable to handle huge excel files

廉价感情. 提交于 2019-12-06 07:53:26
Does ACE OLEDB drivers have any known issues with larger files? I am using the below code to retrieve the worksheets in a 400Mb xls file public string[] GetWorkSheets() { var connectionString = "Provider=Microsoft.ACE.OleDb.12.0; data source=c:\filepath\filename.xls; Extended Properties=\"Excel 8.0;IMEX=1;HDR=YES;\""; DataTable dataTable; using (OleDbConnection connection = new OleDbConnection(connectionString)) { connection.Open();//Exception thrown here for large files dataTable = connection.GetSchema("Tables"); } int lenght = dataTable.Rows.Count; string[] worksheets = new string[lenght];

Using math functions in Sql with MS Access

戏子无情 提交于 2019-12-06 05:33:46
I designed a query in SQL View using MS Access: select floor(num1) from t1; When I run it, I get "undefined function floor". I get similar errors for Ceil , Mod , Power , Sign , Sqrt , Trunc , and initcap functions. Does the Access database engine's SQL syntax have equivalent functions? David-W-Fenton Replace Floor() with Int(). I learned this by searching in the Access help files, in this case, hitting F1 while in the query designer, and searching for "functions." That took me to a help topic comparing VBA and T-SQL functions. You should probably have a look at the Access database engine SQL

The 'Microsoft.ACE.OLEDB.14.0' provider is not registered on the local machine

一笑奈何 提交于 2019-12-06 05:00:55
I have built a small WPF app that will read in XLS or XLSX files and display the contents in a datagrid. I have the XLS side of things working by using the Microsoft.Jet.OLEDB.4.0 provider. I am struggling with the XLSX side of things. I am running Windows 7 (64-bit) and have Office 2010 (64-bit) installed on my machine. I see the version 14 and 12 versions of the OLEDB in my ODBC connections. When I run my connection string it returns an error. I have read through many of the posts without any successful answers, many pointing to the version the app is running which is x86. I have tried both

sql sum data from multiple tables

孤人 提交于 2019-11-29 07:23:57
I have 2 tables AP and INV where both have the columns [PROJECT] and [Value]. I want a query to return something like this : PROJECT | SUM_AP | SUM_INV I came up with the code below but it's returning the wrong results ( sum is wrong ). SELECT AP.[PROJECT], SUM(AP.Value) AS SUM_AP, SUM(INV.Value) AS SUM_INV FROM AP INNER JOIN INV ON (AP.[PROJECT] =INV.[PROJECT]) WHERE AP.[PROJECT] = 'XXXXX' GROUP BY AP.[PROJECT] The results from your query are wrong because the values you are trying to summarize are being grouped, which causes duplicate values to be included in the SUM . You could solve it

Maximum number of rows in an MS Access database engine table?

大城市里の小女人 提交于 2019-11-28 11:59:29
We know the MS Access database engine is 'throttled' to allow a maximum file size of 2GB (or perhaps internally wired to be limited to fewer than some power of 2 of 4KB data pages). But what does this mean in practical terms? To help me measure this, can you tell me the maximum number of rows that can be inserted into a MS Access database engine table? To satisfy the definition of a table, all rows must be unique, therefore a unique constraint (e.g. PRIMARY KEY , UNIQUE , CHECK , Data Macro, etc) is a requirement. EDIT: I realize there is a theoretical limit but what I am interested in is the