Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First SP
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Miscellaneous
Thread ID:
00759576
Message ID:
00759815
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
>Mike,
>
>I've done exactly the same, but now I can not compile. It gives me an error on RAISERROR ('Can not add CartContent for the User ' + @tcUserID ,16,1)
>
>My tcUserID was passed as char(20) parameter. I've changed it to varchar(20), but it gives the same error. How can I do string concatenation in SQL Server? What could be wrong here?

It's no the way RAISERROR works.
RAISERROR ('Can not add CartContent for the User %s',16,1, @tcUserID)
See BOL for details.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform