Re: Stored Procedure Return value question
From: Daniel Buchholz (news-daniel-0501_at_paranor.de)
Date: 02/10/05
- Next message: Juan T. Llibre: "Re: very beginner, pls help to start"
- Previous message: Pavils Jurjans: "Re: IIS5/ASP.NET unbelievably slow"
- In reply to: Nick: "Re: Stored Procedure Return value question"
- Next in thread: Nick: "Re: Stored Procedure Return value question"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 15:07:53 +0100
Nick wrote:
> Thanks for this. Am I missing something though? The code generates an error
> at the ExecuteNonQuery line - saying it can't find the sp... Here's the code
> now:
>
> Dim objCmd As New SqlCommand("spd_InsertCompanyDetails " & SQLinsert,
> objConn)
Uh, sorry, my fault.
You have to specify your parameters to the procedure. The "SQLInsert"
part is not correct.
For each parameter you have to pass do something like
sqlCmd.Parameters.Add("[yourSPParam]", [yourParamValue])
after creating the Command like
Dim objCmd As New SqlCommand("spd_InsertCompanyDetails")
Daniel
- Next message: Juan T. Llibre: "Re: very beginner, pls help to start"
- Previous message: Pavils Jurjans: "Re: IIS5/ASP.NET unbelievably slow"
- In reply to: Nick: "Re: Stored Procedure Return value question"
- Next in thread: Nick: "Re: Stored Procedure Return value question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|