all groups > sql server (alternate) > october 2003 >
You're in the

sql server (alternate)

group:

Initializing high-values


Initializing high-values impy2101 NO[at]SPAM yahoo.com
10/30/2003 1:55:33 PM
sql server (alternate): Can anyone here tell me about initializing high-values?

I want to create a generic stored procedure that will perform the
following

Select * from ? where ? between parm1 and parm2

no problem, but when no parms are passed I want to perform a select *

so.......

In the declare section I set parm1 = null

I want to initialize parm2 to HIGH-VALUES, but I cannot find the
Re: Initializing high-values David Portas
10/30/2003 10:11:19 PM
SELECT *
FROM Sometable
WHERE col BETWEEN @parm1 AND @parm2
OR @parm1 IS NULL

--
David Portas
------------
Please reply only to the newsgroup
--

Re: Initializing high-values impy2101 NO[at]SPAM yahoo.com
10/31/2003 6:44:16 AM
[quoted text, click to view]

AddThis Social Bookmark Button