SQLite creating uploading and managing an online database - sql

First of all let me just note that i'm a newbie in the field.
What i'm trying to do is create an online DB for my android application.
I'v been looking for the net for tutorials and could not find any.
What I want to learn is:
are there any sites that host sqlite databases
how do i create an sqlite database?
how do i upload the DB to the website
how to i communicate with the DB after it's online.
Any help would more help here guys, please.
thank.

Let me answer all your questions.
1) SQLite is not a traditional SQL Database, no server is necessary there is only a file.
2) A great tutorial by Lars Vogel explains almost all concepts of sqlite in android.
http://www.vogella.com/articles/AndroidSQLite/article.html
3) You can upload the sqlite database to a webserver as a regular file, but with only backup intents this is plausible.
4) Again there is no server; just a file on storage unit, such as harddisk or memory.
I strongly recommend to read article I linked above.

Related

R- Shiny- SQL- Dropbox: can they work together?

We have a shiny app running from our institute server (basically modifying a table).
We would like to store the table in an SQL DB.
Is it possible to save the SQL DB in a Dropbox account and interact with it from there?
Pseudocode:
load table from Dropbox SQL db
create DT data table
modify the data table in shiny
Update the SQL DB in Dropbox
I am asking for any working examples illustrating the first and last steps above.
Many thanks!!
I'm not sure what you're referring to by "Dropbox SQL db" - does Dropbox have an own SQL service? I believe not. Do you have some kind of SQL dump in the dropbox?
Anyways, what you could do, is setting up a sqlite database and save it to the dropbox. To my knowledge, SQLite does not support concurrent connections, but if only one user is accessing the SQLite db, then it should work.
Check out RSQlite.
/Edit: Of course, the institute server also has to have direct access to the dropbox.

importing csv file into SQL using Logic apps 2020

I have seen several older posts talking about how to import a csv file into SQL using Logic Apps however i have not seen anything thats easy to implement and doesn't require 85+ steps to do.
Has anyone come up with an easy way? I've done this million times using SQL SSIS or other tools to automate but nothing in Logic Apps?
Please let me know if you have a simple solution.
As of now there is no out-of box connector or function in LogicApp which parses a CSV file .
You can always vote for new features feedback: Read a csv file and bulk load into Azure SQL table
Logic App Teams suggest us look at Azure Data Factory to assist with this.
For example: Copy data from Azure Blob storage to a SQL Database by using the Copy Data tool and the blog https://marczak.io/posts/azure-loading-csv-to-sql/ #Hury Shen provided in comment.
We can't import the csv file to into SQL directly, that's these posts look very complex and involve many steps. Just for Logic Apps, there isn't such an easy way for now.

how to have database offline for iOS app

I would like to develop dictionary app for iOS application. and I am not sure which database Managment system should I use to store data. I want to my app to be offline so even user that don't have internet, they still can use my app. so my question which database should I use to store my database ? I research on google, it said sqlite. so if i store my data in sqlite so will my data in database sqllite will go with my app? thank
Yes, sqlite is your DB of choice unless you're just working with a couple of dozen records.
If you plan to use CoreData, you can also address sqlite with it.
If you don't plan to use CoreData, you can still use sqlite and work directly with the DB. There are good wrappers which help you, like FMDB: https://github.com/ccgus/fmdb

Uploading a file to a VarBinaryMax field into Windows Azure?

I'm extremely confused, so I've created an SQL Database in Windows Azure, created a "video table" with a "video_file" column as "varbinary(max)" because I want to upload a video file into that field, however Azure offers no "Upload" option like say, PHPMyAdmin does where you can hit "browse" and upload a video directly into the field. Can anyone guide me as to how to actually upload a file into a Windows Azure SQL Database so it can be read as a varbinary type? Can it be done within the Azure management portal? Or does it require some sort of external program/service?
To answer your question, the functionality to upload files directly into SQL Azure Database does not exist. This is something you have to do on your own.
Can anyone guide me as to how to actually upload a file into a Windows
Azure SQL Database so it can be read as a varbinary type?
Do a search for uploading files in SQL Server and you will find plenty of examples on how to do that. Take a look at this link for example: http://www.codeproject.com/Articles/225446/Uploading-and-downloading-files-to-from-a-SQL-Serv
Can it be done within the Azure management portal? Or does it require some sort of external program/service?
No. This functionality does not exist in Azure Management Portal. As mentioned above, you would need to write some code to do so.
A little bit off-topic comment:
May I suggest that instead of saving the image files in the database you save them in Blob Storage and store the URL of the blob in your table. There're some advantages I could see in this:
Compared to SQL Database, Azure Blob Storage is much cheaper. If you store video files (or in other words large files) in the database, you will end up with large database and thus end up paying more money.
You will be choking the database when reading this large data from the database which will impact the performance of your application.

Integrating Sybase UltraLite Db to my code

I am new to ios development. I want to create a local Sybase Ultralite db in my system and
want to perform insert , delete,update on my local Ultralite db present in my system. I went
through many samples, but I didn't get any proper information. For integrating SQLite db there
are many step by step approaches which is easy to follow but for Ultralite none. As I am a
beginner I want step by step approach to create a simple local Ultralite db in my system and
modify it through my code . I really need this very badly.I am using Ultralite db because
there are multiple users of my db, and data they are updating will reflect in the server
also. Where as in SQLite I dont think, it provides this kind of sync mechanism. As far as i
have heard it is used as just a local db Can anyone help me on this?
SQLite (or Core Data) are definitely the most common SQL interface for iOS. But you're right that it doesn't offer any built-in, integrated, sync mechanisms itself.
In terms of Ultralite on iOS, have you seen the Ultralite iOS tutorial page? It's not much, but a start.