dbTalk Databases Forums  

Memo datatype

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Memo datatype in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hollyli
 
Posts: n/a

Default Memo datatype - 09-16-2003 , 03:31 PM







I have a product.dbf file. There is a field called "description" that is
Memo datatype. when I use odbc execute a sql like this:

String sqlStr="select * from products"+ " where
code="+"'"+product.ProductCode+"'";



Then I do:

if (myDataReader.Read())

{

product.Name=myDataReader.GetString(6).ToString();

product.Description =myDataReader.IsDBNull(11)?"":myDataReader.G-
etString(11).ToString(); }



Where the 11th field is the "description" field and has no data.



I got error:

Microsoft.Data.Odbc.OdbcException: NO_DATA - no error information
available

at Microsoft.Data.Odbc.OdbcConnection.HandleError(Int Ptr hHandle,
SQL_HANDLE hType, RETCODE retcode)

at Microsoft.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C
sqlctype, Int32 cb)

at Microsoft.Data.Odbc.OdbcDataReader.internalGetStri ng(Int32 i)

at Microsoft.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap
typemap)

at Microsoft.Data.Odbc.OdbcDataReader.GetValue(Int32 i)

at Microsoft.Data.Odbc.OdbcDataReader.IsDBNull(Int32 i)

at Perissos.Rcs.DataAccess.MivaTableAccessor.LoadProd uct(Product&
product)



Could someone help me?


--
Posted via http://dbforums.com

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.