Hi all,
    I am trying to create a table on a CF page and then create a sequence
and a trigger on the same page. Every time I try to run the page the page
times out and kills my server to boot.  Which is no fun.  
Here is the basic stuff
 
<cfquery name="two" datasource="ncc">
create table #answtable# (
FLDUNIQUE_ID number(10), 
FLDID number(11), 
FLDFIRSTNAME varchar(50), 
FLDLASTNAME varchar(50), 
</cfquery>

<cfquery name="three" datasource="ncc">
create sequence #answtable#_ID_SEQ
INCREMENT BY 1
START WITH 1
NOMAXVALUE
CACHE 20
</cfquery>
 
<cfquery name="four" datasource="ncc">
create or replace trigger BI_#answtable#
before insert on #answtable#
for each row
begin  
select #answtable#_ID_SEQ.nextval into :new.FLDUNIQUE_ID from dual;
end;
</cfquery>
 
Any Suggestions?
 
Bryan Langford
Web Info Specialist
National Customer Operations 
Enterprise Services & Strategic Planning
Training Development and Design Team. 
Desk: 714-695-4824
Cell: 714-270-8451 
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation
= "#default#time2" declareNamespace /> 
 

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to