Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a Web application , I have written MySQL code for connecting to database , But at my work place they have MS-SQL server , thus Do I have to change full code for database connection or any simple modifications can be done !! Kindly help me out , I am very much new to JAVA,
Thanks in Advance
Depends,
if you use standard SQL statements you should be able to just specify the new jdbc driver and login information and it should work.
But when you used features from MySQL not available in MS SQL then you will have to modify these parts in the source code.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
What is the exact purpose of jndi.Why i need to depends on server for my database connection.I can get the same database connection in normal ojdbc itself.
please help me with that.
Thanks n advance
These are some pointers why i personally prefer JNDI over harcoded configurations in code.
Application can work with any database since it does not need to
bundle the driver.
Multiple applications running on server can use the same connection
pool which might be better use of resources.
This allows container to perform XA transactions in case other
databases are used.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
My question is simple, almost all the answers I find have been deprecated. What is currently the best way to connect an Android App to a MySQL database?
I once created an application following this tutorial on Youtube
How to Connect Android with PHP, MySQL - Best Android Studio Tutorial
I would like you to watch this, it is gonna help you a lot.
Please let me know if it helps you!!!
I believe the general opinion will be any kind of api to mediate between the database and the app. Never connect directly to it.
A REST api served by a php server should make it, given you added the php tag on purpose
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have got a requirement to connect Active directory systems through LDAP URL. I need to start this development very easiest way and looking to deliver this ASAP. Kindly share your thoughts.
I will be using Oracle JDeveloper for this development.
pure java example:
http://www.adamretter.org.uk/blog/entries/LDAPTest.java
If you can use Spring, go with spring-ldap:
http://projects.spring.io/spring-ldap/
Spring is really good library to handle ActiveDirectory connectivity. Just read the manual thats all.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How I connect my app to my database I am using XAMPP server ? and update my result automatically through server?
You'll have to code a web service in Php or any other language which will return or store data when queried. Take a look at this tutorial here. Best of luck!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hi every one I'm doing a small program to listen and notify using POSTGRESQL and JAVA. I just want to get notification message, to be stored in a file or MySQL database. Can any one guide me where I can find documentation or sample code for this.
Assuming that you are using JDBC, you can use the PostgreSQL extensions of the standard. In particular, you need the org.postgresql.PGNotification class to receive notifications that you have to explicitly poll for. See the JDBC documentation here. There is a fully worked-out example in the docs.