Hi All -
we are using Adaptive Sybase 15.7 and 16 versions. We were using OLEDB connection and TD4.2. as Sybase 16 is not supporting OLEDB, we used the traditional TD connectivity using the SQL.INI
In my development machine, am able to connect to the database using SqlConnect. I used the same SQL.ini in client machine and its not working.
Here is what I did:
1. I used the iSQL command and connection to Sybase succeded.
2. Used the same Sql.ini which I used in development machine. Changed the DB name alone.
3. Tried to connect using SQLtalk. Getting 401 Cannot connect to Database error.
4. Then I setup the Sybase connection with ODBC and modified the SQL.ini to support the created ODBC.
5. This time its connected to the Database.
My guess: It could be an network issue, like listenport might not be opened. But not sure which port is using for the connection. It could be something else too.
Please let me know if you have any thoughts.
Thanks
Rahul Ramchandran
SQL.Ini attached below.
;
; Centura Software Corporation 1996
; SQLBase INItialization file
; Modified by OToulan 23/10/2013
;
[winclient.comments]
;
; Windows
;-------------
; Use this section to specify Windows client workstation parameters that are
; independent of the communications protocol(s) being used.
;
; This section is for the Windows client workstations. Here you will specify
; the COMmunication DLL(s) that the Windows application(s) intend to use.
; Use the following protocol(s) to connect to the specified SQLBase product:
;
; comdll SQLBase target
; ------ --------------
; sqldbw LOCAL single-user database engine (dbwindow.exe)
; sqlwsv LOCAL multi-tasking database engine (dbwservr.exe)
; sqlnbiow REMOTE database using NetBios
; sqlspxw4 REMOTE database on a Netware server
; sqlwsock REMOTE database using TCP/IP (WinSock)
;
;-------------------------------------------------------------------------; Added for SQLBase
[dbnt1sv]
servername=OFFLINE,sqlapipe,sqlws32
dbname=ISLAND,sqlapipe,sqlws32
centurydefaultmode=1
;dbdir=C:\DBOFF
cache=2000
oracleouterjoin=0
partitions=0
secureapi=0
dbname=I40OFF,sqlapipe,sqlws32
[dbnt1sv.dll]
comdll=sqlapipe
comdll=sqlws32
;comdll=sqlntnbi
[dbnt1sv.apipe]
debug=15,C:\dbntsrv.dbg
;-------------------------------------------------------------------------
[winclient]
clientname=WinUser
connecttimeout=5
[winclient.dll]
comdll=sqlsybw
comdll=sqlspxw
;-------------------------
; Added for SQLBase
comdll=sqlapipe
comdll=sqlws32
;-------------------------
[winclient.wsock]
[sqsgtwy]
;
mapgticursors=off
sybautocommit=off
enhancedcursors=off
yieldonservercall=0
locktimeout=0
longbuffer=4095
maperror=off
displaybinaryashex=off
checkexists=off
sybapplicationname=@appname
sybworkstationname=@appname
[win32client.comments]
;
; Win32 (Windows 95 or NT)
;--------------------------
; Use this section to specify Win32 client workstation parameters that
; are independent of the communications protocol(s) being used.
;
; This section is for the Win32 client workstations. Here you will specify
; the COMmunication DLL(s) that the Win32 application(s) intend to use.
; Use the following protocol(s) to connect to the specified SQLBase product:
;
; comdll SQLBase target
; ------ --------------
; sqlapipe LOCAL database using Anonymous Pipes
; sqlntnbi REMOTE database using NetBios
; sqlws32 REMOTE database using TCP/IP (WinSock)
; sqlspx32 REMOTE database using IPX/SPX (Win32 Novell Client)
; sqlwsspx REMOTE database using IPX/SPX (Win32 Microsoft Client)
;
[win32client]
clientname=Win32User
[DSNOption]
;ConnectUsing= System
ConnectUsing = User
[win32client.dll]
;Connects to Sybase
comdll=sqlspx32
comdll=sqlsyb32
;Connects to MSSqlServer
comdll=sqlodb32
[win32client.ws32]
;serverpath=server1,localhost/island
[sybgtwy]
;
remotedbname=SybDb,CON,DBName
longbuffer=32650
locktimeout=0
sybautocommit=on
yieldonservercall=0
sybworkstationname=@workstation
sybapplicationname=CENTURA Sybase App
checkexists=off
fetchrow=20
sybmaxmessages=0
enablemultipleconnections=on
closecursorateof=on
;sybtracefile=c:\sybase.log
[win32client.ws32]
; Resource Manager (sqlmpipe uses port 2156 explicitly declared instead of
; default port 2155
serverpath=server1,localhost,2156
[odbcrtr]
;DSN is defined in ODBC datasources-use the alias in phoenix.ini ,for eg:-PhoenxDB1 connects to DSN PhoenixSER1, which could ;point to the phoenix database in the SERVER1.You must have phoenix / staging as the default database for the DSN.
odbctrace=off
ENABLEMULTIPLECONNECTIONS=ON
;remotedbname=DBName,DSN=DNS Name
[SQLEdit]
winclient.realname=1
[win32client.syb32]
log=c:\r.log
[win32client.odb32]
log=c:\msodbc.log
[win32client.async]
debug=c:\async1.log
[win32client.wsspx]
;
[win32client.ntnbi]
;
Not connecting to Adaptive Sybase 15 using
General discussion forum about all databases other than SqlBase.
1 post
• Page 1 of 1
Not connecting to Adaptive Sybase 15 using
Post by rahulaict » 05 Jul 2021, 11:40
1 post
• Page 1 of 1
Return to “General Discussion”
Jump to
- General
- ↳ OpenText Gupta Announcements & News
- ↳ General Discussion
- ↳ Forum Discussion
- ↳ Tools, libraries, Samples & Tips
- ↳ M!Table & M!Image
- ↳ Enhancement suggestions
- ↳ Jobs, Promotions & Marketing
- Team Developer 7.x
- ↳ General Discussion TD 7.x
- ↳ Bug Reports
- Team Developer 5.x and 6.x
- ↳ General Discussion TD 5.x and 6.x
- ↳ Bug Reports
- Version independent Q & A (and older ANSI versions up to v4.2)
- ↳ General Discussion (TD version independent, non specific)
- ↳ Bug Reports (TD 4.2 and older)
- TD Mobile
- ↳ General Discussion TD Mobile
- ↳ Tools & Samples
- ↳ Bug Reports
- SqlBase & Connectivity
- ↳ SqlBase General Discussion
- ↳ SqlBase Bug Reports
- ↳ Other databases (Oracle, Sybase, SQL Server, MySql, PostgreSQL etc)
- ↳ General Discussion
- ↳ Bug Reports
- Report Builder
- ↳ General Discussion Report Builder
- ↳ Bug Reports
- Newsgroups ( newsgroup.guptaworldwide.com & talkto.guptaworldwide.com )
- ↳ Gupta newsgroups/usenet (years 1995-2010)
- ↳ comp.databases.gupta
- ↳ advanced.programming
- ↳ gupta.bugreport
- ↳ gupta.faq
- ↳ gupta.jobnet
- ↳ gupta.marketing
- ↳ gupta.wishlist
- ↳ forum.sqlbase
- ↳ forum.sqlhost
- ↳ forum.sqlwindows
- ↳ td.cdk
- ↳ td.connectivity
- ↳ td.development
- ↳ td.reportbuilder
- ↳ td.sourcecode
- ↳ td.tom
- ↳ td.web
- ↳ 3rdparty.tools
- ↳ TekTips
- Community Links
- ↳ Team Developer WIKI
- ↳ Team Developer Sample Vault
- ↳ OpenText Forum
- ↳ Other web resources
- ↳ LinkedIn Networking Group
- ↳ Thomas Uttendorfers blog
- ↳ MICSTO
- ↳ Narod
- ↳ Christian Schubert
- ↳ Ivano Osti
- ↳ CMH.Tools
- ↳ YouTube channel: TD Wiki
- ↳ YouTube channel: OpenText Gupta
- ↳ Facebook: OpenText Gupta
- ↳ Tek-Tips - SqlBase
- ↳ Tek-Tips - Centura solutions (discontinued)
Who is online
Users browsing this forum: [Ccbot] and 0 guests