Now is your chance to ask a question about corruption in SQL Server databases. We will do our best job of answering those questions on our February webcast on database corruption. Do you have a question about the output from DBCC CheckDB? Seeing a strange error in your SQL Server logs? Is your SQL Server sending alerts related to corruption? …

Ask a question about Database Corruption Read more »

After my post yesterday on the performance implications of concatenating long strings with the + operator and the CONCAT function, today I am following up with a way to speed up concatenation if you need to build really long strings. What the previous show as that the longer the string gets the slower the concatenation is. So instead we declare …

Performance: Faster way to concatenate longer string Read more »

String concatenation in SQL Server can be pretty quick but under certain circumstances it can really slow down. Something to be aware of if you are working with larger varchar(max) values that need to be appended to using concatenation in TSQL. The experiment: Using a VARCHAR(MAX) variable, start with it empty, then in a loop concatenate another string to it …

Performance: String Concatenation in SQL Server Read more »

The following has been republished from my Common Table Expressions book. Chapter 1.            Memory Tables There was a 1996 Michael Keaton movie called Multiplicity where he duplicates himself to get more work done. It first started out that he just needed help to finish up his work and be able to attend his child’s ballgame. The theme of the movie …

Common Table Expressions – Chapter 1 Read more »

Microsoft has recently released a security patch for all supported version of Microsoft SQL Server. These updates are fixing where an elevation of Privilege vulnerability that could be exploited when an Extended Event session is running. From the Microsoft security bulletin: Data can be sent over a network to an affected Microsoft SQL Server instance that may cause code to …

January 2021 Security Patch for SQL Server Read more »

With the variety of clients that we work with at Stedman Solutions, one of our service products that has come from listening to our customers is the SQL Server Mentoring package. This is a really good fit for some customers who just need an occasional hand with something on their SQL Server. I was just working with a new client …

SQL Server Mentoring Read more »