Forum Discussion
vmanojrc30
2 years agoContributor
Calling DB Stored Procedures from OS
I want to execute a list of DB Stored procedures after executing a DM step in OS. Is it possible to call a DB Stored Procedure from OS?After the Stored Procedures are run, I want to execute a list of...
- 2 years ago
Yes, you can call a stored procedure from OS:
Do something like this in a business rule:
Using dbConnApp = BRApi.Database.CreateApplicationDbConnInfo(si)
BRApi.Database.ExecuteActionQuery(dbConnApp, "EXEC [StoredProc]", True, True)
End Using
Steven
2 years agoContributor II
[StoredProc] is the name of the stored procedure you are running.
I have a stored procedure named TruncateMyTable
I would be: Exec TruncateMyTable
vmanojrc30
2 years agoContributor
Thanks I will try that
Related Content
- 2 years ago
- 2 years ago