SQL Server – Saving Changes Not Permitted in Management Studio
SQL Server Management Studio does not allow you to save changes to a table which require table re-creation such as...
2013-04-09 (first published: 2013-04-01)
3,450 reads
SQL Server Management Studio does not allow you to save changes to a table which require table re-creation such as...
2013-04-09 (first published: 2013-04-01)
3,450 reads
There are different options available when you want to execute a .sql script file on a server. You can open...
2013-03-25
9,772 reads
When you create a new database in SQL Server without explicitly specifying database file locations, SQL Server created files in...
2013-03-18
2,220 reads
You can start/stop SQL Server services using Services Console or SQL Server Configuration Manager. You can also perform these operation...
2013-03-11
2,196 reads
To rename an object in SQL Server you can use sp_rename system stored procedure or you can do this via...
2013-03-04
2,034 reads
Finding database creation time is simple if database has not been detached from server. You can find database creation time...
2013-02-19
785 reads
SQL Server error logs can fill up quickly, and when you are troubleshooting something you may need to go through...
2013-02-08
879 reads
Earlier on my blog I posted about how you can attach a database using T-SQL when no log file is...
2013-01-30
2,752 reads
In SQL Server you can enable a Trace Flag at session (effective for current session only) level and global level....
2013-01-24
1,502 reads
You can use WITH CHECKSUM option to perform checksum when backup is created. When used this verifies each page for...
2013-01-15
2,367 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