Unix Technical Forum

PB8 vs PB10.2.0 - Failed to initialize OpenClient

This is a discussion on PB8 vs PB10.2.0 - Failed to initialize OpenClient within the Sybase forums, part of the Database Server Software category; --> The following code is used in PowerBuilder 8.01 to set a pointer to the Sybase OpenClient software and define ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 07:09 PM
hatfieldrc@gmail.com
 
Posts: n/a
Default PB8 vs PB10.2.0 - Failed to initialize OpenClient

The following code is used in PowerBuilder 8.01 to set a pointer to the
Sybase OpenClient software and define the SQLCA object.

type prototypes
FUNCTION boolean SetEnvironmentVariableA ( string szName, string
szValue ) LIBRARY "kernel32.dll"
end prototypes

SetEnvironmentVariableA("SYBASE", "R:\Sybase")

SQLCA.DBMS = "SYC Adaptive Server Enterprise"
SQLCA.Database = s_dbname
SQLCA.LogId = s_userid
SQLCA.LogPass = s_password
SQLCA.ServerName = s_server
SQLCA.AutoCommit = TRUE
SQLCA.DBParm = "CommitOnDisconnect='No',Release = '12',Lock = '3',
AppName = 'MY Application', PWDialog =
1,PBCatalogOwner='dbo',ConnectString='UID="+s_user id+",PWD="+s_password+"'"

Connections work fine in PowerBuilder 8, but PowerBuilder 10.2.0
returns an error message stating that the application failed to
initialize the client.

Any hints?
TIA,
Chris Hatfield
Falls Church, Virginia
US of A

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 07:10 PM
SybaseNeal
 
Posts: n/a
Default Re: PB8 vs PB10.2.0 - Failed to initialize OpenClient

Hello,

What version of Open Client are you using?
Type the following command to find the version:
c:\ find /I "Intel" c:\sybase\ocs-12_5\dll\libct.dll
or
find /I "Intel" c:\sybase\dll\libct.dll

Does that version match what you have in In the database
profile setup (SYC) "Release dropdown"?

Are the Open Client DLL and BIN subdirectories in the PATH environment
variable?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com