Click to See Complete Forum and Search --> : Problem with sqlserver and binary
Kain
May 17th, 2001, 12:24 PM
hi, i m trying to read some data (supposed to be 10 integer) from my database declare binary (sqlserver) and i try to use getchunk like :
dim a as variant
a=rs("popol").getchunk(10)
When i try it the error "operation not allowed in the context" apprears, why?
How getting my info in a string or in integer??
thx
Cakkie
May 18th, 2001, 03:58 AM
the getchunk method retrieves a given numer of bytes to retrieve. If you try to retrieve more bytes than there are in the field, you will get an error. You can check the length of the data with the actualsize property of the field.
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
Kain
May 18th, 2001, 12:31 PM
thx but even when i try to put a lengh of 1, it doesn t work..i don t know why
i m sure something is in cause i do a actualsize and it return 10...
please i reaally need help
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.