开发者

ms sql call stored procedure with date time parameter

开发者 https://www.devze.com 2023-01-21 20:21 出处:网络
how do one call a stored procedure that has date input . spName getDate() does not work. the qu开发者_运维技巧estion is about calling within ms sql managment studio.SQL Server 2008

how do one call a stored procedure that has date input .

spName getDate()

does not work.

the qu开发者_运维技巧estion is about calling within ms sql managment studio.


SQL Server 2008

declare @d date = getdate() /*Or datetime looking at the title*/
exec spName @d

Earlier Versions

declare @d datetime
set @d = getdate()
exec spName @d
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号