Can I access HSQL database from windows 8.1 store app? - windows-store-apps

I wanted to know if its possible to access HSQL db from windows store app. If not, which database can be accessed. Is there any other way of accessing stored data from my windows app?
Thanks

No you can not access HSQL db directly from a windows store app. You can use SQLite or Lex.DB directly from a windows store app as a local database. Typically you will need to create a web service to access a server side database from a windows store database. The only exception I know of is you can access a MySQL database on a server directly from a windows store app with the latest .net connector.
http://dev.mysql.com/doc/connector-net/en/connector-net-rt.html

Related

Android Connecting to Mysql

I am creating an android application in android studio and I am using SQLite as the local database. I am using MySQL database as the application server. I want to be able to pull the data from MySQL into Android Studio to access it and also sync the local SQLite database and the MySQL database.
I do not want to use Web services and php files to connect MySQL, I would like to use JDBC instead, so My question is:
can I use JDBC to this purpose and how?

Windows phone 8.1 app connect with a database

I'm totally new to the windows phone 8.1 app development.
I'm trying to develop a simple app with a database using visual studio 2013. It is not a silverlight app.
my app just have a text field and a button.And i have a MySQL database in a local server(WAMP).
I need to get a input from the text field and store it in the database.
First thing that I want to know is it possible to do?
If it is possible I would be very grateful if you could provide a step by step guide or a link where i can learn about this.
If it is not possible what are the other ways that I can try to store my input in a database?
Local storage
I'm guessing you're looking for a way to store structured data locally on the phone. AFAIK, MySQL is not supported on Windows Phone (MySQL is big, runs as a server, and it wouldn't be possible or practical to "install" it onto a phone). Instead what Microsoft endorses is to use SQLite. You'll first need to download the SQLite library as a Visual Studio extension. Then you'll need to install something like SQLitePCL (from NuGet) which essentially wraps the native SQLite library so that it is accessible from .NET languages. Make sure you add both references to your project. SQLite stores a database as a file that you can put in the local storage for your app.
Remote storage
I'm not sure if it's directly possible to connect to a remove MySQL server from a WP app. Usually you'd access a remote database through a webserver that exposes an API for you to use (e.g. a REST API). You can then send data to the webserver via a HTTP POST request, and then your webserver will store the data in the database. This is a big topic, and involves knowledge of server-side programming such as ASP.NET, Ruby on Rails, Django, PHP, etc. This topic is too broad for me to give you specifics on how to do this. See this answer.

Windows App with mySQL Backend

I am trying to design a database application for my small business. I've created a number of form driven MS Access databases for use before but would like to create a permanent solution in something more advanced & common.
I was thinking of using mySQL for the database and would then program a C# or VB application to be used in Windows. I do not want or need a web based version at this time but the migration to VB.net in the far future may be something I'll look into.
I know I can use a MS Access backend for my windows application without having to install MS Office on any or all the computers the program will be run for.
But here is my question. Is it necessary to install mySQL Server on the PC hosting the database, on all the PCs accessing the database or can I just use the database file as the backend and Visual Studio will have all the necessary tools I need to access it?
If I have to install the server I may just stick with the MS Access database as the needs for an excessive amount of database storage won't ever be an issue.
You'd need to install MySQL server on the Server hosting the database. The clients would then connect via the network. You will however need a driver to access the MySQL-Server with VB.NET on the client machines. A simple DLL-File might be enough, though.
If you are looking for a file-based database solution have a look at SQLite. But you will have to watch out for concurrency issues here.

Windows client - MYSQL server on linux

I have a Winforms desktop app that need to read/write data from/to a MYSQL database. The MYSQL server is on a machine that runs on Linux OS. I need to know if a .NET connector is to be used or an ODBC connector?
Also, considering that I do not need remote access to MYSQL server, is a connector sufficient to access the server from the windows desktop? Do I need to do something on the server side? I've been looking around and getting mixed signals, some people said a web service is required while others said no.
I need to know if a .NET connector is to be used or an ODBC connector?
I never connected to MYSQL before, but i think you can use these data provider or, ODBC too.
Is a connector sufficient to access the server from the windows desktop?
Yes. A valid address to your server is all you need to access it, using data providers or ODBC. Of course, your database need to be up and running too.
Do I need to do something on the server side?
Just install your MYSQL database.
Maybe this link will help you.

VB.net Project using MySQL user locally

Need Help.
I made a vb.net project, it is already finished. but my problem is, after i install the project i made to another computer. it can't connect to the database unless the WAMP server is open. is there a way to user without opening WAMP server?
WAMP stands for Windows Apache MySQL PHP. It runs MySQL server, so you need it to access database. Option is that user on another computer runs some MySQL server or connects to web server that runs database required for application.
You could also consider using Microsoft Access database. In this case you don't need server. All database is just in one MS Access file.