What is difference between SET and SELECT in SQL Server
what is difference between select and set statements while assigning a value to a variable? Which one should be used when?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vineet KumarRank #1,752 · 861 reputationPosted Apr 1, 2015, 8:12 PM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 1, 2015, 8:09 PM EDT
and select is used to return the value
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 1, 2015, 8:21 PM EDT
below link have answer
http://www.mssqltips.com/sqlservertip/1888/when-to-use-set-vs-select-when-assigning-values-to-variables-in-sql-server/
http://vyaskn.tripod.com/differences_between_set_and_select.htm