Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL SP4 & image

Status
Not open for further replies.

draganss

Programmer
Jan 13, 2006
47
MK
VS.NET 2002
SQL 2000 with SP3 or SP4
//////////////////////////
I'm passing an image as array of bytes to the SQL Stored Procedure which inserts it to the database.

ALTER PROCEDURE sp_InsertBarCode
@ImgBarCode image=null,
AS
INSERT INTO BarCodeTable(ImgBarCode)
VALUES(@ImgBarCode)
RETURN @@ERROR

When I'm using this code with SQL database with SP2 or SP3 I can insert images up to ~30 KB large,
but with SQL database with SP4 images can be maximum 4 KB large.

Error I'm getting is:
A severe error occured on the current command. The result, if any, should be discarded.

The field in the table is defined as Data Type Image with Lenght=16.

Any suggestions?
Thank you.

Marin
 
Addition to the post

SQL log:

2006-11-29 12:19:52.18 spid55 Error: 17805, Severity: 20, State: 3
2006-11-29 12:19:52.18 spid55 Invalid buffer received from client..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top