Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is AS0020 (aka ASORGS, Companies) available in a SQL Server table?

Status
Not open for further replies.

JonathanCampbell

Programmer
Sep 27, 2013
13
US
I am attempting to obtain the company list.

Is it available in a SQL Server table in the system database, or only accessible through SDK access (session.Organizations)?

I'm using ACCPAC V6.0a. The doc appears to imply that it is only available in the DLL, does not list a SQL table.

Thanks
Jon
 
No, it is not in an SQL table.
You can open the AS0020 view and browse the records though.
 
Thanks very much, Ettienne, that was my plan if I couldn't find it elsewhere.

Any particular reason it wasn't instantiated in the external system DB? Sage's other
multi-company ERPs (MAS90/200, MAS500) have SQL Server company tables.

Thanks again
Jon
 
Company information is stored in the ORGS.ISM file in the Site folder - this is a database independent ISAM file. As tuba says it is for database independance - Accpac at one stage supported 4 different databases.
 
If you need the data in SQL then browse AS0020 and write the data to an optional field. I do this for users where I need user names on a report/query.
 
Another way is to .Init a Session and then access the Organizations. You can do this all through COM without needing the SDK. You don't have to .Open a Session before getting access to the Organizations.
 
Thanks, DjangMan,

Thanks very much. Actually, that's exactly what we have done.

Thanks again
Jon
 
Does anyone know how to use the ACCPAC SDK to get the contents of a view object directly, in bulk, into a C# DataTable, not just a cell or row at a time? Fetch and BLKCPY appear to get only one row at a time, no matter what you do.

Thanks
Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top