Thank you, Ray.
I'm getting the below error. Apparently, SQL doesn't like SHA2 in the query.
DataTables warning: table id=carddetails - An SQL error occurred: SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]'SHA2' is not a recognized built-in function name.