locked
Remote database connectivity from windows metro apps

    Question

  • like a windows app connecting to a central database on a network. can a metro app be designed leveraging the same server but I assume the connection on metro app needs to be managed via 3G or wifi connectivity.

    I don't want to use indexedDB or SQLite and neither there is web service exposed for those databases

    Friday, August 31, 2012 11:02 AM

Answers

  • windows 8 style apps dont have out of the box functionality to contact to a database. so you need webservices to conect at a remote database.

    Friday, August 31, 2012 2:02 PM
  • If you have a database on a web server for which you can write an OData service, then that's an option. You can use the OData Libraries for JavaScript available from www.odata.org for this purpose (these come from the SQL Server division within Microsoft). OData works over REST, so it means the data is on the web, not a local network, but that might still be an option for you. On the server side, building out the OData service is done with WCF Data Services and is very quick, if memory serves, if the database is in SQL Server.
    Friday, August 31, 2012 3:17 PM

All replies

  • windows 8 style apps dont have out of the box functionality to contact to a database. so you need webservices to conect at a remote database.

    Friday, August 31, 2012 2:02 PM
  • If you have a database on a web server for which you can write an OData service, then that's an option. You can use the OData Libraries for JavaScript available from www.odata.org for this purpose (these come from the SQL Server division within Microsoft). OData works over REST, so it means the data is on the web, not a local network, but that might still be an option for you. On the server side, building out the OData service is done with WCF Data Services and is very quick, if memory serves, if the database is in SQL Server.
    Friday, August 31, 2012 3:17 PM