sai
sai

Reputation: 2562

How to connect with sql server to develop android app?

I have a task to connect to connect to a SQL Server in the network to develop an android app using C#.NET in Visual Studio 2010.

How do I connect to SQL Server?

Where do I have to write the connection string?

How do I have to call that method?

Upvotes: 0

Views: 765

Answers (2)

jeet
jeet

Reputation: 29199

You can not access directly to DB, you would need some api to access the database server, I would recommend to use webservices, which will provide an interface between your db and your application.

Upvotes: 0

Gavin Fang
Gavin Fang

Reputation: 367

I think u need a layer to encapsulate sql server to provide operation APIs, such as web service, WCF or Domain Serveice.

Upvotes: 1

Related Questions