Converting BigInt Date Values
cehottle
Posts: 38
Does anyone know how to use T-SQL to convert the bigint date values in the RedGateMonitor database to datetime? An example would be 634250127993781348 as the date value for an entry in the Alert_Severity table. I've tried a number of suggestions that I've found and they all cause an overflow error. Thanks.
Comments
Have you seen that there are views which can be handy when writing queries by hand? They join the tables up to the root, and also provide the date times in both the Monitor internal representation and a SQL datetime. This saves lots of manual joins. For example to view the error logs of a SQL Server instance: