locked
Connect C++ UWP App with Azure SQL Database RRS feed

  • Question

  • Hi,

    I want to connect my existing C++ UWP app with newly created Azure SQL database.

    Is there any sample app or guideline to do that?

    Thanks,

    /vikas

    Thursday, July 28, 2016 2:51 AM

Answers

  • Hello Vikas,

    Azure Mobile Apps does not support C++ - we support JavaScript, C#, Swift, Objective-C (iOS) and Java (Android).

    Thursday, July 28, 2016 6:07 PM
  • You can't use Azure Mobile Apps client SDKs from C++. However, you can make REST API calls to a Mobile Apps service. Some Azure services have C++ SDKs, but not all. You'd have to check individual services. 
    • Marked as answer by Vikas-Gomia Friday, July 29, 2016 10:12 PM
    Friday, July 29, 2016 8:51 PM

All replies

  • Hello Vikas,

    Thank you for posting here!

    In the Setting blade of your app, click Quick start -> Your client app platform -> Connect a database.

    In the Add data connection blade, click SQL Database > Use an existing database and then select that database.

    For more information, please refer this link, https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-windows-store-dotnet-get-started/

    Also, you can download sample projects here, https://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=ProgrammingLanguage&f%5B0%5D.Value=C%2B%2B&f%5B0%5D.Text=C%2B%2B&f%5B1%5D.Type=Platform&f%5B1%5D.Value=Windows%20RT&f%5B1%5D.Text=Windows%20Store%20apps&f%5B2%5D.Type=Topic&f%5B2%5D.Value=universal%20app

    Hope this helps.

    Regards,

    Swikruti

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.
    Thursday, July 28, 2016 2:26 PM
  • Hi,

    Second link which you have provided has one sample for SQL Database connect, but it is using Javascript language.

    I still do not find any C++ application which shows the steps to connect to Azure SQL database.

    Do we have all the capabilities available with UWP C++ application as mentioned for a sample C# application here - 

    https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-windows-store-dotnet-get-started-offline-data/

    As I am not able to find similar interface references in C++ through MSDN.

    Thanks,

    /vikas


    • Edited by Vikas-Gomia Thursday, July 28, 2016 5:03 PM Added relevant question
    Thursday, July 28, 2016 3:41 PM
  • Hello Vikas,

    Azure Mobile Apps does not support C++ - we support JavaScript, C#, Swift, Objective-C (iOS) and Java (Android).

    Thursday, July 28, 2016 6:07 PM
  • You just gave me biggest heart attack !! 

    Kidding.. 

    Disappointed though. Now I am thinking to move to C# in order to get advantage of Azure mobile apps.

    So Just to be on the same page, do you mean

    a) that C++ UWP app cannot integrate with Azure ?

    b) C++ UWP can integrate with Azure but Microsoft will not provide any API support in client application?

    c) There is no one to one mapping available for C# and C++ APIs required to connect to Azure services like using SQL, Notification Hub etc.

    Thanks,

    /vikas

    Thursday, July 28, 2016 6:46 PM
  • You can't use Azure Mobile Apps client SDKs from C++. However, you can make REST API calls to a Mobile Apps service. Some Azure services have C++ SDKs, but not all. You'd have to check individual services. 
    • Marked as answer by Vikas-Gomia Friday, July 29, 2016 10:12 PM
    Friday, July 29, 2016 8:51 PM