Website and SQL database connection

25 pts.
Tags:
Database connectivity
JSP
SQL Server
SQL Server connectivity
SQL Server development
Web development
Can anybody tell me how to connect the MS SQL database with the JSP pages. I got the IP address and username with the password. I know how to connect it in a local system but I don't know how to connect it with the database in the web server. Please help me to solve this matter.

Answer Wiki

Thanks. We'll let you know when a new response is added.

You’ll need to use the information you have to create the connection string.

You’ll then need to open the connection and execute the query that you want.

Here is an example you could find useful.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: