Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2005, 08:42 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to connect to sql sever using servlets

Hi guys i am new to world of jdbc. I be happy if some one show me how to connect to sql server 2000 using java servlets. Thanks

 
Old May 18th, 2005, 06:17 AM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try{
Class.forName("sun:jdbc:odbc");
Connection con=DriverManager.getconnection('sun.jdbc.odbc:"da ta sorce name","username","password");
}






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Sever 2005 Express Edition baburman General .NET 1 June 28th, 2007 09:04 AM
SQL Sever pushpa All Other Wrox Books 0 February 22nd, 2007 07:01 AM
Connect to SQL Sever in a local computer alirezaaali SQL Server 2000 6 August 14th, 2006 05:27 AM
Connect to remote SQL Server 2000 using servlets Vinay Bansal Servlets 1 August 5th, 2005 12:22 AM
Do i have 2 specify the path a SQL sever is to use chiefouko SQL Server 2000 1 July 17th, 2003 06:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.