Dim conn, spinsert
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open " Provider=sqloledb;Data Source=eightprinter;Initial Catalog=Movetest;User Id=moving;Password=moving123"
If conn.errors.count = 0 Then
Response.Write "Connected <br>"
spinsert = "dbo.Sp_Companydetails_Insert "&errCompname&" , "&errUser&" ,"&errPwd&" ,"&errBilling&","&errRbmover&","&errStatus&","&errSales&","&errContract&","&errMail&","&errPhone&","&errComment&","&errCreated&" ,"&errModified&""
conn.Execute(spinsert)
conn.close
End if
尝试通过存储过程将值插入表中。
上面的代码显示conn.Execute(spinsert)
附近的语法不正确。
答案 0 :(得分:3)
您可以在此Microsoft支持页面上找到有关使用ADO与ASP页面调用存储过程的正确方法的信息http://support.microsoft.com/kb/164485