Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
日付入力を持つストアド プロシージャを呼び出すにはどうすればよいですか。
spName getDate()
動作しません。
質問は、ms sql managment studio 内での呼び出しに関するものです。
SQL Server 2008
declare @d date = getdate() /*Or datetime looking at the title*/ exec spName @d
以前のバージョン
declare @d datetime set @d = getdate() exec spName @d