Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2007, 04:09 PM
Member
 
Join Date: May 2007
Posts: 38
Marty is on a distinguished road
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,7000

Last edited by Marty : 06-01-2007 at 05:39 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-14-2007, 05:53 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
This does not work for you?
Connection connection = DriverManager.getConnection(url, username, password);
with the URL being something like:
Code:
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
expect of course with the string needed for sybase (as I am using oracle).

Last edited by pegitha : 05-14-2007 at 06:13 PM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-14-2007, 06:06 PM
Member
 
Join Date: May 2007
Posts: 42
Freddie is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
connection problem subash Database 5 04-22-2008 11:17 AM
JSP - using connection cache Java Tip Java Tips 0 01-30-2008 11:54 AM
no connection even Database 15 01-02-2008 03:50 PM
JDBC connection Java Tip Java Tips 0 11-10-2007 09:39 PM
connection pool for db2 paty Database 1 08-06-2007 04:43 AM


All times are GMT +3. The time now is 01:13 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org