I have two columns in a SQL table, fooId
(int) and fooName
(varchar).
Is there a way to select them both as one column with a space between them?
select fooId + ' ' + fooName as fooEntity
from mytable
They're different types so I'm getting an error.
This field will be databound directly in a control in the web app.
SQL Server 2008
(I'm a bit of a sql beginner)