C
Chad A. Beckner
Hey all,
I currently have a stored procedure that accepts 1 parameter, and passes
the rowcount out. Using ASP.NET/SQL, how can I create a function/stored
procedure to do the following:
1. form my stored procedure, how can I pass in "dynamic" parameters
without having to declare them in the actual stored procedure?
example: ID, Status_ID, Active - or - just Status_ID, Active
2. How can I setup (using a generic function that I have to create) add
these parameters to the command object?
example: I pass in "ID,Status_ID,Active" - or - just
"Status_ID,Active"
3. Should I just use ADHOC queries for this? I have always seen
articles and documentation stating that stored procedures are faster...
Thanks everyone!
Chad
I currently have a stored procedure that accepts 1 parameter, and passes
the rowcount out. Using ASP.NET/SQL, how can I create a function/stored
procedure to do the following:
1. form my stored procedure, how can I pass in "dynamic" parameters
without having to declare them in the actual stored procedure?
example: ID, Status_ID, Active - or - just Status_ID, Active
2. How can I setup (using a generic function that I have to create) add
these parameters to the command object?
example: I pass in "ID,Status_ID,Active" - or - just
"Status_ID,Active"
3. Should I just use ADHOC queries for this? I have always seen
articles and documentation stating that stored procedures are faster...
Thanks everyone!
Chad