Skip to main content
Nintex Community Menu Bar

Run Stored Procedure

  • Aug 30, 2017 4:51 PM UTC
  • 4 replies
  • 46 views
  • Translate All

Forum|alt.badge.img+2

I have an Azure SQL database and an on-premise nintex workflow environment. I would like to use an Execute SQL action to run a stored procedure (this stored procedure updates the SQL database with parameters from the list item).

Is this possible?

4 replies

Forum|alt.badge.img+7
  • Nintex Partner
  • Aug 30, 2017 4:58 PM UTC

Hi,

Do u mean u tried it but no success?

Translate

Forum|alt.badge.img+2

Thanks for the quick response ‌. I am having problems with my connection test, getting a login failed. I also an unsure where to reference the stored procedure.

Translate

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Aug 30, 2017 5:48 PM UTC

Should be possible. 

Running an SQL procedure (via the "Execute SQL" action) can look like this:

Connection:

Data Source=(whateveritis);Initial Catalog=(catalog);User ID=un;Password=pw;


Procedure:

exec ProcedureNameHere 
@Item1={WorkflowVariable:textHazardID},
@Item2 ={WorkflowVariable:whatever},
@Item3= {ItemProperty:whatever},

You can then store the output (if any) in a collection or single item, depending on what its returning.

Translate

Forum|alt.badge.img+2

Excellent, this is exactly what I needed to get this working. THANK YOU!

Translate