Functions

Learn SQL Server functions with practical tips, examples, and tutorials to improve querying and data analysis.

SQL Server DateDiff Example

At the moment I have a project where I have to retrieve SQL Server data based on the difference between two dates. I read the tip on the DATEADD function and wanted to know about other functions available for date/time manipulation. Can you point me in th

Converting UTC to local time with SQL Server CLR

Suppose that your company uses an international ERP application which stores the date and time data as UTC, not as local time. Usually the conversion to the local time is handled at the application level. But this time you need a custom data export to ano