Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Executing SQL Statements throught ADO

Re: Executing SQL Statements throught ADO

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Thu, 4 Dec 2003 16:33:37 -0500
Message-ID: <k62dnWY8H6_ENVKiRVn-vg@comcast.com>


The error that's occurring is as follows:

|
| ***************************
| Err.Number = -2147217900
| Err.Description = ORA-01400: cannot insert NULL into
| ("IMAGEDB"."APPLICATION_SETTINGS"."ID")
| SQL Statement : INSERT INTO IMAGEDB.APPLICATION_SETTINGS (type, name
| ,setting, description, section, editable) VALUES ('FLAG', 'TEST', '1',
| 'Description', 'Section', '1') failed.
| ***************************
|
| I know why the error's occurring. The table 'APPLICATION_SETTINGS' has a
| field called ID that is defined as NOT NULL. Because the 'BEFORE INSERT'
| trigger is not being created, this error is being generated. If I
manually
| create the trigger in SQL PLUS and then manually run the above SQL
| statement, it works. The question I have though, is why doesn't the
trigger
| get created in the first place. Like I said, ADO doesn't show any errors
| being generated, so it thinks the trigger is created successfully.
|

gotcha -- i though the trigger was being created both thru ADO and SQL*Plus

what other types of statements of are failing? do other DDL statements succeed? it's been a while since i've done ADO, but could it be that you need use a different ADO method for DDL statements vs DML?

Received on Thu Dec 04 2003 - 15:33:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US