-- Test Data declare @word varchar(100) with good as (select 'good' as a union select 'nice' union select 'fine') select @word = (SELECT TOP 1 a FROM good ORDER BY NEWID())
declare @word varchar(100)
with good as (select 'good' as a union select 'nice' union select 'fine')
select @word = (SELECT TOP 1 a FROM good ORDER BY NEWID())
-- Implement select substring(Upper(@word),1,1) + substring(@word, 2, LEN(@word)) Implementation
select substring(Upper(@word),1,1) + substring(@word, 2, LEN(@word))