Home Features FAQ's Downloads Ordering Links SQLDirect Web
SQLDirect FAQ's

1. What’s files required for SQLBase Server for Win32 install ?

2. What’s files required for SQLBase Client deploy ?

3. Minimum required files for connect to MS SQL Server

4. How I can connect to SQL Anywhere(or Adaptive Server Anywhere) using SQLDirect Components ?

5. What’s need for Open Client Library deploy ?

6. Can not load ‘SQLWNTM.DLL’ error

7. How I can connect to Microsoft or Sybase SQL Server ?

8. What's need for connect to Personal Oracle 7.x without TNS ?

9. Interbase application hangs in background (non-main) threads. What is wrong ?

1. What’s files required for SQLBase Server for Win32 install ?

Below you can find required files for install SQLBase Server on Win32 platform(Windows95/98 or Windows NT).

File Name Description
Dbnt1sv.exe or Dbnt?sv.exe SQLBase engine for Win32 (Window95, 98, NT), where '?' is user license for server.
Start.dbs Template database. It is necessary for create new database.
Sql.ini Configuration file for server
Message.sql Message constants and description
Error.sql Error number and description
Country.sql Country settings for foreign languages (not default-English)
Communication DLL See description of the required DLL in Sql.ini.

Most frequency used 32-bit communication libraries:

  • Sqlapipe.dll – using Anonymous Pipes for local server
  • Sqlws32.dll – using TCP/IP
  • Sqlspx32.dll – using IPX/SPX (Win32 Novell Client)
  • Sqlwsspx.dll – using IPX/SPX (Win32 Microsoft Client)

It is desirable to place all files in one directory. Then you need to tune a server configuration, i.e to set up server name, country (if you does not use default setting), communication protocol and other required settings.

The most important Sql.ini-sections for 1-User SQLBase Win32 database server are shown below.

[dbnt1sv]
servername=SRV1,sqlws32
cache=2000
sortcache=2000
; database path
dbdir=C:\Centura
dbname=TEST,sqlws32

[dbnt1sv.dll]
comdll=sqlws32

This lines contain the following information. The server SRV1 is configured for TCP/IP-protocol and has database files in the C:\Centura directory. Now the server has a installed database TEST.

