Category Archives: Sql Server Tutorials

How do you check if automatic statistic update is enabled for a database?

The following query can be used to determine if Automatic Statistic update is enabled: Continue reading How do you check if automatic statistic update is enabled for a database?

Sql Interview question: What are the limitations of indexed views?

Some of the limitations with Indexed views are:

  • The UNION operation is not allowed in an indexed view.
  • We cannot create an Index on a nested view scenario which means we cannot create index on a view built from another view.

Continue reading Sql Interview question: What are the limitations of indexed views?

How to implement a Credit Risk Data Warehouse – Part 1

In the past years I’ve worked as a hands-on architect on the design and implementation of various data migration, data warehouse and business intelligence systems in various industries like Insurance, Retail, Food & Bev’s, Pharma & Investment Banking. Out of all nothing quite stands out like the complexity of building a Credit Risk Data Warehouse & Reporting system for the compliance with the Basel Regulatory requirements. Continue reading How to implement a Credit Risk Data Warehouse – Part 1

What is the difference between the GETUTCDATE and SYSUTCDATETIME functions?

These functions return data as UTC time (Coordinated Universal Time). In case of the GETUTCDATE(), the precision is in milliseconds. SYSUTCDATETIME() has a default precision of 7 digits after the seconds (aka nanoseconds). Continue reading What is the difference between the GETUTCDATE and SYSUTCDATETIME functions?

What is the difference between GETDATE() and SYSDATETIME() in SQL Server?

With the GETDATE() function, the precision is in milliseconds, and with the SYSDATETIME() function, the precision is down to 100 nanoseconds. Continue reading What is the difference between GETDATE() and SYSDATETIME() in SQL Server?