BLOB field problem.

kirkostas
Member Posts: 127
Hi,
I have created a new table with 9 BLOB fields having compression property set to NO and Sub Type property set to Memo.
I want to update the table with data using an external program written in Visual Basic 6 and having ADO2.5
I have worked before with Image field types in SQL Server and with BLOB field types in Oracle Server by accessing them with ADO2.5 without having any problem at all.
So, I ran my program and update the table successfully, but (there is always a but) when I try to get a backup of the database from Navision 4.0 I get this error message:
The following ODBC error occurred:
Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
State ID: HY090
What the heck is this message !!! ](*,)
I have created a new table with 9 BLOB fields having compression property set to NO and Sub Type property set to Memo.
I want to update the table with data using an external program written in Visual Basic 6 and having ADO2.5
I have worked before with Image field types in SQL Server and with BLOB field types in Oracle Server by accessing them with ADO2.5 without having any problem at all.
So, I ran my program and update the table successfully, but (there is always a but) when I try to get a backup of the database from Navision 4.0 I get this error message:
The following ODBC error occurred:
Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
State ID: HY090
What the heck is this message !!! ](*,)
kirkostas™
0
Comments
-
Try to switch the type from memo to something else. Maybe that the MEMO type needs some more things to save into the blob than only the data itself. See the discussion about the memo in NAV 2009 (viewtopic.php?f=32&t=30723)0
-
I changed the Sub Type to User Defined which is the default option, but did't work.
I received again the same error when I tried to backup my database.kirkostas™0 -
-
Image type?
What do you mean?kirkostas™0 -
may be .bmp or .jpeg like that..0
-
-
I disagree.
BLOB field is a binary field and not a bmp or something.
If you look in the SQL Server you will see that the BLOB field is actually the "Image" field which is a binary field and you can store inside it whatever you want but in binary.
So it doesn't matter what I want to save in it. I know how to insert data in a binary field, inside and outside of navision, the problem is when I am filling data in this table I get this ODBC error message when I try to backup the database.
Maybe I misunderstood you previous question about the Image type.kirkostas™0 -
That type is for NAV. Because I assume, that when Image type is used, NAV is taking the data as binary data for some image and is not parsing them, you can store there what you want. If you set another type, e.g. Memo, NAV is assuming some format of data which are stored there (see the link from previous post) - e.g. length of the "string" saved in the blob. This can lead to the error you have got. It is why I am asking if you tried to use Image type, to set NAV in a way that it is not "parsing" the data withing the DB and is only taking them and backup them. It means to have complete picture of the situation around all the BLOB types in NAV.0
-
If you mean the Sub Type, which you can choose from "User Defined" types , Bitmap and Memo, it is only for additional information and it is used if you have many blob fields and you want to extract only the ones with the bitmap or the memo. It does not affect the field itself.
Anyway I tried all of them without success.
I still got the ODBC error message when backup the database.kirkostas™0 -
I am experiencing a similar problem. I have a table which has an uncompressed Blob field that has been populated externally in SQL. If the value staored in the field is fairly short such as "Yes" or "40%", I get the HY090 state error when I do a Calcfields on the field in Navision. Does anyone have any ideas?
Thanks0 -
-
I have the same problem: i get the error with calcfields even if I import
files over NAv Client.
Has anyone has an idea why the odbc client cannot read files < 4 KB.
Or can I config my MDAC components to do so?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions