Hi all,

I need a SQL stored procedure that has an input parameter of type array of
datetimes.
How to define such a procedure? if possible

Thanks,

Re: Array as input parameter by Miha

Miha
Thu Feb 19 06:51:14 CST 2004

Hi Mircea,

No, there is no such support.
On some workarounds for Sql server (some are not database specific) you
might read here:
http://www.sommarskog.se/arrays-in-sql.html

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Mircea Pleteriu" <mpleteriu@asp-gmbh.de> wrote in message
news:uvo1f1t9DHA.3292@TK2MSFTNGP11.phx.gbl...
> Hi all,
>
> I need a SQL stored procedure that has an input parameter of type array of
> datetimes.
> How to define such a procedure? if possible
>
> Thanks,
>
>



Re: Array as input parameter by Bernie

Bernie
Thu Feb 19 08:55:58 CST 2004

Hi Mircea,

You can accumulate the dates in a string and pass them into a dynamically
created sp for use in an 'in' or 'between' clause. If you need an example
of what I'm referring to, let me know.

HTH,

Bernie Yaeger

"Mircea Pleteriu" <mpleteriu@asp-gmbh.de> wrote in message
news:uvo1f1t9DHA.3292@TK2MSFTNGP11.phx.gbl...
> Hi all,
>
> I need a SQL stored procedure that has an input parameter of type array of
> datetimes.
> How to define such a procedure? if possible
>
> Thanks,
>
>