How to assign value to variables in sql server?

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

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