Avatar of Anthony Matovu
Anthony MatovuFlag for Uganda asked on

connection to sql server using JAVA

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
Microsoft SQL ServerJavaSQL

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
SOLUTION
slightwv (䄆 Netminder)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Ryan Chong

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
arnold

Which IDE kart form are you using to learn?
Netbeans?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy