Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.TableExists ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> create function "pears"."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 </code> database/functions/pears_tableexists.txt Last modified: 2026/08/07 19:24by 127.0.0.1