Click here to Skip to main content
14,773,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing one application.For that I want to use SQL server database. How can I define the connection string of ms SQL server in android studio so that i can use that in other java class files of my android project like defining connection string in visual c# app config file.

What I have tried:

I googled but failed to find any suitable answers which I can use.
Posted
Updated 24-Oct-19 2:16am
v2
Comments
David Crow 24-Oct-19 13:31pm
   
If you derived a class from SQLiteOpenHelper, you can put the (query) strings in it. There's not a "connection string" per se.
vijay_bale 26-Oct-19 4:22am
   
Ms SQL Database stored in server. So I want to access that database and insert some records, modify and delete some records

1 solution

   
v2
Comments
vijay_bale 24-Oct-19 7:14am
   
I asked how and where to define Connection string in android so that i can use that in every java class of my project.

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