Inserting Data into Azure SQL Database

Hello everybody, 

I have created a SQL Database in Azure and create some tables in it. I have also inserted and read data by using some queries in Azure. I have also succesfully added my sql server in Visual Studio and my tables are showing to me but How I have to insert and read data from those tables from windows strore application???

February 4th, 2014 6:24am

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 9:32am

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

February 4th, 2014 9:33am

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 9:35am

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
February 4th, 2014 9:36am

Thanks it worked for me. :)
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 2:01pm

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

February 4th, 2014 5:31pm

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 5:31pm

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

February 4th, 2014 5:31pm

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 5:31pm

Hi,

You cannot access the SQL database directly from your store app so you have to create some sort of a "service layer". One option is to create an Web API, host that in Azure and access this API from your windows store app.

This example hopefully gives you a starting point.

Edward

February 4th, 2014 5:31pm

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 5:34pm

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
February 4th, 2014 5:34pm

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 5:34pm

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
February 4th, 2014 5:34pm

Hi,

I don't think ADO.NET is available from Windows Store Apps. The way I see it there are two options that immediately come to mind:

  • There is a good post that illustrates how to expose SQL data from WebAPI for a Windows Store app.
  • You can use the Windows 8 SDK for Mobile Services and hook up a Mobile Service to your database (this provides limitations about how you interact with your database to fit in with the Mobile Services structure, but means you don't have to implement a separate API).
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2014 5:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics