RE: StoredProc : an array as parameter ?
From: joshef savona (savona_at_discussions.microsoft.com)
Date: 08/12/05
- Previous message: Marlon: "Re: Generate Verisign certs for one or two year ?"
- In reply to: bajopalabra: "StoredProc : an array as parameter ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 11 Aug 2005 15:16:01 -0700
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
>
>
>
- Previous message: Marlon: "Re: Generate Verisign certs for one or two year ?"
- In reply to: bajopalabra: "StoredProc : an array as parameter ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|