- Posts: 1
mysql blob and varbinary fields
- brent
- Topic Author
- Offline
- User
Less
More
13 years 5 months ago #2131
by brent
mysql blob and varbinary fields was created by brent
i am trying to move from mysql to ms sql server and i have blob and varbinary fields to move to varbinaary in sql server. when i try to import into ms sql server the binary fields which do not allow nulls i am erroring out saying can not insert null values. mysql varbinary field is not null also
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
13 years 5 months ago #2132
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Re:mysql blob and varbinary fields
Hi Brent,
The problem is, that FlowHeater handle the SQL data types (blobs, images, varbinary, …) as internal FlowHeater RAW data type!
NOTE: All other FlowHeater data types can handle inserts and/or updates! Please have a look to: FlowHeater data types
The reason is, FlowHeater generate for the internal RAW data type only SQL update statement, because FlowHeater doesn’t create for these data type the update statements by himself, the update statements are built by the database driver to connect to.
There are two possible ways to do this.
The problem is, that FlowHeater handle the SQL data types (blobs, images, varbinary, …) as internal FlowHeater RAW data type!
NOTE: All other FlowHeater data types can handle inserts and/or updates! Please have a look to: FlowHeater data types
The reason is, FlowHeater generate for the internal RAW data type only SQL update statement, because FlowHeater doesn’t create for these data type the update statements by himself, the update statements are built by the database driver to connect to.
There are two possible ways to do this.
- You have to change the field settings and allow NULL for this field in the SQL Server database.
- Add a default value for this field (0x0) in the SQL Server database.
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Please Log in or Create an account to join the conversation.
Time to create page: 0.250 seconds