dbTalk Databases Forums  

connection parm

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss connection parm in the sybase.public.sqlanywhere.general forum.



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

Default connection parm - 08-13-2009 , 10:39 PM






I used below connectionparm to connect remote ASA 8.0
database server. But it fails, pls advise.

SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='Driver=Adaptive Server
Anywhere 8.0;" &
+ "UID=dba;PWD=mapping;" &
+ "START=C:\Program Files\Sybase\SQL Anywhere
8\win32\dbeng8.exe;" &
+ "DATABASENAME=ers;" & + "ENG=ers_999;" &
+ "LINKS={TCPIP;DOBROAD=NONE;PORT=2638};" & +
"AUTOSTOP=NO;" &
+ "Charset=cp950;" &
+ "CommitOnDisconnect=NO;" & +
"',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NO PROMPT'"

Reply With Quote
  #2  
Old   
Chris Keating [Sybase iAnywhere]
 
Posts: n/a

Default Re: connection parm - 08-14-2009 , 07:14 AM






You don't need to have START connection option since you are connecting
to an remote engine which should already be running.

The LINKS connection option should be written as:

LINKS=TCPIP{DOBROAD=NONE;HOST=<machine_name_or_ip> ;PORT=2638)

With DOBROAD=NONE, you must specify the HOST in your TCPIP protocol options.

ken wrote:
Quote:
I used below connectionparm to connect remote ASA 8.0
database server. But it fails, pls advise.

SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='Driver=Adaptive Server
Anywhere 8.0;" &
+ "UID=dba;PWD=mapping;" &
+ "START=C:\Program Files\Sybase\SQL Anywhere
8\win32\dbeng8.exe;" &
+ "DATABASENAME=ers;" & + "ENG=ers_999;" &
+ "LINKS={TCPIP;DOBROAD=NONE;PORT=2638};" & +
"AUTOSTOP=NO;" &
+ "Charset=cp950;" &
+ "CommitOnDisconnect=NO;" & +
"',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NO PROMPT'"

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 - 2012, Jelsoft Enterprises Ltd.