Reputation: 1
Let me know that how can i connect to sql server in monodroid without creating web service.
Upvotes: 0
Views: 421
Reputation: 13600
Mono for Android includes the System.Data.dll assembly, which includes System.Data.SqlClient namespace support (just like MonoTouch does). To use Mono for Android's System.Data.SqlClient
implementation you'll need to enable TDS support on your SQL Server instance; see also my handy Microsoft SQL Server Setup guide for connecting to SQL Server from Mono's System.Data.SqlClient
implementation (some of which may be useful to you).
Upvotes: 1
Reputation: 14786
If you find an open-source type 4 JDBC (I here jTDS does this, though I have not personal experience) driver for SQL Server it shouldn't be too difficult to port to Android; you'll still hit problems on many devices, though, for cell network providers aren't always good about allowing traffic to "unusual" ports from cell devices.
Upvotes: 0