Results 1 to 3 of 3
Thread: S.O.S SyBase Connection
- 05-14-2007, 02:09 PM #1
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
S.O.S SyBase Connection
Hi guys,
From sybase webpage I've downloaded a jconn3.jar file, I'm trying to connect from a class and I can't!
Please if someone of you have the sentence of connection to the sybase,Can you send me??? is very urgent
I do not want to use DNS (ODBC), they have said to me that I have to do an odbc ... I want to connect directly, thank you for everything.
PD. The base of information is remote. Name of the server: MED and his(her,your) ip is: 10.1.1.82,7000Last edited by Marty; 06-01-2007 at 03:39 PM.
- 05-14-2007, 03:53 PM #2
Member
- Join Date
- Apr 2007
- Location
- Indiana
- Posts
- 83
- Rep Power
- 0
This does not work for you?
Connection connection = DriverManager.getConnection(url, username, password);
with the URL being something like:
expect of course with the string needed for sybase (as I am using oracle).Java Code:String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
Last edited by pegitha; 05-14-2007 at 04:13 PM.
- 05-14-2007, 04:06 PM #3
Member
- Join Date
- May 2007
- Posts
- 41
- Rep Power
- 0
Hi Marty:
I connect to Sybase with java, and wue use DBVisualizer, and
Squirrel-sql. as a clients
There are 2 types of server in sybase:
1 - Sybase Adaptive Server Anywhere
2 - Sybase Adaptive Server Enterprise
The url format is different in 1 and 2.
You have to find what type is your server
I give you some url so you try:
type one:
format:
jdbc:sybase:Tds:<host>:<port>?ServiceName=<DBNAME>
example:
jdbc:sybase:Tds:endeavor.mcilink.com:10000?Service Name=TEST40_SQL
type 2:
format:
jdbc:sybase:Tds:<host>:<port>/<DBNAME>
example:
jdbc:sybase:Tds:kenobi2:10010/tsbd_dca
ah! You have to provide the user and pass
good luck
Similar Threads
-
connection problem
By subash in forum JDBCReplies: 5Last Post: 04-22-2008, 09:17 AM -
JSP - using connection cache
By Java Tip in forum Java TipReplies: 0Last Post: 01-30-2008, 09:54 AM -
no connection
By even in forum JDBCReplies: 15Last Post: 01-02-2008, 01:50 PM -
JDBC connection
By Java Tip in forum Java TipReplies: 0Last Post: 11-10-2007, 07:39 PM -
connection pool for db2
By paty in forum JDBCReplies: 1Last Post: 08-06-2007, 02:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks