Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2007-02-14 : 09:48:43
|
Select SchoolNumber + ' ' + ShortSchoolName as SchoolList from tblSchoolsSubsetThis is my simple sql statement which generates the error in the subject line.SchoolNumber is type numeric and ShortSchoolName is nvarcharThere are only numbers in SchoolNumber. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-02-14 : 09:54:08
|
convert to varchar before concatSelect convert(varchar(10), SchoolNumber) + ' ' + ShortSchoolName as SchoolList from tblSchoolsSubset KH |
 |
|
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2007-02-14 : 09:58:22
|
| Thanks - works a treat. |
 |
|
|
|
|
|