How to Convert Integer into Varchar in Sql-Server Database?

 Posted by vishalneeraj-24503 on 12/18/2013 | Category: Sql Server Interview questions | Views: 1822 | Points: 40

With the help of Cast method or function,we can convert Integer into Varchar.

For Example:-

Declare @Id int = 1;
Select Cast(@Id as Varchar) as Id;

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response