N
Ned Balzer
Hi,
Can anyone tell me what is the best approach for passing multiple keys
from a listbox to a SQL update? I prefer to use stored procedures for
updates. I am using asp.net 2.0 and SQL 2000, soon to upgrade to SQL
2005.
I can envision several ways to do it, such as passing a delimited set
of keys in a string to the sp, which then parses through them and maybe
puts them into a temp table and performs the update. or is there maybe
a cooler way to do it, like passing some custom array object to the sp,
or even somehow creating the temp table in the asp.net code and passing
that object as a param to the sp?
I would prefer to avoid using any iterative approach on the SQL side,
if that's possible.
Thanks.
-- Ned
Can anyone tell me what is the best approach for passing multiple keys
from a listbox to a SQL update? I prefer to use stored procedures for
updates. I am using asp.net 2.0 and SQL 2000, soon to upgrade to SQL
2005.
I can envision several ways to do it, such as passing a delimited set
of keys in a string to the sp, which then parses through them and maybe
puts them into a temp table and performs the update. or is there maybe
a cooler way to do it, like passing some custom array object to the sp,
or even somehow creating the temp table in the asp.net code and passing
that object as a param to the sp?
I would prefer to avoid using any iterative approach on the SQL side,
if that's possible.
Thanks.
-- Ned