2

I am accessing Sage 50 data via their ODBC Driver but cannot seem to establish if the tables have a unique / primary key. The ODBC.NET Driver does not seem to return any information relating to indexes or key field information.

Anyone got any clues?

Tim

user692942
  • 16,398
  • 7
  • 76
  • 175
Tim
  • 561
  • 12
  • 22

5 Answers5

3

On the main objects such as Customers, Suppliers the Key indexed fields are ACCOUNT_REF, if its a transaction file you would join on HEADER.HEADER_NUMBER -> SPLIT.HEADER_NUMBER - they work on old school linked lists are are not indexed

For Sales or Purchase Orders, Invoice documents you would join INVOICE.INVOICE_NUMBER to INVOICE_ITEM.INVOICE_NUMBER

newfurniturey
  • 37,556
  • 9
  • 94
  • 102
Adam McCrory
  • 391
  • 3
  • 7
1

Tables ending in "m" seem to be master tables with actual real data in...

Don't know if that helps at all.

Jonathan
  • 25,873
  • 13
  • 66
  • 85
0

I created a ODBC data source and exported the data in excel and it clearly shows the table names, columns and data.

Laurence Nicolaou
  • 569
  • 2
  • 8
  • 28
0

Check the sage 50 data dictionary lots of information about the database such as: columns , indexes, keys, length, type , descriptions.

Alexrgs
  • 831
  • 8
  • 20
-1

Sage Line 50 uses a proprietry database. As far as I am aware there is no indexing of the tables.

Brad Larson
  • 170,088
  • 45
  • 397
  • 571