• Lowell (9/21/2012)


    Mark-101232 (9/21/2012)


    declare @asd varchar(20)

    set @asd ='asdaaaadffa'

    select len(@asd) - len(replace(@asd,'a',''))

    oh your fast on the draw there, partner!

    Yee-Haa!

    ____________________________________________________

    Deja View - The strange feeling that somewhere, sometime you've optimised this query before

    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537