1、在从SQL的 TXT字段中获取数据时,不能用缺省的forward-only光标。
2、当大量的插入时,要用 INSERTTEXT 和 UPDATETEXT命令。
以下有例子:
<!-- #INCLUDE VIRTUAL="adovbs.inc" -->
<%
Set MyCon=Server.CreateObject("ADODB.Connection")
Set RS=Server.CreateObject("ADODB.RecordSet")
MyCon.Open "DSN=MyDSN;UID=ME;PWD=Secret"
' Create a SQL Insert String
MySQL="INSERT MyTable (MyTextColumn) VALUES ('Some really long string')"
' Insert the string into the table named "MyTable"
MyCon.Execute MySQL
' Open the RecordSet with a Static Cursor for a TEXT Column
RS.Open "SELECT MyTextColumn FROM MyTable",MyCon,adOpenStatic
Response.Write(RS("MyTextColumn"))
RS.Close
MyCon.Close
%>