Solved

JSP on Linux I need to access a microsoft sql server 2005 from jsp on linux how do I do that

Posted on 2010-09-03
4
344 Views
Last Modified: 2013-11-15
JSP on Linux I need to access a microsoft sql server 2005 from jsp on linux how do I do that
0
Comment
Question by:1030071002
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
Hegemon earned 250 total points
ID: 33600306
JSP is a presentation level - what you will display.
To access the database you will need a database access tier. Of course you can put all your database access code to JSPs but his design smells.

JSP on lLinux - it does not matter if it is run on Linux or not.

Your code will need to load a MS SQL JDBC driver, establish a JDBC connection to the MySQL server. It is ok that the MS SQL server will be on a different machine under Windows.

I suggest reading  this JDBC tutorial: http://download.oracle.com/javase/tutorial/jdbc/index.html
0
 
LVL 2

Assisted Solution

by:karthi_bv
karthi_bv earned 250 total points
ID: 33603742
check below links

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2162&lngWId=2

http://support.microsoft.com/kb/313100

For  Microsoft SQL Server:
Class.forName("com.microsoft.jdbc.SQLServerDriver" );
Connection con=DriverManager.getConnection
("jdbc:host://localhost:8080/sample","sample","sa""sa");
0
 

Author Comment

by:1030071002
ID: 33818947
still working on this
0
 

Author Closing Comment

by:1030071002
ID: 33968278
yes
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now