OceanDesigner
Programmer
I have seen plenty of postings that cover this, but I am still getting a syntax error near my parameter. I could use some help sorting out the syntax. I have tried several variations of the following:
The procedure is as follows:
Code:
'conn is the connection variable
SQL = "Execute DeleteClaim('255001-101')"
conn.Execute(SQL)
The procedure is as follows:
Code:
CREATE PROCEDURE DeleteClaim @Claim VARCHAR(10) AS
INSERT INTO tblWarrantyDeleted SELECT * FROM tblWarranty WHERE tblWarranty.WarrantyClaimNumber = @Claim
DELETE FROM tblWarranty WHERE WarrantyClaimNumber = @Claim
GO