Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Addressed for Version 2.05 » View Incident Report |
Serious |
Reported By: Jeff Dunlop Reported On: 3/1/2011 For: Version 2.05 Build 3 |
SCRIPT () BEGIN DECLARE SaleCodeCursor CURSOR FOR Stmt; DECLARE SaleCode INT; PREPARE Stmt FROM 'SELECT MAX(SaleCode) + 1 AS NextSaleCode FROM Sale'; OPEN SaleCodeCursor; FETCH FIRST FROM SaleCodeCursor INTO SaleCode; UNPREPARE Stmt; EXECUTE IMMEDIATE 'ALTER TABLE "Sale" DROP COLUMN "DocketNo"'; EXECUTE IMMEDIATE 'ALTER TABLE "Sale" ADD COLUMN "DocketNo" INTEGER GENERATED ALWAYS AS SaleCode NOT NULL'; EXECUTE IMMEDIATE 'ALTER TABLE "Sale" ALTER COLUMN "DocketNo" AS INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH ' + CAST(SaleCode AS VARCHAR) + ', INCREMENT BY 1) NOT NULL'; END
This web page was last updated on Wednesday, October 30, 2024 at 11:41 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |