Reputation: 2562
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
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
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