返回首页

gbase数据、南大通用产品文档:GBase8s跟踪触发操作

更新日期:2024年09月11日

如果触发操作并未按您所期望的那样运行,那么将其放置在 SPL 例程中,并使用 SPL
TRACE 语句来监视其操作。在启动跟踪之前,必须使用 SET DEBUG FILE TO 语句将输
出定向到文件。

随同 GBase 8s ODBC Driver 的 ODBC 包括几个组件。
随同 GBase 8s ODBC Driver 的 ODBC 可包括下列组件:

Driver manager
可链接至驱动程序管理器的应用程序,
其链接至数据源指定的驱动程序。
驱动程序管
理程序还检查参数和事务。
在大多数 UNIX™ 平台上,
都可从第三方供应商购买 ODBC
Driver Manager。
在 Microsoft™ Windows™ 平台上,ODBC Driver Manager 是 OS 的一部分。

GBase 8s ODBC Driver
驱动程序提供至 GBase 8s 数据库服务器的接口。应用程序可在下列配置中使用驱
动程序:
o
要链接至 ODBC 驱动程序管理器
o
要链接至 Driver Manager Replacement & 驱动程序
o
要直接链接至驱动程序

GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 7 -

数据源
驱动程序提供至下列数据源的访问:
o
包括数据库服务器的数据库管理系统(DBMS)
o
数据库
o
访问数据库所需的操作系统和网络软件

SQLBrowseConnect 支持发现和枚举连接到数据源所需的属性和属性值的迭代方法。
每次调用 SQLBrowseConnect 都会返回连续的属性和属性值。枚举所有的级别,完成到数
据源的连接,并返回新连接到数据源的返回码的 SQLBrowseConnect 字符串。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
01004
-11003
Data truncated
01S00
-11005
Invalid connection string attribute
08001
-11015
Unable to connect to data source
08002
-11016
Connection in use
08S01
-11020
Communication-link failure
28000
-11033
Invalid authorization specification
IM002
-11041
Data source not found and no default driver specified
IM003
-11042
Specified driver could not be loaded
IM004
-11043
Driver's SQLAllocEnv failed
IM005
-11044
Driver's SQLAllocConnect failed
IM006
-11045
Driver's SQLSetConnectOption failed
IM009
-11048
Unable to load translation shared library (DLL)
IM010
-11049
Data-source name too long
IM011
-11050
Driver name too long
IM012
-11051
DRIVER keyword syntax error
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1090
-11071
Invalid string or buffer length
S1T00
-11094
Time-out expired
08S01
-11301
A protocol error has been detected. Current connection is
closed.
S1000
-11303
Input connection string too large
S1000
-11317
Invalid connectdatabase value specified
S1000
-11318
Invalid vmbcharlenexact value specified
S1000
-11320
Syntax error

GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 213 -

SQLSTATE
错误值
错误消息
S1000
-11323
The statement contained an escape clause not supported by
this database driver