I'm developing an AIR app which will synchronise data between local SQLite db and server-side MySQL database.
The app is to be used by several users on any number of desktop computers. When a user first installs the AIR app the database and its tables will not exist locally. I would like the app to be able to download a single schema file with all the CREATE TABLE statements and execute them to set up the database tables locally prior to synchronising with server-side data.
I know that flash.data exposes the SQLSchema class which allows inspection of the database schema - but what I would like to do is build a local database from a downloaded schema.
Is this possible?
Thanks in advance.
Best wishes
This is possible.
My way of doing this is through URLRequest which brings back the sql text file with commands to populate tables in main database opened by AIR.
Related
So I have an SQLite3 database with Sequelize on a VPS and a Website I hosted on Hostinger.
Is it possible to access and edit the data in the database from the website?
Any help is appreciated.
[my code is in nodejs]
Yes and No.
Easy and simple answer - now;
Longer - yes, but you would need to map the directories, so server running your sequelize will think it accesses normal directory.
You can download the database, edit it and then send it back. sqlite3 is file database, you dont really connect to it (usually)
SQLite is a database format based on a single file. It's simple but not massively performant. It has no networking features.
The SQLite client needs to have access to the filesystem that the database lives on.
If they are on different computers, then you could do it by using some kind of network filesystem (e.g. via fuse) but this would be really slow.
A better approach would be to run a webservice on the computer the file is stored on, and access the database through there.
I'm having a small issue. I'm trying to install a plugin (http://plugins.cakephp.org/p/720-users), the user management plugin. For this, I need to create some mysql tables, but I guess you need to create these via a php file and the Console of cakephp. The problem is that I have a very simple server that can only run php and a mysql database. Is there a way to create the sql code out of this php file without the console? The file is question is https://github.com/CakeDC/users/blob/master/Confi
No, you can't. Get a less crappy host. I'm paying only $12 for 3 month (!) for my private virtual server with root access.
Alternatively you could run the migration or schema shell locally, dump the tables and insert them via phpmyadmin on your crappy host.
What would be the best way to sync a local Paradox database to an online SQL database?
It only needs to be a one way system; I need it to upload a phone logging database into my SQL database.
Currently I have a program that exports the table into a CSV and then uploads it to the sites FTP and then I was going to create a script to import that into the database for me, is there a better way / program to go about achieving this?
Many thanks.
I have placed the SQL CE Database file in the installation folder of the Windows phone application.i want to perform Read and Write operations on the database but it was saying Access to the database file is not allowed.
Please suggest me how can i achieve this
You need to copy the database to isolated storage on first run, as the installation folder is read-only. You will also need to change the connection string:
data source=isostore://mydb.sdf
See much more in my blog post here: http://erikej.blogspot.dk/2013/04/generate-windows-phone-8-local-database.html
I have an ASP.NET project under development with my team. and I want to create a database and share with with my teammates . So that they can make edits (Add table etc). When I open the database thats in the project It give me the following error.
One or more files do not match the primary file of the database. If you are attempting to attach a database, retry the operation with the correct files. If this is an existing database, the file may be corrupted and should be restored from a backup.
An attempt to attach an auto-named database for file xxxx.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Please help whats wrong!
at the end of the day, I want a database to share it with a team (or even better I want to host a database somewhere so that all of us can connect to it for FREE)
Please Help!.
Thank you for your time.
If you want to share a database, it's better if you create DB project form Visual Studio templates so you can have project that contain all your database objects as files, and by compare your project with your local DB you can merge the change from the DB to the project or from the project to the DB you can also create script for the data that should be exist in the DB and this script can run after deploy your DB project.
So here the scenario,
You create a local DB, and you create some tables
You create DB project inside your solution
You compare the DB with your DB project
You write the update of the compare which is some tables files
You check-in DB in TFS
Other developer Check-out the solution including DB project
Compare the DB project with local DB
Write update to the local DB
Now the other developer has the same DB
Thanks
M.Radwan