Click here to Skip to main content
15,897,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
hi friends ,am using android studio and sql server ,for building a dictionay ,how to insert the datas in sql server? and how to connect the sql server and android studio?if i searching the words means it will display the meaning of that words .so i want a search coding for this


What I have tried:

i tried how to insert the data in sql server but i dnt knw how to he connect in android studio and the search code for searching
Posted
Updated 13-Mar-16 23:50pm

Android Studio primarily uses Java as the default language. To do that, you would have to use the JDBC drivers to communicate with SQL Server. Microsoft JDBC Driver for SQL Server[^]. They would let you connect to the SQL engine installed, and then you can execute the queries on the server to get or insert the data.

Even then, once the application is compiled, that would be of no use. I would recommend that you use SQLite databases instead. Android has a native support for SQLite databases and that is the preferred data storage method in Android. You can learn how to store the data in Android SQLite databases and how to get that from the provided link. Saving Data in SQL Databases | Android Developers[^]

If you still want to use SQL Server, I would recommend using an API to connect to the SQL Server database through. You are not going to install SQL Server on the Android itself, are you? :-)
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900