Results 1 to 8 of 8
Thread: Connection the sql server
- 06-26-2008, 06:22 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 83
- Rep Power
- 0
Connection the sql server
Is there any difference in connecting to the sqlserver2000 and 2005...
i.e.,should i have to use the same code and file which i use to connect to
the sqlserver2000 to connect to 2005???
Class.forName("com.microsoft.jdbc.sqlserver.SQLSer verDriver");
connection = DriverManager.getConnection("jdbc:microsoft:sqlser ver://localhost:1433;DatabaseName=Mine", "sa", "sa");
- 06-26-2008, 10:17 AM #2
Member
- Join Date
- May 2008
- Posts
- 24
- Rep Power
- 0
Yes you can connect to MsSQL 2000 using MsSQL 2005 driver.
just google around.
The documentation has sample examples of which driver to use and to connect to Java applications.
P.S: This is crap, why do i have to have my post count more than 10 to post a link :confused: .I mean it doesnt really make any sense to me, does it?
P.S again:@OP:
im sorry i had placed the links for you to see, but this forum software didnt allow me to post the links, so just google around :)Last edited by daGame; 06-26-2008 at 10:18 AM. Reason: links
- 06-26-2008, 10:51 AM #3
Member
- Join Date
- Jan 2008
- Posts
- 83
- Rep Power
- 0
i can able to connect to database as a normal java program,but the problem comes only wen i try to connect from an applet..
- 06-26-2008, 11:28 AM #4
Member
- Join Date
- May 2008
- Posts
- 24
- Rep Power
- 0
- 06-26-2008, 11:43 AM #5
Member
- Join Date
- Jan 2008
- Posts
- 83
- Rep Power
- 0
jdbc driver..
- 06-26-2008, 11:54 AM #6
Member
- Join Date
- May 2008
- Posts
- 24
- Rep Power
- 0
Of course you are using a jdbc driver, what i meant was which type?,version?
etc error if any? im sure your driver docs has something to say to you that
you havent yet read. Read them and im sure you will have a solution. the
driver docs will have listed support to applets, if not search for a compatible driver.
- 06-26-2008, 02:41 PM #7
Member
- Join Date
- Jan 2008
- Posts
- 83
- Rep Power
- 0
Can you help me,how to find the driver type in sqlserver 2005....driver version is 2.2.002..
- 06-26-2008, 03:05 PM #8
Member
- Join Date
- May 2008
- Posts
- 24
- Rep Power
- 0
Similar Threads
-
Web-App server connection - How to hit the particular app server from the web server
By maruthi_s in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 07-15-2008, 06:11 PM -
[SOLVED] Connection to file server
By luislopezco in forum NetworkingReplies: 3Last Post: 05-21-2008, 07:00 AM -
Sql server connection problem
By tanvirtonu in forum JDBCReplies: 1Last Post: 03-31-2008, 12:46 PM -
no connection
By even in forum JDBCReplies: 15Last Post: 01-02-2008, 01:50 PM -
SQL Server 2005 Jdbc connection
By mgt83 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 07-27-2007, 04:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks