cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Is it possible to run a sql command from a trigger?

phartwig
13-Aquamarine

Is it possible to run a sql command from a trigger?

I have defined an executeCmdAs with the following command "im diag --diag=runsql --param=select login from mksdomainusers".  However, the following error is returned: "Runsql Diagnostic: SQL Statement execution failed: Invalid SQL type: sqlKind = UNINITIALIZED"

Thank you,

Paul Hartwig

3 REPLIES 3

Hi Paul,

why not just executing:   aa users

This returns the same result, and could also become a trigger element

Hope this helps

Volker

Volker,

   I need to determine which users are defined in the MKS domain and which users are coming from LDAP.  PTC provided me a way to get the information I need for this issue, but I still have another where I need to get the groups and their descriptions.

Thank you,

Paul Hartwig

Hello Paul,

What about:

a) integrity mksdomaingroups --fields=name,description

b) im groups --fields ....

Does that help?

Announcements


Top Tags