Comments
3 comments
-
In the initial commit, I see that the complete sql did not commit properly from the history as you can see below
[last_call_interaction_date_time_CST] AS (CONVERT([datetime], AT TIME ZONE AT TIME ZONE ,(0)))
I fixed the issue by correcting the sql like below and it worked.
[last_call_interaction_date_time_CST] AS (CONVERT([datetime],(([last_call_interaction_date_time_UTC] AT TIME ZONE 'UTC') AT TIME ZONE 'Central Standard Time')))
-
Hi @sridharv86 thanks for the update, glad you got it sorted.
-
Getting an error while using the AT TIME ZONE function, the SQL change Automation not supporting this function and i have to convert the query in dynamic one to make it workable.
Here is the version detail i am using.
SQL Change Automation Version : 4.3.20211.21565Visual Studio : 2019SQL Server : 2017Error : SQL80001 Incorrect syntex near 'AT TIME ZONE'sample statement : SELECT [TimeStamp] AT TIME ZONE 'UTC' AS UTC_Time FROM TableA
Add comment
Please sign in to leave a comment.
[last_call_interaction_date_time_CST] AS (CONVERT([datetime], AT TIME ZONE 'UTC' AT TIME ZONE 'Central Standard Time',(0)))
I am using source control v7 and it is a SQL Server 2017 database.