briangriffin
Programmer
Does anyone have a creative way of passing a date range to a SQL Server 2005 stored procedure? I thought something like this might work as a command object:
Code:
declare @min smalldatetime, @max smalldatetime
set @min = minimum({?Date Range}),
@max = maximum({?Date Range})
exec spname @min, @max
{/code]
That won't work for me, though. The user doesn't want to use two parameters, Start Date and End Date, if he doesn't absolutely have to.
Thanks.