Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a [TABLE] with 3 columns like this:

[Column1-smallint] [Column2-nvarchar] [Column3-nvarchar]

I would like to create a new view with only 1 column like this:

[Column1 & Column2 & Column3]

If I try:

SELECT [Column1 & Column2 & Column3] AS [NewColumnName] FROM dbo.table

It complains about Conversion failed when converting the nvarchar data type smallint

How do I force convert everything to NVARCHAR in the new view?

share|improve this question
up vote 2 down vote accepted

Perhaps this is sufficient enough for your needs:

SELECT (CONVERT(nvarchar, Column1) + CONVERT(nvarchar, Column2) + CONVERT(nvarchar, Column3)) AS[NewColumnName] FROM dbo.Table
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.