EXEC stored-proc autocomplete datetime
mbass
Posts: 2 Bronze 1
in SQL Prompt
The autocomplete feature for EXEC stored-proc produces the wrong time (or time zone?) for datetime arguments. Is there a setting somewhere for this?
For snippets, the placeholder $TIME$ works correctly. But for autocomplete of EXEC procedure datetime arguments fills in the wrong time (or time zone).
Please advise.
For snippets, the placeholder $TIME$ works correctly. But for autocomplete of EXEC procedure datetime arguments fills in the wrong time (or time zone).
Please advise.
Tagged:
Answers
Are you referring to the Encapsulate as new stored procedure function?
Best regards,
No. In a query window with SQL Prompt, type "EXEC " followed by the name of some stored procedure that has a datetime argument, then select the suggested name from SQL Prompt pop-up and press the Enter key to have the EXEC statement auto-completed.
SQL Prompt will auto-complete and put what appears to be the current date and time as a literal input for the formal datetime argument of the stored procedure. But the time is different from my (and the DB) local time by four hours. It appears to be auto-completing with UTC time instead of the local time (my local time is EDT). How can I fix it to use my local time?
Kind regards,