If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ADOCE 3.1, VIADB OLE Provider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-03, 10:26
chrisp_999 chrisp_999 is offline
Registered User
 
Join Date: Mar 2002
Location: Bielefeld, Germany
Posts: 69
ADOCE 3.1, VIADB OLE Provider

Hi all,

I'm using ADOCE in connection with Odyssey ViaDB to connect to MSSQL Server from PocketPC2002. I have the odd problem that recordset.recordcount returns -1 no matter how many records there are.

I get the correct results when I do a SELECT COUNT(*) on the same data and the recordset *is* actually populated.

Can anyone comment on this?
Reply With Quote
  #2 (permalink)  
Old 02-17-03, 16:18
dbadelphes dbadelphes is offline
Registered User
 
Join Date: Feb 2003
Location: Montreal, Canada
Posts: 117
Re: ADOCE 3.1, VIADB OLE Provider

This behaviour is not specific to ADODC. ADODB do the same thing.
I do not know your recordset properties.(maybe you can post it) but I sugest you to change the properties to adUseClient and adOpenStatic (these are for adodb, I hope that are the same in adodc)




Quote:
Originally posted by chrisp_999
Hi all,

I'm using ADOCE in connection with Odyssey ViaDB to connect to MSSQL Server from PocketPC2002. I have the odd problem that recordset.recordcount returns -1 no matter how many records there are.

I get the correct results when I do a SELECT COUNT(*) on the same data and the recordset *is* actually populated.

Can anyone comment on this?
__________________
Steve
Reply With Quote
  #3 (permalink)  
Old 02-17-03, 17:22
playernovis playernovis is offline
Registered User
 
Join Date: Nov 2002
Location: San Francisco
Posts: 251
silly trick is to go to LAST record, then you get correctly number of records.....

as dbadelphes said, your -1 is by design

http://www.adopenstatic.com/faq/recordcounterror.asp


jiri
Reply With Quote
  #4 (permalink)  
Old 02-18-03, 03:41
chrisp_999 chrisp_999 is offline
Registered User
 
Join Date: Mar 2002
Location: Bielefeld, Germany
Posts: 69
Thanks for that information.
CursorType is adOpenStatic, LockType = adLockReadOnly. The adoce recordset object does not support CursorLocation, while the connection object does, but only adUseServer and adUseNone. I will play around with that later on.
Thanks, Chris
Reply With Quote
  #5 (permalink)  
Old 03-11-04, 09:37
fpaulon fpaulon is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Re: ADOCE 3.1, VIADB OLE Provider

Hi can i connect a mysql database using VIADB and adoce 3.1 in a pocket pc 2002???

how??

tks!
Reply With Quote
  #6 (permalink)  
Old 03-11-04, 11:09
chrisp_999 chrisp_999 is offline
Registered User
 
Join Date: Mar 2002
Location: Bielefeld, Germany
Posts: 69
Didn't try it, but i guess it should be doable. Set the "ViaDB Remote Provider" property to the name of the system DSN for MySQL on the ViaDB Host. If you need more specific information, drop me a private message and/or open a new thread. I'm willing to dig into this and could do a little testing over the weekend.
Reply With Quote
  #7 (permalink)  
Old 03-11-04, 11:42
fpaulon fpaulon is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Question how?

how i connect my ppc2002 in a mysql database without the VIADB ??

tks
Reply With Quote
  #8 (permalink)  
Old 03-16-04, 14:43
chrisp_999 chrisp_999 is offline
Registered User
 
Join Date: Mar 2002
Location: Bielefeld, Germany
Posts: 69
I'm not sure if this can be done. Only way I can think of is via SQL Server CE Edition, but I'd expect much hazzle with that. That's the reason why we decided to use ViaDB. SQL Server CE synchronisation tools require an IIS on the db server, that was a k.o. criterion for us.
Reply With Quote
  #9 (permalink)  
Old 01-29-09, 07:40
WINCOPHONE WINCOPHONE is offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Hi!, Where can I Found VIADB Library, because Oddysey software does´nt exist any more.
Could you send me a copy of viadb for tranning?
Thank a lot
Best Regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On