473,513 Members | 13,099 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create trigger -> invalidates stored procedure

V7.1/390

logically, the answer should be NO. the question: does the act of
creating a trigger on a table invalidate a SP which doesn't
reference the table? or, more generally, at what level does a
SP go invalid?? the database(schema), tablespace, etc.? looked
in the on-line docs, but couldn't track down an answer to the
question. rather be able to warn the folks that they'll need
to re-bind than have them surprised.

thanks,
robert

Nov 12 '05 #1
2 1671
gn*****@rcn.com wrote:
V7.1/390

logically, the answer should be NO. the question: does the act of
creating a trigger on a table invalidate a SP which doesn't
reference the table? or, more generally, at what level does a
SP go invalid?? the database(schema), tablespace, etc.? looked
in the on-line docs, but couldn't track down an answer to the
question. rather be able to warn the folks that they'll need
to re-bind than have them surprised.

thanks,
robert

Could it be that the trigger subject table is affected indirectly
through an RI relationship in the proc?

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2

Serge Rielau wrote:
gn*****@rcn.com wrote:
V7.1/390

logically, the answer should be NO. the question: does the act of
creating a trigger on a table invalidate a SP which doesn't
reference the table? or, more generally, at what level does a
SP go invalid?? the database(schema), tablespace, etc.? looked
in the on-line docs, but couldn't track down an answer to the
question. rather be able to warn the folks that they'll need
to re-bind than have them surprised.

thanks,
robert

Could it be that the trigger subject table is affected indirectly
through an RI relationship in the proc?

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab


no, it's a new table. as i say, i can't think of a logical reason for
the the SP to get invalidated, except that this SP (COBOL) seems to
go south with some regularity. any change seems to do it; what i
haven't been able to find in the docs is a simple list of actions which
invalidate. or to ask another way: do SPs always bind to a schema
identity? that's the level the bind utility runs at, IIRC; so SPs may
invalidate at that level. if the answer is yes, then adding a trigger
will invalidate. just don't know.
thanks,
robert

the SP. on the other hand, if only changing

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4565
by: Darren | last post by:
Hello, I have some 'CREATE TRIGGER' definitions that work when cut/pasted into SQL*Plus worksheet and execute separately but fail with a 'trigger created with compilation errors' when executed...
1
3811
by: Jack | last post by:
I created a trigger in the "source table" that will "feed" and second table. The trigger is as follows: CREATE TRIGGER ON dbo.FromUPS FOR INSERT AS Declare @Count int Select @Count =...
9
11205
by: Lauren Quantrell | last post by:
Is there a way to create a text file (such as a Windows Notepad file) by using a trigger on a table? What I want to do is to send a row of information to a table where the table: tblFileData has...
1
17326
by: efinney | last post by:
Hi, I'm a newbie to sql server and this may be a really dumb question for some you. I'm trying to find some examples of sql server triggers that will set columns (e.g. the created and modified...
0
2022
by: Yogesh | last post by:
Hello Everyone I have to create Oracle tables in my application on the fly, which have an Autonumber field. So, everytime I create a table, I have to create a corresponding sequence and trigger...
1
2413
by: Bruno BAGUETTE | last post by:
Hello, I'm trying to build a PL/PGSQL function that will be called by a trigger which will update a table named 'mview_contacts'. That table plays the role of a materialized view. The...
1
1626
by: sandi | last post by:
Please Advice... I need to create SqlServer2005 trigger from C# form. so all my trigger can re-create if i push one button on my app.... i need to know how i create and delete trigger from c#...
3
7239
by: satish | last post by:
hi, CAn i have one trigger for both Update and Delete Delete Trigger --------------------- create Trigger on . for delete as begin insert into z_user_log select * from deleted end
2
2418
by: lakuma | last post by:
Hi, I have a table called A (say) with columns called name, place, animal and thing. I would want to write an on insert trigger on this table, which would create a table with the name of the...
3
1811
by: Andrea MF | last post by:
Hi all, i have a problem when creating a trigger on DB2 ver 7.2 on WINDOWS. I have two tables MOVIMAG and BARCODE, the trigge when INSERT INTO MOVIMAG will be UPDATE a MOVIMAG field BARCODE...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.