>> May 27, 2004
do i have to use parameters to pass data into a SP?
The SP will receive the data as a parameter.
You can pass it as a datetime parameter or as a character parameter or as part of the exec string - if so use yyyymmdd format.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
SELECT *
FROM orders
WHERE shipping_status = 'shipped'
AND ( shipping_Date >= convert(varchar(8),dateadd(dd,@NoDays * -1, getdate()),112)
or @NoDays is null
)
go
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.