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 |
Steve2106
Posting Yak Master
183 Posts |
Posted - 2012-06-11 : 15:53:48
|
Hi there,I want to add a increasing numeric value to a string. Something like,'ABC' & +1 & 'XYZ' When I execute I get this error:Conversion failed when converting the varchar value 'AB' to data type int.Thanks for your help.Best Regards,Steve |
|
shilpash
Posting Yak Master
103 Posts |
Posted - 2012-06-11 : 16:52:59
|
use cast or convert function |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
Steve2106
Posting Yak Master
183 Posts |
Posted - 2012-06-12 : 03:07:38
|
Hi There,Thanks for your replies, I'll use your suggestions and see how I get on.Viska that link was very useful, thank you.Best Regards,Steve. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-06-12 : 15:19:47
|
welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|