Board index » delphi » How to access binary type field in MSSQL 2000 with Delphi 6

How to access binary type field in MSSQL 2000 with Delphi 6

Hello, all,
    I use ADOQuery or ADOCommand to update or insert data into a binary
field in MS SQL 2000. But when I assign value to the parameter like this:
    ADOCommand1.Parameters.ParamByName('BinField').Value := SomeData;
it always report error.
I tried many times and still can't know which proper data type should the
var 'SomeData' be. In other words, how can I assign value to a parameter of
a binary type field?

Can anyone help me? Thanks in advance.

Huang Bo

 

Re:How to access binary type field in MSSQL 2000 with Delphi 6


Huang Bo,

   Try setting the parameter datatype to ftBoolean

Good luck,
krf

Quote
Huang Bo <huangbo_n...@yahoo.com> wrote in message news:3be392a3_2@dnews...
> Hello, all,
>     I use ADOQuery or ADOCommand to update or insert data into a binary
> field in MS SQL 2000. But when I assign value to the parameter like this:
>     ADOCommand1.Parameters.ParamByName('BinField').Value := SomeData;
> it always report error.
> I tried many times and still can't know which proper data type should the
> var 'SomeData' be. In other words, how can I assign value to a parameter
of
> a binary type field?

> Can anyone help me? Thanks in advance.

> Huang Bo

Other Threads