Getting error in SQL Prompt
vsha041
Posts: 6 New member
in SQL Prompt
I ran the SQL server profiler and copied the following query from there and pasted it in SSMS editor. Immediately, the first line of the SP call below was having green squiggly.
After that I got a warning bulb as shown below (right side). When I click on "use named parameters", I get the error message (left side).
I am not sure what is the expected behaviour here? Is it supposed to automatically fix it? or just notify me?
EXEC [sys].[sp_executesql] N'[dbo].[ProcedureName] @parameter1, @parameter2, @parameter3, @parameter4',
@parameter1 = 1,
@parameter2 = 2,
@parameter3 = '2019-01-1 00:00:00',
@parameter4 = '2019-01-1 00:00:00';
After that I got a warning bulb as shown below (right side). When I click on "use named parameters", I get the error message (left side).
I am not sure what is the expected behaviour here? Is it supposed to automatically fix it? or just notify me?
Tagged:
Answers
https://documentation.red-gate.com/sp/sql-code-analysis
So in your case, it should have fixed it without displaying another error message
This appears to be an occurrence of bug SP-7761
I will advise you when this is fixed or there are other updates.
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools