locked
How to use the Table Storage Service in Windows 8 App using Javascript RRS feed

  • Question

  • I am working on a Windows 8 App using JavaScript. I want to use the Azure table storage as my database as the data I am storing is only a key-value pair. I do not find any link on Azure site for the same. Can I use Azure table storage service to connect with my app using javascript?


    Nitesh.
    .Net |SharePoint Consultant
    http://www.niteshluharuka.com

    Tuesday, November 6, 2012 8:24 PM

Answers

  • I believe Windows Azure Mobile Service would fit your need. Please refer https://www.windowsazure.com/en-us/home/scenarios/mobile-services/ to learn more.
    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Wednesday, November 7, 2012 8:03 AM
  • Hi, if you don't need to store sensitive data, as pointed out by Ravikumar, it is recommended to use Mobile Services, which also provide a storage service. Mobile Services allow you to use separate keys for different applications. But if you access the service directly from the client app, a clever hacker can still find the key embedded in your app, and use it to access your service without your permission. If you need to store sensitive data, then the secure solution is not to embed the key inside your client application. Instead, create a cloud service that talks with storage service (either table storage or Mobile Services), and consume the service from the client app.

    Best Regards

    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Wednesday, November 7, 2012 10:51 AM
  • Hi, mobile Services can be viewed as an alternative to table storage. It provides a storage service which requires its own key. So if you're sensitive about the key, you cannot use Mobile Services' storage service directly. It is still needed your own server. But if the data is not sensitive, for example, it's a list of products that are intended to be viewed by everyone, then you can use Mobile Services' storage service directly. Alternatively, you may want the end user to provide their own accounts. Other features provided by Mobile Services (such as Windows Live authentication and push notification) can usually be used directly without too much concern. For more information about Mobile Services, you can also post the question on http://social.msdn.microsoft.com/Forums/en-US/azuremobile/threads.

    Best Regards

    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Friday, November 9, 2012 2:39 AM

All replies

  • I believe Windows Azure Mobile Service would fit your need. Please refer https://www.windowsazure.com/en-us/home/scenarios/mobile-services/ to learn more.
    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Wednesday, November 7, 2012 8:03 AM
  • Hi, if you don't need to store sensitive data, as pointed out by Ravikumar, it is recommended to use Mobile Services, which also provide a storage service. Mobile Services allow you to use separate keys for different applications. But if you access the service directly from the client app, a clever hacker can still find the key embedded in your app, and use it to access your service without your permission. If you need to store sensitive data, then the secure solution is not to embed the key inside your client application. Instead, create a cloud service that talks with storage service (either table storage or Mobile Services), and consume the service from the client app.

    Best Regards

    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Wednesday, November 7, 2012 10:51 AM
  • Ravi, I believe mobile Services use SQL Server and cannot be use for Table Storage(which I really need to.). Let me know if I am not correct.


    Nitesh.
    .Net |SharePoint Consultant
    http://www.niteshluharuka.com

    Wednesday, November 7, 2012 6:05 PM
  • Johnson, I agree with your comments on Client hacker and have dropped the idea to embed the keys in app. Do we need to write our own cloud service to talk with storage devices or mobile services can do the same for me?

    Nitesh.
    .Net |SharePoint Consultant
    http://www.niteshluharuka.com

    Wednesday, November 7, 2012 6:06 PM
  • Nitesh with the latest release from Azure Mobile Service, now you can communicate with Azure Table Storage also. Request you to see how Node.JS communicates with Azure Storage. In the new release of AMS they have support for npm through which node.js and azure packages can be downloaded.

    Also would request you to see the blog of Nick Harris http://www.nickharris.net/2012/09/windows-8-how-to-upload-an-image-using-a-blob-storage-sas-generated-by-windows-azure-mobile-services/ where was published before the AMS new release.

    Thursday, November 8, 2012 10:06 AM
  • Hi, mobile Services can be viewed as an alternative to table storage. It provides a storage service which requires its own key. So if you're sensitive about the key, you cannot use Mobile Services' storage service directly. It is still needed your own server. But if the data is not sensitive, for example, it's a list of products that are intended to be viewed by everyone, then you can use Mobile Services' storage service directly. Alternatively, you may want the end user to provide their own accounts. Other features provided by Mobile Services (such as Windows Live authentication and push notification) can usually be used directly without too much concern. For more information about Mobile Services, you can also post the question on http://social.msdn.microsoft.com/Forums/en-US/azuremobile/threads.

    Best Regards

    • Marked as answer by Johnson - MSFT Friday, November 16, 2012 4:55 AM
    Friday, November 9, 2012 2:39 AM