Also I think I have isolated the problem to this line of code;
CREATE LOCAL TEMPORARY COLUMN TABLE "#RECEIPTS" ("PO" NVARCHAR(10),
"POLINE" NVARCHAR(2),
"DATERECV" NVARCHAR(8),
"QTYRECV" DECIMAL(13,
3) CS_FIXED NOT NULL ,
"QTY" DECIMAL(13,
3) CS_FIXED) ;
However I can run this fine via SQL editor. But via procedure I get the insufficient privilege error. Which makes me wonder if it's not my username privileges that are the problem but some other user?? ie: when calling the procedure who's rights are used?
-Patrick