Hi experts - i'm trying to update 1 columns with PART of the contents of another column.. in the same table.
Set ServerNameOnly = (SELECT SUBSTRING(ServerName,0, CHARINDEX('.',ServerName)) as 'new_name' from [dbo].[KnownSQLServers])
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. Update [dbo].[KnownSQLServers]
There must be an easy way to do this.