Fix Error 155 “‘DAYS’ is not a recognized dateadd option” in SQL Server

If you’re getting an error that reads something like “‘DAYS’ is not a recognized dateadd option” in SQL Server, it’s because you’re using the DATEADD() function with an invalid datepart argument.

This often happens when you use a plural form of the argument. For example, DAYS instead of DAY. Or HOURS instead of HOUR.

The easiest way to fix this is to provide a valid datepart argument.

Read more

What is Data Stewardship?

You might have seen “data steward” in a job description or heard it mentioned alongside data governance and wondered what it actually means in practice. It’s one of those roles that’s easy to overlook but plays a surprisingly important part in keeping an organization’s data trustworthy and usable.

Read more

Semantic Retrieval Explained

Semantic retrieval is a way of finding information based on meaning rather than matching exact words. You ask a question or describe what you need, and the system finds relevant results even if they use completely different wording. That gap between what someone types and what they actually mean is exactly what semantic retrieval is designed to close.

Read more

Fix “The datepart … is not supported by date function dateadd for data type date” in SQL Server

If you’re getting error 9810 that reads something like “The datepart hour is not supported by date function dateadd for data type date“, it’s because the datepart that you’re trying to add or subtract a datepart is not supported for the data type of the original value.

This typically happens when you try to add a timepart to a date value. For example, trying to add an hour to a date value will result in this error, because the date type doesn’t support the hour datepart. You can’t have a date value that includes the hour.

Read more

What Is an Embedding?

One of the hardest things about building AI systems is that the things humans care about (words, sentences, images, ideas, etc) aren’t naturally something a computer can do math on. A computer doesn’t inherently know that “happy” and “joyful” are similar, or that a photo of a dog and the word “dog” are related. It just sees raw data.

Embeddings are the solution to that problem.

Read more

Data Quality Management Explained

Bad data is more common than most organizations want to admit. And more costly. Decisions get made on outdated numbers, reports contradict each other, and engineers spend hours tracking down why a dashboard looks wrong. Data quality management is how you prevent all of that from becoming the norm.

Read more

How to Format Dates in SQL Server (A Beginner’s Guide)

Dates in SQL Server can be surprisingly tricky if you’re new to the game. The way dates are stored is not always the way you want them displayed, and figuring out how to convert one to the other is one of those things every beginner eventually Googles. So let’s walk through it clearly.

Read more