====== pears.TableExists ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."TableExists" IS {create function TableExists /* Application Maintained Function / Procedure - DO NOT EDIT*/ ( in @Creator char(128),in @TableName char(128) ) returns smallint deterministic begin /* If @Creator is null (NOT empty string) = all creators Works for tables, views, global temporary but not local temporary */ if exists(select * from "sys"."SysColumns" where "Creator" like "isnull"(@Creator,'%') and @TableName = "TName") then return 1 else return 0 end if end }