Hi All,
kindly help me to create store procedure using outsystem service studio if possible to share oml so please share so i can understand step by step implementation.
Thanks
You can’t create a stored procedure from Service Studio when your database is the OutSystems Cloud database.
Here’s how it works in OutSystems 11:
Creating stored procedures
“You cannot create store procedures in OutSystems database in a cloud infrastructure.” [[How to create a stored procedure in the MSSQL which is hosted in Outsystems' cloud?<https://www.outsystems.com/forums/discussion/]]
Recommended pattern instead of stored procedures When possible, implement logic in OutSystems:
If you must use stored procedures There are two common options, depending on where the procedure lives:
A) Procedure in an external DB (SQL Server/Oracle)
SqlCommand.CommandType = CommandType.StoredProcedure
For Oracle, there are Forge components to help call stored procedures. [[Oracle Stored Procedure Simple<https://www.outsystems.com/forums/discussion/]] For SQL Server, you can also call stored procedures using SQL queries or extension code. [[Advanced Topics > Views and Stored Procedures > Using Views and Stored Procedures via Extensions<https://www.outsystems.com/help/servicestudio/11.0/]]
B) Procedure in the OutSystems DB (on-prem only)
EXEC dbo.MyStoredProcedure @MyParam
About OML sharing / step‑by‑step Because the platform doesn’t support creating stored procedures in the OutSystems Cloud DB, there’s no OML that shows “create stored procedure from Service Studio” — that flow simply doesn’t exist. The closest possible OML example would only show:
You can follow the official step‑by‑step guide for calling stored procedures via Extension and SQL: [[Advanced Topics > Views and Stored Procedures > Using Views and Stored Procedures via Extensions<https://www.outsystems.com/help/servicestudio/11.0/]] and [[Oracle Stored Procedure Simple<https://www.outsystems.com/forums/discussion/]]
If you describe your specific use case (what the stored procedure should do), I can help you design the equivalent implementation directly in OutSystems, or outline the exact SQL/Extension steps you’d need.
Hello.
Service Studio is to develop in OutSystems, not to do database development.
Stored Procedures are a database thing (and depend a lot on the database) and need to be created in the database, by DBAs.
Hi @ritu kushwaha ,Nuno is right. Maybe give us a bit more context on why you need to create the stored procedure?