Enabling SQLite in Azure service? - sqlite

Getting started with Azure services here and I'd like to be able to have a "lighter" datastore for smaller solutions. Can anyone explain how to enable/setup SQLite with an Azure service? Is that done from Visual Studio or do I have to enable it while deploying to Azure?
I have googled every conceivable combination of keywords I can think of and came up with nothing but a feeling it's "easily achievable" but no hints as to hos it's done.
What I have is actually a mobile back-end that is using SQLite but I have no clue how I did that! There where certainly no datastore-setup wizard when I created it but when I go to the "Quicklinks" to download staged projects for clint projects I see that the back-end is indeed configured to use SQLite. I have tried a couple of different approaches to try and reproduce it but so far I have failed.

As far as I know, the azure mobile app doesn't support enable the SQLite from the azure.
In the azure portal you could only enable the azure table storage and azure sql database as the mobile app's backend database.
You could see this image:
If you want to use SQLite in your mobile app's backend, you need enable it by yourself in the project.
You need firstly install the System.Data.SQLite package and replace the connection string as SQLite connection string. At last you need deploy your mobile backend to the azure with the SQLite file. More details about how to install the SQLite in your mobile beckend, you could refer to this article.
Notice:
1.SQLite EF provider doesn't support the EDM.DateTimeOffset type. But the azure mobile app quick start backend sample use the DateTimeOffset. So if you want to use the SQLite as your mobile app backend, you need write your own model.
The mobile app backend EntityData class:
2.After you published the application to the mobile app, you need also copy the SQLite.Interop.dll to your application root folder.

Related

Deploy flask web app with sqlite database via heroku

I've tried to make a website using flask using a sqlite database and deploy it via heroku, but apparently heroku doesn't support sqlite, it able to deploy but the database is deleted after a while. If I want to deploy using another service or buy my own domain, will the database be fine?
Heroku does support sqlite database.
But since Heroku has an ephemeral file system so the files created during program run are deleted on dyno restart.
Using another service may solve it, it depends on the service you are using.
A good solution would be to use a remote database. Heroku itself has an add on to add a postgresql.
Edit: Here is an article from devcenter.heroku which explains why sqlite doesn't work and shouldn't be used also explaining how to create an external database as addon.
Here is the article

android app and realtime message with Meteor

I am learning meteor and making simple chat app then this question hit my mind..
If I am making web app then that is fine because all the user will access from save server and database but what about mobile users..
Lets say I am making android app and I want to build it.. When I build the app will it give me Mongo database along with apk or I have to install it manually ?
Second i can think of its do everything in the same database and just make browser for the app..
But what I want to store per user data in their mobile.. that is no related to my database ?
In my chat app in the browser it is working in realtime but what If i build and make apk for android with different database ..
I just want to know what would be the best approach if I am making a messaging app ? I am confused on database .
Thank you
The database is always remote MongoDB on the server where your server code runs.
For example your server address is http://someserver.com. This is where you publically deploy your application.
While building the apk, you need to specify the --mobile-server attribute which tells your mobile application where to point for server code and database.
If you host your database on some MongoDB hosting providers like compose.io then you need to specify MONGO_URL environment variable while building.
To cut it short, MongoDB is neither on apk nor on client (they have something called minimongo on client which is definitely not your actual database) but it is on the server where you have hosted your application.
Good Luck!

Using Azure SQL for asp.net

I've designed a website in Visual Studio and I'm starting on the database aspect of the site now. I'm using Azure to host the site at the moment and I was wondering is it best to create the database on Azure and then connect it to asp.net or design it in Visual Studio and then connect to Azure so I can store it there?
I also run the website locally a lot when I am testing it for design purposes so would building it in Azure affect this?
Im also using visual studio ultimate 2013 but its a pre release version and I can't use the azure sdk with it. Will it work on the full version of 2013?
Azure SQL Database at its core is essentially compatible with standard SQL Server. There is a published guide on what the limitations are (http://msdn.microsoft.com/en-us/library/windowsazure/ee336245.aspx) that you should understand first but I'd recommend that you work locally and then push your changes to Azure SQL Database. Note that like any changes to schemas / databases in SQL Server you'll still need to manage those transitions appropriately as part of your deployment process. HTH.

What is the best/simplest way to connect my Silverlight 5 web-app to a Windows Azure database?

I have a fairly simple project in progress where I create a very basic upload/download capable Silverlight 5 app to upload a user-selected file from their local machine to an Azure database. After reading up on the variety of ways to do this (WCF RIA services and others) I haven't been able to get a clear idea of how I would best implement this.
Some more information about my app would be that I envision it to be very simple, with the upload consisting of a file selection and subsequent tagging and uploading to the Azure database and the download portion consisting of a user searching for the file in a pivot-viewer like environment and then selecting and downloading the file they want. If it is relevant: the app will run in IE, Chrome, and Firefox.
How would I best connect my Silverlight app to a database set up in Windows Azure? Links to tutorials or explanations would be greatly appreciated! I'm looking for possible examples with sample code of how a Silverlight app could be written to connect and upload/download a file as well as samples/examples of what I need to setup on the Azure side in order for the app to function properly.
I think you need to use any tool which migrates your schema and connect to SQL azure database with proper server name using SQL server 2012.

umbraco deployment procedure

I am trying to deploy umbraco website. The website runs ok locally, now when I published the website and uploaded via ftp client, there is internal error when I am trying to access the website.
My question is, since I was using SQL CE database locally, will I be still able to use that DB online or I'll have to use sql server database?
Furthermore, is there any special method to deploy umbraco application?
Thanks for reading, Laziale
If u have an windows azure account load it in to azure it works perfectly transfer your file through FTP . Install umbraco from azure as apps which azure is providing it works perfectly . I am also using umbraco on azure
You can use SQLCE on line, personally I wouldn't recommend it unless it is a very small DB, and the site gets little traffic; SQL Express is also free and a lot more powerful - but to your question, yes, SQLCE should work.
Perhaps let us see your connection string and the specifics of the error you are getting.

Resources