I have delared a parameter in a stored procedure as @rundate with a datatype of datetime.
When I went to execute the stored procedure in the usual way
"EXEC SP_NAME @rundate = getdate"
SQL Serever returns an error message that there is an error converting nvarchar to datetime.
Does anyone know whether SQL Server stores getdate as nvarchar and if so is there a work around ?