奇怪的“数据右截位”
我有一段asp
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "TEAM","sa","123456"
Conn.Execute ("DELETE FROM TEAM_SecondLevel")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "TEAM_SecondLevel", Conn, 2, 3
rs.AddNew
If Not File Is Nothing Then rs("SLFileContent").Value = File.Binary
'用的是AspUpload组件,"SLFileContent"为ntext类型,File.Binary为上页表单传过来的文件内容。这句即为向SLFileContent赋值。
rs.Update
当上传的文件小于100K时都没任何问题,100K-250K时一般会出错:数据库右截位。250K以上时一定出错,错误同上。
但当我删除数据后,即rs.AddNew之前不用Conn,而别外CreateObject,比如Conn2,
再用rs.Open "TEAM_SecondLevel", Conn2, 2, 3
则10M的文件都可以上传成功,这不知是何原因???????