I'm developing a UWP application and want to read a MDB file to convert this database to a SQLite database.
I read that i could use OleDbConnection to open MS Access database following this topic : connect and read .MDB item with C#
But OleDbConnection is not available in UWP project. It seems not available in System.data
Do you know solution to read MDB file in a UWP application programatically?
EDIT :
Microsoft team answered me this information :
Currently, there are no in-box API, or tools compliant third UWP
out-of-the-box that allows you to do that.
There is nothing in the roadmap for the moment regarding this point!
I propose you two tracks to explore:
Convert your .mdb file into sqlite "Ready to use".
Develop Web API that exposes the data of your mdb.
There's nothing in-box to do this. I'm not aware of any 3rd party libraries that understand .MDBs and supports UWP apps.
I'd convert the .MDB to SQLite from a non-UWP app and then have the UWP app deal only with SQLite.
It looks like there are many existing tools to do the conversion
Related
I am working on a project for Windows 10 UWP App. I have below two problems
1. I have to upload excel sheet containing the data, and store that
data into Sq-lite Database.
2. Also I have to read data from database table, and write to excel sheet in
rows and column format.
I have searched a lot but could not find any library or helping blog. I would be thankful for any complete guide or sample code. Thanks!!
I would suggest you use Syncfusion Essential XlsIO. It does the work for your read/write of excel files (also works with Xamarin and ASP.Net). It has a 30-day free trial but you can get a free community license.
Just so you know, thx to .Net Standard 2.0 we are able to use the OpenXML SDK! This allows you to create and/or manipulate MS Office documents.
As an example I've blogged about creating Excel files on the fly in Xamarin Forms ( that also can generate an UWP app ) here http://depblog.weblogs.us/2017/10/13/net-standard-2-0-create-microsoft-office-documents-in-xamarin-forms/
The SDK itself is open source https://github.com/OfficeDev/Open-XML-SDK and there is a very large detailed documentation site available too https://msdn.microsoft.com/en-us/library/office/bb448854.aspx
I'm currently writing a C# 4.5 desktop application intended to help troubleshoot an old VPF application. My app is intended to display a list of things that can commonly be broken along with their current status.
A few of the things I need to display are found in the VFP application's databases so I need to be able to read DBase databases. However, I have a few restrictions that make this tricky:
I can't guarantee that any DBF driver has been installed on the system.
My application should run without a separate installer so I can't just toss in the ACE redistributable. (I could install ACE together with the VFP app but I don't want to rely on any part of it being intact, even bundled libraries.)
Is there anything I can bundle with my app that can read VFP databases and doesn't require installation?
I wouldn't want to do this... but you could parse the files yourself.
It looks like someone on github has the same idea.
As Tom said,
You can parse DBF files yourself. Their structures are well documented.
As a side note, ACE has nothing to do with VFP database files and actually ACE cannot read/write DBF files (unless they are old DBF formats). Proper VFP database driver is VFPOLEDB which you can include its setup msi with your application. Using VFPOLEDB would be an easy path.
I am developping a mobile app using Unity3D framework which is a C#/Javscript 3D engine, working on desktop and mobile plateform.
I need to recover the content of an XLS file on a cloud-based storage (Dropbox or GoogleDrive), then process it on the mobile plateform to transform it into a local SQLite database.
The mobile app will regulary check for modification on the remote xls file, and push it locally if needed to process it.
The framework I use (Unity3D) allow me to work with both C# and Javascript technologies.
What would be the best strategy to implement such a fonctionnality.
I'm totally newbie with web API, and I've seen in Dropbox documentation that there is several possibilities to interact with a cloud folder.
Is there a possiblity to fetch the content of an xls document into the mobile device memory (with writing to its local drive)? What would be the easiest/more elegant way to achieve it?
Thanx in advance
Unity3D supports using managed DLLs in your project. So you can look at using one of the following libraries:
http://sergeytihon.wordpress.com/2013/09/29/dropbox-for-net-developers/
https://developers.google.com/drive/web/quickstart/quickstart-cs
and choose one.
There's also code for reading excel files from Unity3D on the wiki: http://wiki.unity3d.com/index.php?title=Load_Data_from_Excel_2003
And code for using SQLite: http://wiki.unity3d.com/index.php/SQLite.
From there putting it together is up to you, the documentation from each link should be more than enough to implement what you want. I'd recommend abstracting the differences in platforms here (Google Drive vs Dropbox) from your main game (It doesn't sound like you've made up your mind on one), in case you want to change them later on. In my experience, operations between the two are similar enough to make changing over reasonably straight forward down the road as long as you're using the proper abstraction techniques.
Question is regarding ADO.NET 2.0 sqlite provider for c#.
I have a c# desktop application which I created using winforms. In this I used an sqlite database using ADO.net. If I ever want to view it's contents I do so using Firefox.
I don't know much about how it works but my question is:
If I make this app portable (i.e users from other desktops can download it) will the sqlite part also be present on their desktop? Or will they have to separately download the ADO.NET package as well?
I'm developping an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS.
I want to import data from excel file to the local database of the application. I'm following this tutoriel
The problem is that the System.Data.OleDb can not be found which is important to read data from an external file.
What I need to do ?
Note: I'm using VS2008 and I'm working on Windows 7.
You have a raft of hurdles to overcome. Just a few are
OLEDB is not supported under Windows CE.
Pocket Excel has no automation object model or even any published file format specification
Desktop libraries (like Microsoft.Office.Interop.Excel) will not work under Windows CE
Basically I think you're straying down a poor choice path.
What's the actual business problem you're trying to solve here? Do you have Pocket Excel files created on the device you need to merge into a local SQL Compact Database? Is there an option for not using Excel? Or is it that you have desktop Excel files on a PC and you want the data over on the device? If so, how are the files getting to the device? Can you convert them to CSV? Can you put a service on a server somewhere to do the conversion for you?
There's likely a way to solve the overall problem, just not on the path you're trying. We'd need to understand the actual problem to help you get a better solution, though.
some options:
write a one off console app to do the import.
use SQLserver management studio to do the one off import of an excel file
use microsoft access which will allow you to open the excel file and the DB and query across them both.
Unless you need to have your CE app accessing excel files all the time then maybe its not worth getting it to work just now.