如何连接sql azure与android app和sql server

时间:2015-07-07 07:14:59

标签: android sql-server azure

想知道如何将sql azure与android app和sql server连接?

步骤1:我想在sql server和azure mobile services / azure sql database中使用现有数据库(dbo schema和其他)之间的实时同步。

  • 如果我使用Microsoft SQL Data Sync Agent连接它,我该怎么办 去做?例如将id列添加到现有表中。
  • 你还有其他方法比这个或任何其他建议更好吗?

第2步:我想将android应用程序连接到azure移动服务或azure sql数据库。

  • 如何使用Windows Azure移动服务将Android应用程序连接到现有的Azure SQL表(来自上一步)。
  • 我正在尝试使用jdbc和jtds连接我的Android应用程序中的SQL Azure,但它不起作用。你有其他方法或任何其他建议吗?

1 个答案:

答案 0 :(得分:1)

您正在使用 Android 。所以,你需要去: -

切换到Android Studio,如果你已经这样做了,那就没关系了。 使用Microsoft Azure Mobile Services提供的教程。 以下是Android入门链接: -

对于全新的数据库和新的移动服务:

https://github.com/Azure/azure-mobile-services/blob/master/docs/mobile-services-android-get-started.md

编辑:更新了损坏的链接