StoredProc : an array as parameter ?

StoredProc : an array as parameter ?

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
StoredProc : an array as parameter ? bajopalabra 08-10-2005
Posted by bajopalabra on August 10, 2005, 3:46 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
how can i call an stored proc
passing an array as parameter ?

how can i do something like this ?...

create procedure my_sp
@array ...
as
select *
from table
where field IN ( @array )

i was thinking in creating a table "tmp"
and fill it with the parameters....
begin tran
insert into tmp values ( aaa )
insert into tmp values ( ... )
insert into tmp values ( zzz )
exec my_sp
commit tran

( it's cursi, i know.... )

--
atte, Hernán



Posted by =?Utf-8?B?am9zaGVmIHNhdm9uYQ== on August 11, 2005, 6:16 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
pic


"bajopalabra" wrote:

> how can i call an stored proc
> passing an array as parameter ?
>
> how can i do something like this ?...
>
> create procedure my_sp
> @array ...
> as
> select *
> from table
> where field IN ( @array )
>
> i was thinking in creating a table "tmp"
> and fill it with the parameters....
> begin tran
> insert into tmp values ( aaa )
> insert into tmp values ( ... )
> insert into tmp values ( zzz )
> exec my_sp
> commit tran
>
> ( it's cursi, i know.... )
>
> --
> atte, Hernán
>
>
>

Similar ThreadsPosted
ISA 2006 Server Array Problems February 29, 2008, 6:58 am
%windir%\security \database\secedit.sdb ) was. The parameter is in June 12, 2007, 4:56 am

The site map in XML format XML site map

Contact Us | Privacy Policy