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?
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?
I think u need a layer to encapsulate sql server to provide operation APIs, such as web service, WCF or Domain Serveice.
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.