Querying Pastel Evolution DB directly

BlindMelonChitlin

Expert Member
Joined
Nov 3, 2015
Messages
1,334
I'm not a Pastel fundi, but will be doing an assessment of a client's system that at some point interfaces with Pastel. I'm not sure if the interface is electronic or manual - I still need to have that conversation. What I'm hoping to figure out in advance is whether it's easy to query the pastel evolution tables direct or are they suitably locked down? What accounts / passwords are required if not?

I recall Pervasive SQL back in the day and Microsoft SQL in some more recent versions (though I haven't touched pastel in over 12 years). What does Evolution run on these days?

Ta in advance!
 

BlindMelonChitlin

Expert Member
Joined
Nov 3, 2015
Messages
1,334
OK - any idea what platform it runs on DBMS wise? What users/passwords are used? I don't imagine they are regular pastel user accounts?
 

Kosmik

Honorary Master
Joined
Sep 21, 2007
Messages
25,665
Evolution can run on MS SQL. We have it going and I tap into it regularly for integration. Not a fan of the db structure though. If you have control of the server setup your own integration account.
 

BlindMelonChitlin

Expert Member
Joined
Nov 3, 2015
Messages
1,334
Evolution can run on MS SQL. We have it going and I tap into it regularly for integration. Not a fan of the db structure though. If you have control of the server setup your own integration account.

Cool, will give this a try, Ta!
 

IndigoIdentity

Expert Member
Joined
May 10, 2010
Messages
1,964
PSQL CC is basically like phpmyadmin for Pervasive, which Evolution uses.

Flavour is Pervasive SQL, very similar to MS SQL but has some differences in syntax.
 

PsyWulf

Honorary Master
Joined
Nov 22, 2006
Messages
16,584
Pastel evolution runs on mssql. Paster partner runs on pervasive

As for db structure its mostly straightforward
 

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
21,887
Wouldn't the DB be admin locked? How would you get in to view the objects?
 

Kosmik

Honorary Master
Joined
Sep 21, 2007
Messages
25,665
Wouldn't the DB be admin locked? How would you get in to view the objects?

Depends if he has rights over the server. Server admin can control the databases within itself.and of course he can then create or use accounts however he feels but it's always a good idea to create an integration account that can read only from a db not your own.
 

halfmoonforever

Expert Member
Joined
Feb 1, 2016
Messages
1,196
From an audit perspective you shouldn't be querying or accessing the financial database without some kind of SEO/API as an intermediary. You can possibly open a big can of worms from that perspective and can be held liable for any "dealings" that are not considered legal
 

Kosmik

Honorary Master
Joined
Sep 21, 2007
Messages
25,665
From an audit perspective you shouldn't be querying or accessing the financial database without some kind of SEO/API as an intermediary. You can possibly open a big can of worms from that perspective and can be held liable for any "dealings" that are not considered legal

There is a API that can be purchased for Evo but also the setting up of a read only sql account for access still conforms to most audit guidelines. It's when one starts manipulating data that the process comes into question.
 

halfmoonforever

Expert Member
Joined
Feb 1, 2016
Messages
1,196
There is a API that can be purchased for Evo but also the setting up of a read only sql account for access still conforms to most audit guidelines. It's when one starts manipulating data that the process comes into question.

Even from a read perspective, you don't necessarily want to give someone read on all your financial data, and there needs to be a control element to be able to separate what users (or applications) can read from your GL (for example)

It might be a bit more lax when it comes to reading of data, but can still contravene something like POPI
 

Kosmik

Honorary Master
Joined
Sep 21, 2007
Messages
25,665
Even from a read perspective, you don't necessarily want to give someone read on all your financial data, and there needs to be a control element to be able to separate what users (or applications) can read from your GL (for example)

It might be a bit more lax when it comes to reading of data, but can still contravene something like POPI

Yes, that's fully controllable via normal sql user rights and permissions, not sure what the issue is? POPI is the protection of information, the people who have access to the relevant accounts would be controlled via the company, same as if they had a standard Pastel account.
 
Top