A Good Embedded DB for Mobile Applications - sql

I'm developing an App on windows mobile and android, i needed a database for this app and as of now have shortlisted 3 lite databases.
SQLite
Ultralite (from Sybase)
Oracle Lite
of these 3, i was unable to configure UltraLite with my existing project on VS2008.
i am currently using SQLite with the dll from http://sqlite.phxsoftware.com but i will need a embedded db that is a lot more data intensive.
thus i thought of using Oracle Lite but i have no idea of the licensing or cost issues as far as Oracle Lite is concerned.
So now i have 2 questions:
Can anyone help me with configuring Ultralite for my VS2008 poject (i tried the tutorial - http://www.codeproject.com/KB/database/Win_Mobile5_Database_App.aspx but still keep on getting the error)
is there any LEGAL way i can use Oracle Lite for developing my mobile app for free, if not what are the costs?

It looks like you already have solved the issues in your first question.
Regarding your second question Oracle Lite is not free. You can see the prices here.

Related

How to store Arduino sensor value to SQL Database

I am using Arduino UNO. I want to store arduino sensor value to SQL Database, from that Database i want to show that values which was stored in Database Table to user thorough ASP.NET Web Browser. Also I am using ethernet shield.
I have found this method done by PHP, but I want to do this in C#. How can I do that?
Depends on what you want to do...
If you want to run a C# application on Arduino, and your Arduino has an ARM Cortex processor, then you stand a chance. If it has an Intel Quark (x86-32) or an Atmel AVR (8-bit), then you're out of luck.
So in case you have an ARM-processor, you need to download Visual Studio 2017 (Community edition - free). Then you need to install .NET Core 2.0 preview. From there, you can compile a standalone Linux-binary targetting ARM. The result should run, if your Arduino can sport a Linux distro. However, I doubt you will find a version of linux that fits in 32K - but if you do, you could probably compile it and upload it to the Arduino.
If what you mean is "How can you get the sensor data from Arduino", then you can either use System.IO.Ports, or you can use the C# Arduino USB drivere here:
https://github.com/christophediericx/ArduinoDriver
Next, you need a relational or NoSQL database to store sensor information.
Since you're probably a just-starting windows-user, I'd recommend you download sql-server express, and SQL-server management studio Express. If you're not a fan of Microsoft, you can also use PostgreSQL, or SQLite, if you don't want to install anything. Firebird would also be a nice embedded database. If you'd have an extreme high write-frequency, and need multiple computers to store the results, you should use Cassandra (NoSQL) - However, Cassandra is not for beginners, and neither is PostgreSQL, SQLite or Firebird. So I recommend you use SQL-Server Management Studio and SQL-Server Express.
If you also install SQL-Server-data-services, you could also use ReportingService to output your measurements, which has the added benefit of easy filtering, and multiple output formats (HTML, Excel, PDF, PowerPoint, Word, TIFF, Graphs, XML, CSV), without much work on your own. Then you don't need any ASP.NET application.
If however, you want to output the data in your own database table, you need the SQL-Server ADO.NET driver (System.Data.SqlClient) to access the SQL-Server express database. For PostgreSQL, you'd need the PostgreSQL-ADO.NET driver (Npgsql), and for SQLite you'd need System.Data.SQLite.
You can output the table in ASP.NET web forms with DataGridView, and do DataBind in the Page_Load event. Or you could use the more modern ASP.NET Core framework, to write a REST-service, and display the table with JavaScript and AJAX/JSON (use a JavaScript-grid like HandsonTable or SlickGrid). You'd need to serialize the data to JSON using Newtonsoft.JSON.
Or you could display the table in real-time with web-sockets and a web-sockets real-time DataGrid.

How to connect to a database with 64 bit labview

So I am using labview and their data connectivity tool kit only works with their 32 bit version. I need to use their 64 bit version though to be compatible with some of my other files.
If I have a local sql database, which I access using the mysql command line client, what would be the best way to talk to it? Should I use executables like bat files or is there a better method? Should I store data in a different way?
Thanks in advance for your help.
I have never really liked the data connectivity toolkit, mainly because it is Windows only. That being said, I recommend setting up a MySQL server on your computer and using TCP/IP to communicate with it. This community forum link is a good start, although there are some issues with this code. I use code based off of that in my software, unfortunately I cannot post that source code.

Migrating a Compact Framework 2.0 App to Windows Phone

I have a Compact Framework 2.0 application written years ago in VB.NET using VS2005. The application uses a local SQL compact database (.sdf) file. The application has been running on HP iPAQs for years.
I want to look at making this available to Windows Phone users. Any suggestions for the easiest way to do this? When I say easy I mean quick I suppose, the client is not interested in paying for it, so if there was a crude way to implement/achieve it I would be prepared to go that route.
The alternative is building a new Windows Phone app, my first. Which would be fun, but not very good for the balance sheet! Thanks all.
Probably the only option available is going to be a wholesale rewrite of the application. If you were strategic in your original design and kept the business logic and UI separate, then that code will transfer pretty easily, but the data access code will have to be rewritten and all of the UI code will have to be rewritten.

Update core data

I relased version 1 in appstore that contain coredata database , in version 2 I added new fields to the database how to modify dynamically the old database , with keeping the data
I already did without versioning and don't have the old version , and the application will crash on the customer ipad
any suggestion please
take a look at the Core Data Model Versioning and Data Migration Programming Guide
I would encourage you to start using source control. XCode 4 has SVN and Git built in, you should give it a try - both are pretty easy to learn, and prepares you for when you need to have multiple people working on a project. Having your code in source control would have made this a straightforward problem to fix, you can get previous versions of any file at any point in time.
The WWDC 2011 videos have some good content on using source control effectively and efficiently as well.

New to Ipad, familiar with SQL, how to get started

I have been a SQL writer using MS Access some years ago and have been given an IPad upon my retirement. I want to create simple database driven apps using SQL. I have downloaded SQL Lite editor from the Apps Store but it seems to have a big chunk of something missing.
Question. Do I need to have an Apple computer as a workstation and then copy to the iPad, or can I use my Windows 7 PC as the authoring tool.
Where do I find the tools for creating the graphics to enhance database search results?
Do I need to use C or C++ to create the application, as I never got around to learning it.
Odd questions I know, but google searches seem to leave me totally in the dark on this topic, yet I geel that most app's seem to revolve around some database manipulation. Would be helpful if I could find a series fo links somehwere.
best regards
Kaela
Hi
In order to develop native applications to ios devices you need the XCode environment and knowledge in objective c, its a bit odd and there are examples.
for that you will need a mac or run the mac os on a virtual box.
You can also create a non native app such as webapp using HTML5 and js and then import it to the XCode using Phonegap.
By using this method you will be able to create apps for many devices such as android and more and all you will have to do is to import your HTML5 and js into the supporting environment.
Just to warn you about these kind of apps, app store allows only native apps and its better to make native app because it will pass every inspection they make.
Thanks
yes, to develop on Apple's engine, you have to had an Apple computer. However, you can mount a virtual machine running OS X, but it's illegal and very complicated (but doable).
The "bible" for mac developers is here : http://developer.apple.com/.
It's recommanded to write your application in Objective C.