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 |
|
kbearhome
Starting Member
36 Posts |
Posted - 2003-06-16 : 12:38:47
|
| I have a stored procedure in a third party application where I want to return 'text message'+cast(datepart(yyyy,UC.LastReg)) +'text message2'+cast(datepart(yyyy,UC2.LastReg))Frequently, one or the other or both are null. Is there a way in SQL select statement to not have the 'text message' display if the variable is null. Thanks. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-06-16 : 12:41:52
|
| Use ISNULL.ISNULL(Column1, '')Tara |
 |
|
|
|
|
|