dbTalk Databases Forums  

Connecting to a remote server via asaodbc

sybase.public.sqlanywhere.linux sybase.public.sqlanywhere.linux


Discuss Connecting to a remote server via asaodbc in the sybase.public.sqlanywhere.linux forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nandan Marathe
 
Posts: n/a

Default Connecting to a remote server via asaodbc - 05-25-2009 , 05:42 AM






Hi,
I am trying to create a asaodbc connection in IQ to connect from a
12.7 IQ server to another 12.7 remote IQ server on solaris platform. I
have dsn defined for the remote iq server and fire the following sql
commands:

1> create server remoteiq class 'aseodbc' using 'IQSRV2'
2> go
1> create externlogin DBA to remoteiq remote login DBA identified by SQL
2> go
1> forward to remoteiq
2> go
(return status = 0)
1> select @@servername
2> go
Msg 11206, Level 16, State 0:
ASA Error -656: Unable to connect to server 'remoteiq': [Sybase][ODBC
Driver
Loader] Data source not found and no default driver specified
1> quit

The $ODBCINI points to the .odbc.ini file which has the dsn IQSRV2
defined. I also tried to directly connect to IQSRV2 using the ODBC dsn
defined and it works fine. What could be the problem here? Is it that
the server is internally looking for a different dsn source?

Regards,

Reply With Quote
  #2  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: Connecting to a remote server via asaodbc - 05-25-2009 , 08:56 AM






Nandan,

1. This is a SQL Anywhere-specific newsgroup. IQ questions should be
posted to sybase.public.iq.

2. The "USING" clause for remote servers usually specifies a complete
connection string, with the driver also specified on UNIX if necessary:

See:
http://dcx.sybase.com/1101en/dbusage...mni-using.html

CREATE SERVER RemoteASE
CLASS 'ASEODBC'
USING
'/opt/sybase/ase_odbc_1500/DataAccess/ODBC/lib/libsybdrvodb.so;dsn=IQSRV2';

Regards,

Nandan Marathe wrote:
Quote:
Msg 11206, Level 16, State 0:
ASA Error -656: Unable to connect to server 'remoteiq': [Sybase][ODBC
Driver
Loader] Data source not found and no default driver specified
1> quit

The $ODBCINI points to the .odbc.ini file which has the dsn IQSRV2
defined. I also tried to directly connect to IQSRV2 using the ODBC dsn
defined and it works fine. What could be the problem here? Is it that
the server is internally looking for a different dsn source?
--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/


Reply With Quote
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.