Creating Databases Posted on SQLServerCentral.com
Creating Databases was actually posted last week, but got distracted with some other stuff. A basis walk through of creating...
2008-09-02
403 reads
Creating Databases was actually posted last week, but got distracted with some other stuff. A basis walk through of creating...
2008-09-02
403 reads
When I teach my introductory (and free) Successful Technical Speaking class to try to help beginners enter the world of speaking,...
2008-09-01
414 reads
It's Labor Day here in the US today, a holiday that is tribute to those of us that work, the journey to...
2008-08-31
1,777 reads
I got my Kindle yesterday and I'll write some more notes as I go along, but I have to say...
2008-08-30
1,473 reads
I've been thinking a lot lately about the concept of value. Earlier this week a colleague of mine tendered his...
2008-08-29
1,463 reads
I was recently working with a student in a one on one format and one the scenarios he wanted to...
2008-08-28
1,434 reads
OK, I reversed myself and bought a Kindle today. Or I guess I ordered one and it should be here...
2008-08-28
1,770 reads
The Jacksonville SQL Server Users Group (www.jssug.com) is hosting a SQL 2008 launch event on Friday, Sep 12, 2008 in downtown...
2008-08-27
1,373 reads
Slightly off topic today.
It's fair to say I'm not a great traveler. Waiting for planes, dealing with the hassles of...
2008-08-26
1,538 reads
Just as I was debating whether to take advantage of Amazon's $100 savings offer on the Kindle (with a new...
2008-08-25
1,948 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