For more detailed information about a server configuring and Sql.ini-keywords see Centura SQLBase Books (SQLBase Database Administrator's Guide).

Top

2. What’s files required for SQLBase Client deploy ?

Below you can view files, which required for 32-bit SQLBase Client. This client is necessary for a connectivity of 32-bit applications to SQLBase server.

File Name Description
Sqlwntm.dll, Sqlngci.dll API – interface for database connect
Sql.ini Configuration file
Message.sql Message constants and description
Error.sql Error number and description
Country.sql Country settings for foreign languages (not default-English)
Communication DLL See description of the required DLL in Sql.ini.

Most frequency used the following DLLs (by protocol):

  • Sqlapipe.dll – using Anonymous Pipes for local server
  • Sqlws32.dll – using TCP/IP
  • Sqlspx32.dll – using IPX/SPX (Win32 Novell Client)
  • Sqlwsspx.dll – using IPX/SPX (Win32 Microsoft Client)

This files have to be accessible for your applications. For this purpose, you can add SQLBase Client directory to PATH environment variable in autoexec.bat.

The following lines contain a example configuration (from Sql.ini) for connectivity by TCP/IP protocol to SQLBase server SRV1, which located on computer with HOST1 name.

[win32client]
clientname=client32

[win32client.dll]
comdll=sqlws32

[win32client.ws32]
serverpath=SRV1,HOST1/*

32-bit SQLTalk is an useful utility for testing of connectivity. It requires the following files: Sqltalk.exe, Daemon32.exe, Csfedt32.dll, Sqltne.dll and Tlkc32.dll.

For more detailed information about a client configuring and Sql.ini-keywords see Centura SQLBase Books (SQLBase Database Administrator's Guide).

Top

3. Minimum required files for connect to MS SQL Server

In the table below you can view description for the files, which are required for connectivity to Microsoft SQL Server. You can place the required files in Windows system directory (WinNT\system32 or Win95\system) or any other, which is necessary to add to the PATH environment variable.

File Name Description
ntwdblib.dll DB-Lib interface library contains functions for the WIN32 API
Communication DLL / Net Library One library for used communication protocol.

You can use one of the following Net library:

  • Dbnmpntw.dll - Named Pipes library
  • Dbmssocn.dll or dbnetlib.dll (for MSSQL 2000) - TCP/IP Sockets library
  • Dbmsspxn.dll - NWLink IPX/SPX library
  • Dbmsrpcn.dll - Multi-Protocol library

If you will use Named Pipes protocol, then it is enough to distribute the following files with your application: Ntwdblib.dll and Dbnmpntw.dll. As since Named Pipes is default Net-Library for MS SQL Client, if Net-Library entry is not exist in registry.

When you need to use other Net Library (except Named Pipes), then you need to import the following data(Net Library entry) in the system registry for connect through TCP/IP library (for example):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo]
"DSQUERY"="DBMSSOCN"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\DB-Lib]
"AutoAnsiToOem"="on"
"UseIntlSettings"="ON"

Top

4. How I can connect to SQL Anywhere(or Adaptive Server Anywhere) using SQLDirect Components?

First, you need to run SQL Anywhere as Open Server. It’s required Open Server Gateway for SQL Anywhere ver.5 and nothing for SQL Anywhere ver.6 (see SQL Anywhere Manuals for command line options).

Second, you need to install Open Client Library (see below).

Top

5. What’s need for Open Client Library deploy ?

For deploying Open Client libraries you need to copy the following files and directories from full installation:

File/Directory Name Description
\sybase\dll
  • Libcomn.dll
  • Libcs.dll
  • Libct.dll
  • Libintl.dll
  • Libtcl.dll
  • Nlmsnmp.dll
  • Nlwnsck.dll
  • Nlnwlink.dll
Includes API-interface and communication libraries.
  • Open Client and Open Server Common Library
  • Open Server Library
  • Open Client Library
  • Locale library
  • TLI library
  • Named Pipes Driver
  • WinSock TCP/IP Driver
  • NWLink IPX/SPX Driver

You can use and deploy only one network driver.

\sybase\ini
  • Libtcl.cfg
  • Objectid.dat
  • Sql.ini
Contains initialization files
\sybase\charsets Contains all charsets. You can use and copy only required charsets. In most cases, it is enough “Iso_1” and “Utf8” charset directories.
\sybase\locales Contains messages for some code pages. In most cases, it is enough a “English\Iso_1” locale directory.

Also you need set SYBASE environment variable to a path, which contains Sybase client, and add drive:\sybase\dll directory to the PATH environment variable. You can add the following line in your autoexec.bat and change X:\ on your valid driver, which contains Sybase client.

SET SYBASE=X:\sybase
SET PATH=%PATH%;X:\sybase\dll

Below you can see a content of Sql.ini for TCP/IP connect, where ASESRV is a SQL Server name, and SRVHOST(port: 5000) is a host with SQL Server.

[ASESRV]
$BASE$00=NLWNSCK,SRVHOST,5000
MASTER=$BASE$00;
$BASE$01=NLWNSCK,SRVHOST,5000
QUERY=$BASE$01;

Top

6. Can not load ‘SQLWNTM.DLL’ error

If you try to connect to SQLBase Server, then install SQLBase Client and add your SQLBase Client path to the PATH environment variable in autoexec.bat (for example, set PATH=%PATH%; X:\SQLBASE).

If you want connect to server other then Centura SQLBase, then place TSDDatabase component on a form (or a data module) and set a TSDDatabase.ServerType property to desirable server.

Top

7. How I can connect to Microsoft or Sybase SQL Server ?

I suppose you have installed Microsoft SQL Client or Sybase Open Client on your computer.

First, you need to select a valid TSDDatabase.ServerType value (stSQLServer or stSybase).

Second, TSDDatabase.RemoteDatabases property has to contain, for example, the following string “SRV:PUBS”, where SRV is SQL Server name, PUBS is a database on server SRV.

Top

8. What's need for connect to Personal Oracle 7.x without TNS ?

It is necessary to include the following line before first connect:

    SrvApiDLLs[stOracle] := 'ORA73.DLL';    // for Oracle 7.3.x
or
    SrvApiDLLs[stOracle] := 'ORA72.DLL';    // for Oracle 7.2.x

After that you can use a connect string '2:ORCL' for TSDDatabase.RemoteDatabase property for login without TNS.

Top

9. Interbase application hangs in background (non-main) threads. What is wrong ?

It is important to use a server name in TSDDatabase.RemoteDatabase property inside background threads.

Top


Any suggestions or questions send to here