• Hi,

    I am new in field of DBA...

    I just want to know that can we assign value to a variable through SELECT statement also as done in the

    question

    Select @STR=1,

    whts the difference between -

    Set @STR=1

    select @STR=1

    in this quesion?

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/