我的sqlserver有如下字段:
test1 varchar(255)
test2 text
test3 text
test4 text
test5 text
调用显示的时候报错。把所有text类型全部改成varchar就完全没问题。
程序是肯定没错的,因为改了数据类型就没错,况且程序就那么几句,很简单。
大家有没遇到这个问题?
请教答案。
...全文
2697打赏收藏
使用sql的text类型的问题。
我用sqlserver做数据库,jsp写程序,tomcat连接池。 我的sqlserver有如下字段: test1 varchar(255) test2 text test3 text test4 text test5 text 调用显示的时候报错。把所有text类型全部改成varchar就完全没问题。 程序是肯定没错的,因为改了数据类型就没错,况且程序就那么几句,很简单。 大家有没遇到这个问题? 请教答案。
USE pubs
GO
EXEC sp_dboption 'pubs', 'select into/bulkcopy', 'true'
GO
DECLARE @ptrval binary(16)
SELECT @ptrval = TEXTPTR(pr_info)
FROM pub_info pr, publishers p
WHERE p.pub_id = pr.pub_id
AND p.pub_name = 'New Moon Books'
WRITETEXT pub_info.pr_info @ptrval 'New Moon Books (NMB) has just released another top ten publication. With the latest publication this makes NMB the hottest new publisher of the year!'
GO
EXEC sp_dboption 'pubs', 'select into/bulkcopy', 'false'
GO