Comments
1 comment
-
Hi Sushant,
The T is added because of the ISO 8601 format: https://en.wikipedia.org/wiki/ISO_8601
The advantage in using the ISO 8601 format is that it is an international standard with unambiguous specification. Also, this format isn't affected by the SET DATEFORMAT or SET LANGUAGE setting.
Can you please post your idea on user voice forum https://redgate.uservoice.com/forums/94413-sql-prompt
Add comment
Please sign in to leave a comment.
: CREATE TABLE #temptable ( [DATE OF SERVICE] datetime ) INSERT INTO #temptable VALUES ( N'2019-06-01T00:00:00' ) DROP TABLE #temptable
Notice that there is a T added in the values clause. Due to this I get hard time to troubleshoot further issues occurred due to this. Is there any specific reason why character T is added or Is there any setting due to which it adds a T if yes please let me know how I can prevent it from inserting or is this a bug ? Awaiting for your response.
Thanks
Sushant Surankar