动态sql问题
rs2.open "update Userinfo set hpicture ='" + pic + "' where code='"&session("name1")&"'",conn,1,3'set conn=Server.CreateObject("ADODB.Connection")
Set rs3= Server.CreateObject("ADODB.Recordset")
'conn.Open "Provider=SQLoledb;data source=YAO;UID=;PWD=;Initial Catalog=rainbow;Integrated Security=SSPI"
rs3.open "select picture from ["&session("name1")+"book"&"]",conn,1,3
rs3.addnew
rs3("picture")=pic
rs3.update
老出现下面错误:
Microsoft OLE DB Provider for SQL Server '80040e37'
对象名 'book' 无效。
\a.asp, line 15
请高手指点