News

It’s also possible to use this technique to convert text to datetime values. Here’s another SQL Server table, this time with dates stored in an nvarchar(50) column: Here’s another M query that does ...
This issue is to track, Translation of addition/subtraction for DateTime to server and materializing it back to TimeSpan on client side doing some computation. Translation of member access on +/- of ...
In my research I have found that SQL doesn't really store the datetime values the way it looks in query anaylzer or enteprise manager.<BR><BR>Here's where I might be getting off the right track.
A few months ago a new option was added to the Sql.Database and Sql.Databases functions in Power Query in Power BI and Excel which allows Power Query queries that combine data from different SQL ...
In this two-part series, I'll tell you about some improvements Microsoft is making in SQL Server 2022 to improve cardinality estimates and deal with another common query optimization concern ...
(011792c6) I fixed this by rewriting query using EF Core database scalar functions and SQL DATEPART and now it's fully executed on database. If I get things right the main problem with DATEPART is ...
Understanding how to leverage its built-in functions can significantly speed up your query processes, which is essential in the fast-paced realm of Business Intelligence (BI). SQL Server provides ...
I’ve created a script that monitors a table in a SQL Server database. I’m only interested in one column in the table: TimeStamp. If the maximum (newest) value in TimeStamp is more than 30 ...
As I discussed in an earlier column, SQL Server keeps a plan cached for each query it sees (assuming the query requires planning in the first place, of course). That's great for speeding up processing ...