I’ve got a stored procedure that I’m trying to reference in my VB code. I’ve tested it in the Query Analyzer and it works fine, but when I run it in my program it bombs. Here’s my proc:
CREATE PROCEDURE deleteContactFeedback
@contactID_pk int
AS
DELETE FROM contactUs WHERE contactID_pk = @contactID_pk
GO
And here’s my VB code:
Can anyone determine what’s wrong?
JJ
"Ignorance and prejudice and fear walk hand in hand" - Witch Hunt, by Rush
CREATE PROCEDURE deleteContactFeedback
@contactID_pk int
AS
DELETE FROM contactUs WHERE contactID_pk = @contactID_pk
GO
And here’s my VB code:
Code:
Dim objSQLMsgInfo As New SQLComponent()
Dim objSqlUserInfoReturnObject As New SQLReturnObject()
objSqlUserInfoReturnObject = objSQLMsgInfo.ExecuteSqlStatement("sales", "EXEC deleteContactFeedback '@contactID_pk'")
JJ
"Ignorance and prejudice and fear walk hand in hand" - Witch Hunt, by Rush