Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
however, sqlserver gives me an error saying that it can't implicitly convert a varchar to a binary. does anyone know how i could insert this? michael$ctsth = $ctdbh->prepare( "INSERT INTO table(ParentID,ChildID) VALUES +(?,?)" ); $ctsth->bind_param( 1, $hexform1, {TYPE => SQL_BINARY} ); $ctsth->bind_param( 2, $hexform2, {TYPE => SQL_BINARY} ); $ctsth->execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and inserting binary data
by MZSanford (Curate) on Mar 15, 2002 at 14:52 UTC |