How to call a stored procedure from the Generic Database AFX Connector in RSA Identity Governance & Lifecycle
Originally Published: 2019-09-13
Last Modified: 2023-10-06
Article Number
Applies To
RSA Version/Condition: 7.0.x, 7.1.x
Issue
Resolution
Call <name of Stored Procedure>(${parameter_name1},${parameter_name2},...${parameter_nameN})
The Call command is universal across all databases and AFX database connectors, both the AFX generic database connector and the AFX database-specific connectors.
NOTE: The AFX database-specific connectors have been enhanced to allow the use of the Execute command to call stored procedures. However, to execute a stored procedure from the AFX generic database connector, the Call command must be used.
The following table lists the parameters on the CreateAccount screen:
| Field Name | Value |
|---|---|
| Parameter Name | Account |
| Type | STRING |
| Default Value | - |
| Is the parameter required? | Yes |
| Is the parameter encrypted? | No |
| Display Name | Account Name |
| Mapping | ${AccountTemplate.AccountName} |
| Description | Account Name |
| Field Name | Value |
|---|---|
| Parameter Name | Name |
| Type | STRING |
| Default Value | - |
| Is the parameter required? | Yes |
| Is the parameter encrypted? | No |
| Display Name | User Full Name |
| Mapping | ${AccountTemplate.UserFullName} |
| Description | User Full Name |
| Field Name | Value |
|---|---|
| Parameter Name | Password |
| Type | STRING |
| Default Value | - |
| Is the parameter required? | Yes |
| Is the parameter encrypted? | Yes |
| Display Name | Initial password to reset to |
| Mapping | ${AccountTemplate.Password} |
| Description | Initial password to reset to |
The SQL command to CreateAccount is:
| Field Name | Value |
|---|---|
| SQL command | INSERT INTO TESTAFX_ACCOUNT (ACCOUNT,NAME,PASSWORD) VALUES (${Account},${Name},${Password}) |
Instead of using a SQL command, a stored procedure may be used. The syntax for calling a stored procedure to execute a SQL command is:
| Field Name | Value |
|---|---|
| SQL command | CALL sp_CreateAccount(${Account},${Name},${Password}) |
sp_CreateAccount is a stored procedure name and the parameters are separated by a comma () and enclosed inside the brackets.
An example of a stored procedure for creating an account on SQL Server is shown below:
PROCEDURE [dbo].[ sp_CreateAccount] @account as varchar(25), @name as varchar(25), @password as varchar(25) as Insert into myaccount(account,name,password) values(@account,@name,@password)
Related Articles
Procedure to upgrade Java in Envision 97Number of Views Procedure to open RADIUS ports on the SecurID Appliance 15Number of Views Abend in stored procedure when executing non-XPlink DLL on z/OS 11Number of Views createChangeRequest Delete Account web serivce call not working in RSA Identity Management and Governance 6.9.1 43Number of Views Unable to configure MSSQL Server audit procedure. Error ?The certificate asymmetric key or private key file does not exi… 77Number of Views
Trending Articles
Deploy an Identity Router Virtual Machine in Microsoft Azure How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide Offline Days Are Not Downloaded for RSA MFA Agent 2.x After Enabling Offline Authentication Policy in Authentication Manag… RSA-2026-18: RSA Security Update for PHP Vulnerabilities
Don't see what you're looking for?