SqlServerCe VarBinary Question

B

Brett Miller

Hi,

I need to fill a VarBinary Field in a table with +-19000 bytes (depends) The
Documentation says that the field can only be 8000 bytes long, and if I
change it to anything over that I get an exception.

There must be a way I can do this.

Help Appreciated,

Best Regards,
BM
 
J

Jon Skeet [C# MVP]

Brett Miller said:
I need to fill a VarBinary Field in a table with +-19000 bytes (depends) The
Documentation says that the field can only be 8000 bytes long, and if I
change it to anything over that I get an exception.

There must be a way I can do this.

Well, the way to do it is to use the correct field type, which is Image
in this case.
 
V

Val Mazur

Hi,

What you need to do is to change datatype in your database to Image. Image
is exact same binary time, but it has different limitation on size -
2,147,483,647 bytes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top