failing to connect to Ianywhere remote db

Questions and answers regarding general SQL and backend databases

failing to connect to Ianywhere remote db

Postby Odysseus » Thu Mar 18, 2004 1:26 pm

Hi,

setup:
Servoy Server running on W2Kpro
Ianywhere running on same machine
Developer running on OSX
changed succesfully the repository pointing to the W2K machine

Now trying to connect to another DB running on W2K machine. DB is called R2L is running on port 49152 as indicated by Ianywhere.
Using this connection string:

jdbc:sybase:Tds:10.0.1.10:49152?ServiceName=R2L&CHARSET=utf8

gives Cannot setup server and in Details: java.sql.SQLException:JZ0C0: Connection is already closed.

Anybody an idea on what's going on ?

TIA
Odysseus

Citizen of Old Europe
Odysseus
 
Posts: 205
Joined: Wed Sep 10, 2003 9:34 pm
Location: Belgium

Postby IT2Be » Thu Mar 18, 2004 3:34 pm

Have you set the correct characterset in either the db andor the connection string?

The characterstring in the connectionsting is dat of unicode. I experienced that the default setup of ianywhere (mac os) is latin. What happens if you leave the characterset bit away?
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Odysseus » Thu Mar 18, 2004 3:54 pm

I don't think it has to do with the charset. Used on the local developer I can connect to the db. I'm thinking now it has to do with making a "networked" db in ASA. I'm looking into it on how one creates a networked DB in ASA?

Any suggestion welcome since I need this thing working today :(

TIA
Odysseus

Citizen of Old Europe
Odysseus
 
Posts: 205
Joined: Wed Sep 10, 2003 9:34 pm
Location: Belgium

Postby IT2Be » Thu Mar 18, 2004 4:58 pm

I am certainly not an expert but what you want to do doesn't ring me a bell. I hope this works. Do you have the right driver? Have you checked that setting I suggested?
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Odysseus » Thu Mar 18, 2004 4:58 pm

Problem Solved :D :D

Everything in Servoy was correct but I needed to start the DB as a networked db, not as a local DB.

Now the real work will start ....

Thanks Marcel for looking into the prob
Odysseus

Citizen of Old Europe
Odysseus
 
Posts: 205
Joined: Wed Sep 10, 2003 9:34 pm
Location: Belgium

Postby IT2Be » Thu Mar 18, 2004 5:00 pm

great news...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 24 guests