I am following this article. In step # 4 TodoItem table is created in mobile service. Now when I manage the database of that mobile service, I am getting the rename feature. (manage database is the screen which opens as silverlight app). So I want to know how can I rename TodoItem table to any other name. I created as TodoItem. Mobile service and database both is having that name I can rename in manage database but how can I rename from mobile service page.
You would have to delete the old table in the portal (which no longer points to a table in SQL, because you renamed it - IT'S IMPORTANT TO DO THIS FIRST OR YOU'LL DELETE YOUR DATA!). Then create a new table in the Portal with the same name as the new table - that should automatically hook up to the existing table.
For anyone who comes along later still looking for the answer to this...
Based on ConfusedNoob's reply I verified these steps:
On Windows Azure management site (manage.windowsazure.com), go to SQL DB section
Select your DB and click "Manage". Sign in to the DB management portal.
Go to Administration and click "Design" for your DB
Select "Edit" for the table you want to rename
Change the table name to the new name, click Save
Go back to Azure management. View your Mobile Services Data.
Highlight your table that you want to rename and delete it. (Since you renamed the underlying DB table, the Mobile Services table is no longer associated with the actual table).
Create a Mobile Services table with the new table name. Your data should show up in there. Do not create the table with the new name first because it will create a new empty table instead of pointing to the existing table.
Related
I have created data in Azure Table Storage, but I am not able to view the loaded data in Table Storage without logging in to Azure Storage Explorer.
I want to view the data loaded within Azure Table Storage from the Azure Cloud portal (portal.azure.com). Is it possible to do this?
There does not appear to be any way to do this from within the Azure Portal. I would suggest using the Azure Storage Explorer.
If we want to view the table entity, Azure Storage Explorer is a good choice.
we are facing some problems as like PartitionKey was not specified in azure table storage
As I mentioned in your another SO Thread, azure table entity should have PartitionKey,RowKey properties. The following is the snippet from Azure official document.
An entity always has the following system properties:
PartitionKey property
RowKey property
Timestamp property
These system properties are automatically included for every entity in a table.
The names of these properties are reserved and cannot be changed. The developer is responsible for inserting and updating the values of PartitionKey and RowKey. The server manages the value of Timestamp, which cannot be modified.
must include the PartitionKey property in every insert, update, and delete operation.
must include the RowKey property in every insert, update, and delete operation.
From the azure portal you will need to navigate to the storage
accounts.
From storage accounts select storage account type (i.e,
tables, etc.) in the left-hand navigation panel
From the navigational panel select the storage browser and enjoy
From the main menu select SQL Database
Select SQL Editor
Enter your username and password
Voila! You will see your tables on the middle pane.
You can write your select, insert, update and delete SQL
If you click the Run button you will see the response below.
I'm creating a mobile app backend with Azure App Service. I created a database connection to an existing sqlserver db. However, when I clicked on the Easy Tables blade there were no results of the current table. How can I use the existing tables with this mobile app? Thanks
OK i figured this one out .. make sure the app connection string is correct, then go ahead and add the table to the easy tables list (like a new table), it will pick up all the existing columns in the table automatically!
Be careful: It also messes with the table structure adding deleted and roversion etc columns in azure style. It doesnt seem to delete anything though
I have created a Mobile App and Database in Microsoft Azure. Now I am trying to create Easy Tables from Mobile App but I am getting error message "You need database to use East Tables. Click here to create one.
Even though I have existing database Easy Tables doesn't list it.
Below is the screenshot.
I have mapped Data Connection with mobile app, below is the screenshot
It would be great if anyone can help, I am new to azure.
Your connection string must be created with name: MS_TableConnectionString
Just because you have a database doesn't mean it is linked. Click on Data Connections, then Add, then add your existing SQL database.
Note that Easy Tables won't recognize the existing tables unless you add them through Easy Tables. There are notes around the format of Id (it needs to be
a string) and other fields.
When you created your Database Server did you check "Allow azure services to access server"? That could be why you cannot see the Database listed.
I was deleting a single record in the Classic Azure Portal in Mobile Services Browse. The entire contents of the table has now disappeared. Please help!!! How do I restore the contents. The table and scripts are still there.
I have gone into the SQL database tab and clicked restore from point in time, this creates a new DB but does not give me an option to restore to Azure mobile services.
Restoring a database always creates a new database on the same server as the original database, so the restored database must be given a new name. Once complete, the restored database is a normal fully accessible online database charged at normal rates based on its service tier and performance level. If you are restoring the database for recovery purposes you can treat the restored database as a replacement for the original database, or use it to retrieve data from and then update the original database. Please check this article for details.
So if you are going to use the new database, you can re-configure your mobile service to use the new database as following snapshot shows(click the mobile service, go to configure tab then click change database):
In the sql server database list here:
https://manage.windowsazure.com/#Workspaces/SqlAzureExtension/Databases
I select a database and at the bottom is "Delete".
I press delete and it processes a little while then says:
Could not delete database 'system-50e5f905-...etc'
I follow a link for more details where it just says:
Bad Request
Extra info
They do not appear to be linked resources anywhere.
I have been able to create and delete a new database.
I have also connected using MS SQL server management studio and I can only see two named databases, none of the databases that have a name format of system-guid for a name.
Databases with the name format system-SOME GUID may be federations.
Deletion (Dropping) of a federation must be done within the database Management Portal for the main database.
Caution: I don't know the ramifications of dropping a federation, so make sure you have backups of data you don't want to loose or research this further.
From https://manage.windowsazure.com/#Workspaces/SqlAzureExtension/Databases
Select the main database
Select "Design your SQL database"
Log on
At the top you see "server > [DB] > Tables", Click [DB]
Federations are shown on this page and you can select them and "Drop Federation"
I deleted my database on Azure using "SQL Server Management Studio" , right click Delete.
using Code First with Update-Database command, it will re Created.