How to assign value to variables in sql server?

 Posted by Rajesh_Kumar on 1/21/2014 | Category: Sql Server Interview questions | Views: 723 | Points: 40
Answer:

We use SET keyword to assign values to variables in Sql Server.

For Example:-
Declare @name nvarchar(50);

Set @name = 'Rajesh';
Print @name;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response