Have created stored proc through sql script but it was failed when trying to install. Considering SQL script execution is passed, will those SQL scripts be created in database, shall we assume that each business will have separate database in Creatio?
The issue is likely due to the case sensitivity of SQL Server keywords and the positioning of the GO statement. Here’s the corrected script with proper syntax:
IF OBJECT_ID('UsrMemberData', 'P') IS NOT NULL BEGIN DROP PROCEDURE UsrMemberData; END GO
CREATE PROCEDURE UsrMemberData AS BEGIN SELECT * FROM UsrMemberData; -- Assuming UsrMemberData is a table END GO