Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 14th, 2006, 07:36 AM
gonzaloko gonzaloko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 7 gonzaloko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 21 sec
Reputation Power: 0
ASP, Firebird & Blob issues

Hello:

I need some help with ADO types. I use an stored procedure to insert records in a table. One of columns needed is a Blob type (subtype Text). In adition I use ADODB.command configured as I show:

...
oProcedure.Parameters.Append oProcedure.CreateParameter("Description", adLongVarChar, adParamInput, 1234567, description)
...

But it doesn't work well. After call, the table shows something like binary data.

I'd tried to use other ADO types like adVarChar, adVarWChar, adLongVarBinary,... with same result or type errors.

Could anyone help me? Please I'm desperate

thks for your help

Reply With Quote
  #2  
Old July 14th, 2006, 09:58 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 16 m 7 sec
Reputation Power: 279
Did you try adLongText, it might sound stupid but I didn't see it in your list.
Also
Quote:
the table shows something like binary data
seems correct for a blob, are you shure that text is not implicitly converted into blob?

Reply With Quote
  #3  
Old July 18th, 2006, 02:42 AM
gonzaloko gonzaloko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 7 gonzaloko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj
Did you try adLongText, it might sound stupid but I didn't see it in your list.


adLongText seems not exist in ADO data types

Quote:
Originally Posted by pabloj
Also seems correct for a blob, are you shure that text is not implicitly converted into blob?



The problem is that the text isn't correctly stored on database. When I use database gui (IB Expert) to prove the procedure the information stored in blob field is readable.

Yesterday I tried to use .Appendchunk method to configure Parameter whith same result.


...
if type = adLongVarChar then
oProcedure.Parameters.Append oProcedure.CreateParameter(i, type, adParamInput, len(data))
oProcedure.Parameters(i).AppendChunk(data)
else
oProcedure.Parameters.Append oProcedure.CreateParameter(clave, type, adParamInput, len(data), data)
end if
next
...

Reply With Quote
  #4  
Old July 18th, 2006, 03:57 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 16 m 7 sec
Reputation Power: 279

Reply With Quote
  #5  
Old July 18th, 2006, 05:40 AM
gonzaloko gonzaloko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 7 gonzaloko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by pabloj

Yes I know this document. The use of appendchunk is extracted from that examples. But I've the same problem.

Maybe I've a problem with the Firebird ODBC driver.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > ASP, Firebird & Blob issues


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT