The code you have posted is incorrect. The query has two variables, @start_tradedate and @end_tradedate, but no such variables have been declared. On the other hand, you have two parameters @startDate and @endDate which are not used.
using the parameters in sql
arkiboys
9,706
Reputation points
SQL Server | Other
Answer accepted by question author
-
Erland Sommarskog 128.9K Reputation points MVP Volunteer Moderator2024-01-26T18:29:52.2766667+00:00