We help IT Professionals succeed at work.

connection to sql server using JAVA

31 Views
Last Modified: 2020-04-23
I am totally new to JAVA,  I want to connecto to a sql server database with the following details

  sqldb = New SqlClient.SqlConnection("Server=M-PC\DBS;Initial Catalog=datranDb;Persist Security Info=True;User ID=datranuser;Password=MeatAlway***;")

I really don't know  the steps to go through to to have a connection and read data from the database.

Thanks

Anthony
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Which IDE kart form are you using to learn?
Netbeans?
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.