Posts about AI and SQL — programming, AI-assisted coding, and database work.
-
Review of CO-INTELLIGENCE: Living and Working with AI by Ethan Mollick
In early 2025, I was almost too late in reading CO-INTELLIGENCE. The book was completed in late 2023 when ChatGPT was the undisputed king but the field of Artificial Intelligence (AI) and Large-Language-Models (LLM) in particular is evolving so quickly that it often sounds dated. However, it has value in the long-term perspective that we…
-
Checking for Primary Keys
Originally Published November, 2020 There are many reasons for almost every table to have a primary key. This articles UDF locates any user tables that don’t have primary keys. Here’s the CREATE FUNCTION script: The select statement is pretty straightforward. It looks for entries in sysobjects that are tables and thus has xtype = ‘U’.…
-
Scripting Traces for Performance Monitoring on SQL Server
The SQL Profiler is a great tool for monitoring and analyzing SQL Server Performance. I use it all the time to watch the detailed actions of a stored procedure, trigger or user-defined function (UDF) that I am developing. It can also be used to monitor aggregate performance of an entire SQL Server instance, a single…

