I am creating an offline app,which have a table of data(SQL)..And that data must be in all the phone using my app...The Application must update this table whenever the phone gets connected to Internet.The Users can insert,update but cant delete their data in the table.
I want this table to be in a common place and store the table to Isolated Storage for offline usage .In my search I found that we can do this through OData with SQLAzure in cloud..I do want to know is there any other way of doing it?
You can use sql-ce dabatabase from mango which is stored in IsolatedStorage.
Here is good article.
For online updating I always use custom webservices running on my server, which is not that hard to develop.
Related
I am trying to create a model on genexus that gets data from a determined table from a server to create a File.
I have tried doing it while creating a new knowledge base but I didn't know how I can get the data I need or how I can connect the existing tables to my knowledge base.
See this 2 links from GeneXus documentation:
https://wiki.genexus.com/commwiki/servlet/wiki?2414,Reverse%20Engineering%20Process
https://wiki.genexus.com/commwiki/servlet/wiki?6627,Database+Reverse+Engineering+Wizard,
Best Regards.
I have been experimenting with Windows Azure Mobile Services. I am impressed that it creates a table for me and a database connection along with projects in various platforms. I wish the data were Windows Azure Storage however, because SQL Database can be expensive.
My thought is, since it is already provided, it makes sense to use it to store account information. Then I can use Azure Storage for frequently changing data. What minimal information should be necessary for such a use?
Here is a possible table design.
unique_id: GUID
email_address : varchar
oath_provider_choice : varchar
oath_yahoo : varchar
oath_google : varchar
oath_microsoft : varchar
Does this make sense or is it too much?
You can access Azure Table Storage from Mobile Services using the Azure Module. I have a pretty extensive sample here (http://chrisrisner.com/Mobile-Services-and-Windows-Azure-Storage) which shows how to insert / update / delete / read tables and rows from Mobile Services Table Scripts (effectively bypassing using the SQL database). It also shows how you can use blob storage. Now that Mobile Services has Custom API, it might make more sense to use that as opposed to the table scripts. You can also communicate directly with table storage (warning: this would require having the account name / key in your client app). As pointed out in the comments, currently each table in Mobile Services generates an ID column which has to be a bigint.
I have a Windows Phone 7.1 application that currently uses data from text files. At this point I'd like to see how well my queries perform using a database.
This is the first application where no data will be written by the user, instead a number of pre-defined queries will pull the data they request.
In the past I've created the database when the application started for the first time. In this case, since I have the data they'll need, I wonder if I can just create the database (WP7.1, so I'm going to use SQL Server Compact Edition) and include it in the XAP.
I've seen How to add an existing database file into my windows phone 7 app and read data from it?, which gets me to How to: Deploy a Reference Database with a Windows Phone Application, that has an important note that:
Microsoft SQL Server Compact (SQL CE) databases that have been created on the desktop may work with a Windows Phone application, but are not officially supported.
Should I just include data files that will be loaded into a database when the application is loaded, like I've done for my CRUD applications, or can I safely include a database I've created during development?
After continuing to dig into it, I found Jerry Nixon's series on Mango databases, in particular Mango Sample: Database Part 2:2.
I found he actually laid out the steps a little more completely.
Step 1: Create the Database
Step 2: Construct your Schema and Default Data
Step 3: Include the Database in your Project
Step 4: Generate your Entities with SqlMetal
Step 5: Clean up the Data Context
The last step includes information about moving the database.
Look at this previous question here on Stackoverflow. This has been answered already here
Windows Phone 7 databases
Summarizing that answer, yes you can included pre populated DB file with your application, but it is readonly, look at these blog posts it clearly explains how to achieve this -
http://blog.arsanth.com/?p=343
http://erikej.blogspot.com.au/2012/01/windows-phone-local-database-tip.html
Thanks
Do you have any particular example for MVC3AzureApp which will display Data from the windows azure Table storage. and also CRUD Functionality for the table.
I made a simple Azure project with an MVC3 WebRole with basic CRUD functionality: Download here.
It's not pretty code and I use some bad practice, but this is just meant as an example.
Check "TableStorageController.cs" for all the table manipulation code.
Make sure you have Azure SDK 1.7, or just replace the references with older versions.
Did you get how to perform CRUD on Table Storage?
may be this can help you:
http://www.windowsazure.com/en-us/develop/net/tutorials/multi-tier-web-site/4-worker-role-a/
And do you know how to perform Aggregate functions on windows Azure Storage Table too?
I have a WPF application with back-end as Oracle11gR2. We need to enable our application to work in both online and offline(disconnected) mode. We are using Oracle standard edition(with single instance) as client database. I am using Sequnece Numbers for Primary Key Columns. Is there anyway to sync my client and server database without any issues in Sequence number columns. Please note that we will restrict creation of basic(master) data to be created only in server.
There are a couple of approaches to take here.
1- Write the sync process to rebuild the server tables (on the client) each time with a SELECT INTO. Once complete, RENAME the current table to a "temp" table, and RENAME the newly created table with the proper name. The sync process should DROP the temp table as one of its first steps. Finally, recreate the indexes and you should be good-to-go.
2- Create a backup of the server-side database, write a shell script to copy it down and restore it on the client.
Each of these options will preserve your sequence numbers. Which one you choose really depends on your skills. If you're more of a developer, you can make #1 work. If you've got some Oracle DBA skills you should be able to make #2 work.
Since you're on 11g, there might be a cleaner way to do this using Data Pump.