Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why doesn't this raise an exception
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Why doesn't this raise an exception
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01075780
Message ID:
01075780
Views:
62
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.
Next
Reply
Map
View

Click here to load this message in the networking platform