I have a parametrized query which looks like (With ? being the applications parameter):
SELECT * FROM tbl WHERE tbl_id = ?
What are the performance implications of adding a variable like so:
DECLARE @id INT = ?;
SELECT * FROM tbl WHERE tbl_id = @id
I have attempted to investigate myself but have had no luck other than query plans taking slightly longer to compile when the query is first run.