Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concat string
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Concat string
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01084298
Message ID:
01084298
Vues:
60
I am trying to concat a string within RAISERROR()
Something like this:
RAISERROR('Error' + CAST(@@ERROR AS CHAR(8)), 16, 1)
But the server doesn't like the syntax around '+'

What is the best way to do this?

Einar

UPDATE:
This works but is there another way:
DECLARE @einar nvarchar(50)
SET @einar = 'Error' + cast(@@error AS char(8))
RAISERROR (@einar, 16, 1)
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform