I write the query in mssql like
PRINT N'Rahul'
PRINT ' And '
PRINT N'Sandeep'
PRINT ' And '
PRINT N'Sandeep'
When i execute the query result is display like:
Rahul
And
Sandeep
So i want the result is displayed in single line like:
Rahul And Sandeep
And what is the mean of N before the string.
Thanks in advance...


Sandeep KumarRank #1,923 · 763 reputationPosted Aug 17, 2015, 6:49 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 17, 2015, 6:41 AM EDT
Rahul PrajapatRank #1,209 · 1.5K reputationPosted Aug 17, 2015, 7:28 AM EDT
@sandeep in many case we need to use many print statement .
Please give an example of query..
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 17, 2015, 7:45 AM EDT
nvarchardata type, rather thanvarcharRajeesh MenothRank #118 · 18.4K reputationPosted Aug 17, 2015, 7:49 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 17, 2015, 8:47 AM EDT