网络编程
位置:首页>> 网络编程>> Asp编程>> asp如何写入超长的字符串?

asp如何写入超长的字符串?

  发布时间:2010-06-09 18:53:00 

标签:字符串,asp,Command

如何写入超长的字符串?


    我们可使用Command写入,来完成大容量的字符串的操作:

 

dim dataconn
Set DataConn = Server.CreateObject("ADODB.Connection")
dataconn.open "yourDSN","yourName","yourPass"
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
    cmdTemp.CommandText = _
"SELECT *, UserName FROM yourField WHERE (UserName IS NULL)"
    cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
    InsertCursor.Open cmdTemp, , 1, 3
    InsertCursor.AddNew
InsertCursor("yourMemo") =strMemo
    InsertCursor.Update
    InsertCursor.close
    dataConn.close


 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com