[SOLVED] Execute Stored Procedure passing id of just added record
This topic is locked
[SOLVED]
 Execute Stored Procedure passing id of just added record
11/18/2013 2:47:32 AM
ASPRunner.NET General questions
M
marcoardiawenink author
Hi, In the after record added event I want to execute a stored procedure (SQL Server) with the id of the added record as a parameter. If I try string strSQL = "EXEC dbo.StoredProcedure '" + values["id"] +"'";
CommonFunctions.db_exec(strSQL.ToString(), null); The procedure gets executed, but the id doesn't get passed.
Waht is the way to do this ? The id is a uniqueidentifier. Thanks!