ODBC AND BIG DATATABLES

John3John3 Member Posts: 16
Hi,

I have made a ODBC connection between Excel07 and our navision native database (2.60 B).

For so far now problems it works great, but....

I have a big datatable (above 500.000 records) when I put a filtre on the primairy key now problem but on other fields it takes a very very long time.

Is there a possibity to select another key on the table (such like setcurrentkey) before we do the datatransfer to excel, because that's the reason it's always sorted by the primairy key.

It would really help a lot !

Thanks for sharing !

Comments

  • kinekine Member Posts: 12,562
    Try to use "order by" to enter existing key in NAV which covers filtered fields...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    kine wrote:
    Try to use "order by" to enter existing key in NAV which covers filtered fields...

    I can't remember off the top of my head, but wasn't that introduced in a later version of C/ODBC

    (I may be mixing this up with C/FRONT though).
    David Singleton
  • kinekine Member Posts: 12,562
    Do not know, I never used C/ODBC... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • John3John3 Member Posts: 16
    I have tried with "Order by" in the SQL code but he doesn't order it in navision before he takes the data out.
Sign In or Register to comment.