自定义函数有这种限制么?如果出现问题的话,说明你的ocdb不完全支持Sql2000。
或者是这个样子:CREATE FUNCTION SalesByStore (@storeid varchar(30))
RETURNS TABLE
AS
RETURN (SELECT title, qty
FROM sales s, titles t
WHERE s.stor_id = @storeid and
t.title_id = s.title_id)
或者是这个样子:CREATE FUNCTION SalesByStore (@storeid varchar(30))
RETURNS TABLE
AS
RETURN (SELECT title, qty
FROM sales s, titles t
WHERE s.stor_id = @storeid and
t.title_id = s.title_id)
原因是PB的连接方式DB-Library的驱动是6.x的不支持最大255字符你用ODBC连接问题可以解决。或者改为text类型
连接时设置"DBTextLimit='999999'"