From 8f750bb5c43adc70ba571b66fdde8e76e423c4d3 Mon Sep 17 00:00:00 2001 From: Brian Zerangue Date: Fri, 28 Feb 2025 15:07:44 -0600 Subject: [PATCH] Update StoredProc.md corrected a few typos and added a syntax highlighting to specific keywords. --- Widgets/WidgetTemplate/StoredProc/StoredProc.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Widgets/WidgetTemplate/StoredProc/StoredProc.md b/Widgets/WidgetTemplate/StoredProc/StoredProc.md index ed9613d..95b72be 100644 --- a/Widgets/WidgetTemplate/StoredProc/StoredProc.md +++ b/Widgets/WidgetTemplate/StoredProc/StoredProc.md @@ -1,17 +1,17 @@ # Stored Procedure Definition -Use this folder to include any sql scripts designed to install Stored Procedures required for the Csutom Widget to work. Please follow the pattern of including a fully installable script including required MinistryPlatform metadata. Examplesa are included to aid in quickly developing installable Stored Procedure scripts +Use this folder to include any SQL scripts designed to install stored procedures required for the Custom Widget to work. Please follow the pattern of including a fully installable script including required MinistryPlatform metadata. Examples are included to aid in quickly developing installable Stored Procedure scripts. ## Installation Notes -All examples in this repository will install the stored procedure, then check API_Procudures for the relevant metadata that defines the stored procedure. Additionally, install scripts will give the Administrators security role access to the script. +All examples in this repository will install the stored procedure, then check API_Procedures for the relevant metadata that defines the stored procedure. Additionally, the install scripts will give the Administrators security role access to the script. ## Standard Parameters -The Custom Widget API will attempt to pass @UserName when the website user is logged into widgets. It is highly recommend that you include the @UserName parameter in all Custom Widget Stored Procedures. If @UserName is not required, you should default this parameter to null. When NOT NULL, the absense of this parameter will cause the stored procedure to fail. +The Custom Widget API will attempt to pass `@UserName` when the website user is logged into widgets. It is highly recommended that you include the `@UserName` parameter in all Custom Widget Stored Procedures. If `@UserName` is not required, you should default this parameter to null. When NOT NULL, the absence of this parameter will cause the stored procedure to fail. Example: -``` +```sql @UserName nvarchar(75) = null ```