Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't this raise an exception
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Why doesn't this raise an exception
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01075780
Message ID:
01075780
Vues:
61
Considder the following SP:
CREATE Procedure My_SP
	@Id uniqueidentifier,
	@Data binary(1024)
AS
INSERT INTO My_Table
	(Id, Data)
	VALUES 
	(@Id, @Data)
I pass a byte array of length 2048 bytes, but the SP executes just like normal. I have not examined the data that is inserted into the column yet, but I would expect this to raise some sort of exception (Exceptions are raised if I try to pass a string that is longer than 30 characters to a nvarchar(30) column).

Any thoughts on the issue?

Thanks,
Einar
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform