请教:Sybase的CT/Library 和以前的DB/Library有什么区别啊?

[复制链接]
查看11 | 回复6 | 2009-9-22 13:26:04 | 显示全部楼层 |阅读模式
以前一直用DBLIB,后来不断看到CT-LIB,不知道2者有什么区别和联系,性能上相差大吗?SYBASE开发CT-LIB的目的是什么呢?
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
ctlib更好用,性能更好!具体的可以查查http://sybooks.sybase.com上的资料
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
最初由 I_love_sybase 发布
[B]ctlib更好用,性能更好!具体的可以查查http://sybooks.sybase.com上的资料 [/B]


楼主为什么这么说呢?以前的开发一直用DBLIB的,也没感觉什么不好的啊。CT-LIB的优势到底在什么地方啊?
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
好像OCS高版本只提供ct-library吧!
用dblib写的程序在连接ctlib库时应该只需要很小的改变
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
最初由 I_love_sybase 发布
[B]好像OCS高版本只提供ct-library吧!
用dblib写的程序在连接ctlib库时应该只需要很小的改变 [/B]

CT-LIB性能提高了,一些功能优化了,如compute结果集方便了。
改正了一些错误,如cursor,在linux下基本能使用了(AIX下还有问题)
SYBASE宣称今后不支持DB-LIB了。
应用程序从DB-LIB改CT-LIB,几乎要重写。
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
Converting a DB-Library program to its Client-Library equivalent
generally involves the following steps:
? Replace DB-Library header file names with the Client-Library header
file name
? Plan the code conversion. Client application code can be split roughly
into the categories covered in this chapter:
? Initialization and cleanup code
? Code that opens a connection
? Error and message handlers
? Code that sends commands
? Code that processes results
Each section shows equivalent DB-Library and Client-Library
program logic. Before beginning the conversion, read these sections
to ensure that you understand Client-Library fundamentals. ? Perform the conversion:
Replace or remove DB-Library declarations, as appropriate.
回复

使用道具 举报

千问 | 2009-9-22 13:26:04 | 显示全部楼层
另外ASE的Bulk-Library,提供用户利用C(++)快速倒入数据的方法。可以实现用户自己特定的bcp工具。特别推荐!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行