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
Trying to insert values into table through a stored procedure.
The above code shows incorrect syntax near conn.Execute(spinsert)
.