dbTalk Databases Forums  

How to disable trigger on a linked oracle server db

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How to disable trigger on a linked oracle server db in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mounilk
 
Posts: n/a

Default How to disable trigger on a linked oracle server db - 09-15-2010 , 09:50 PM






Hi,
I have a linked server to an Oracle db and I want to disable a trigger
before I update a record.

I am able to select data from the table using the syntax Select * from
[LinkedServer]..[Schema].[TableName]; but when I try to disable the
trigger, I am getting error.

I tried the following scripts:

Script1:
ALTER TRIGGER [LinkedServer]..[Schema].TriggerName DISABLE
Error:
The object name ''[LinkedServer]..[Schema].TriggerName" contains more
than the maximum number of prefixes. The maximum is 2

Script2:
ALTER TABLE [LinkedServer]..[Schema].[TableName] DISABLE TRIGGER
TriggerName
Error:
Cannot find the object "[LinkedServer]..[Schema].[TableName]" because
it does not exist or you do not have permissions.


Any help is greatly appreciated

Cheers,
Mounilk

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How to disable trigger on a linked oracle server db - 09-16-2010 , 02:30 AM






Mounilk (mounilkadakia (AT) hotmail (DOT) com) writes:
Quote:
I have a linked server to an Oracle db and I want to disable a trigger
before I update a record.
Then you need to ask in an Oracle newsgroup how to do that. Once you
have the command, you can do:

EXEC ('<the ORACLE command goes here>') AT linkedserver

Quote:
I tried the following scripts:

Script1:
ALTER TRIGGER [LinkedServer]..[Schema].TriggerName DISABLE
Error:
The object name ''[LinkedServer]..[Schema].TriggerName" contains more
than the maximum number of prefixes. The maximum is 2
This means that you can use ALTER TRIGGER to disable a trigger on a linked
server. Generally, you cannot use four-part notation in DDL commands.



--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.