Pop Quiz - What's the Max Number of Resultsets Supported by Management Studio?
Ran across this strange occurence while doing some testing. To duplicate the results (the actual code was a little more...
2008-05-20
1,488 reads
Ran across this strange occurence while doing some testing. To duplicate the results (the actual code was a little more...
2008-05-20
1,488 reads
SQL Server MVP Frank Kalis has posted a short review on How to Cheat at Securing SQL Server 2005, a...
2008-05-20
1,908 reads
Here are your answers to the questions from last week You should get some variation of what I have given...
2008-05-19
2,760 reads
This is just a starting point for you to prepare for your interview so make sure not to limit yourself...
2008-05-19
4,081 reads
This is really interesting to me:
CREATE TABLE #TEMP (name varchar(80))
INSERT INTO #TEMP values ('Malteser Schloßschule')
INSERT INTO #TEMP values ('Malteser...
2008-05-19
729 reads
I have decided to make a short series of blogs about possible interview questions to help you prepare for an...
2008-05-19
3,022 reads
There are a few podcasts I tend to listen to as I have time. Since I work with a wide...
2008-05-19
4,050 reads
I've been working on a rough outline for two new classes that will each be one day long. One on...
2008-05-18
506 reads
As a president of a local PASS chapter, one of the things I've struggled with is getting "locals" to give...
2008-05-17
689 reads
I ran across this a week or so ago. There were a couple of SQL Servers running named instances that...
2008-05-17
10,870 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
Comments posted to this topic are about the item Split Large Queries in Athena...
Comments posted to this topic are about the item Finding Trailing Spaces
I have some data in a SQL Server 2025 database. It looks like this for the dbo.Customer table:
CustomerID CustomerName PreferredName 1 Steve Steve 2 Andy Andy 3 Brian Brian 4 Allan Allan 5 Devin Devin 6 Steve Steve 7 Sally SallyI want to detect which names have a single trailing space. The CustomerName is a varchar() and the PreferredName is a CHAR(). Does this query detect the problem rows?
SELECT
CustomerID,
CustomerName,
PreferredName
FROM Customer
WHERE CustomerName <> RTRIM(CustomerName)
OR PreferredName <> RTRIM(PreferredName); See possible answers