int num = 101; string s = "cs" string result = String.Format("{0}{1}",s, num); //here result becomes "CS101";
declare @id int set @id=101 declare @strid varchar(10) set @strid='CO' select @strid + cast(@id as varchar(10)) as NewId
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)