android应用程序中的sql server存储过程 [英] Sql server stored procedure in android application

查看:129
本文介绍了android应用程序中的sql server存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我是Android应用程序的新手。但最近我开发了一个小型的Android应用程序。现在我不会将我的应用程序连接到SQL-Server数据库以获取登录凭据并将数据加载到网格视图中。但现在我不知道如何在android应用程序中调用或执行SQL-Server存储过程。那么你们可以请帮忙解决如何在我的Android应用程序中执行存储过程。



提前谢谢

解决方案

为了实现这一点,您需要创建一个Web服务,它可以与数据库交互并将其与您的应用程序一起服务。

我假设您知道如何从服务中获取数据到.NET客户端,所以你想要的就是,在Android上使用这个服务。



遵循这个教程:

WCF和Android第一部分 [ ^ ]

WCF和Android:第二部分 [ ^ ]



-KR

首先在android应用程序中,你要调用webservice ..



Ex:

http://你的服务器ip和port / WebServiceName.asmx / 你的方法名称



然后在Visual Studio中你必须创建方法名称你在Android应用程序中指定的内容



通过该方法调用SQL-SERVER





希望清楚


Hi friends,

I am new to android application. But recently i developed a small android application. Now i wont to connect my application to SQL-Server database for log in credentials and loading data into grid view. But now i don't know how to work with calling or executing the SQL-Server stored procedures in android application. So can u guys please help for how to execute stored procedures in my android application.

Thanks in advance

解决方案

In order to achieve this, you need to create a Web Service, which can interact with the database and server this to your application.
I assume that you know how to fetch the data from service to .NET client, So all you want is, consume this service on Android.

Follow this tutorials :
WCF and Android Part I[^]
WCF and Android: Part II[^]

-KR


First thing is in android application, you want to call webservice..

Ex:
"http://ur server ip along with port/WebServiceName.asmx/ur Method Name"

Then in Visual studio You have to create Method name what u have specified in android app

Through that method call SQL- SERVER


Hope it clear


这篇关于android应用程序中的sql server存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