Question about executing stored procedures dynamically...


Author
Message
StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Consider that I have a table like this:



ColumnName: Stored Procedure Name

InsertRecord

DeleteRecord

UpdateRecord



What I want to be able to do is iterate through the table and execute the stored procedures at run time. The stored procedures though have a different number of parameters. InsertRecord has only one parameter, while DeleteRecord has two, etc.



How could I do this in code? Obviously I dont want to have to hard code the parameters in the VB code.



Should I use the DeriveParameters command? What would be the best way to execute these stored procedures when the parameters are unknown?



Thanks :-D
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search