dbTalk Databases Forums  

Disable a sql server trigger from an Access Module

comp.databases.ms-access comp.databases.ms-access


Discuss Disable a sql server trigger from an Access Module in the comp.databases.ms-access forum.



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

Default Disable a sql server trigger from an Access Module - 03-24-2011 , 02:04 PM






Hello;
MS Access 2000/Sql Server backend. We have a situation where an
automated (access app -- based off of cmd button) append to a certain
sql server table (from an ms access table) ceased to work.

Our ERP System was upgraded along with changes applied to the
database(probably new restrictions introduced). This append is unique
because it appends an ole field. Our staff has to manually intervene
daily now because this append doesn't work. What I did was (in our
test db) look at the table in question in Enterprise and manually
build a duplicate of it (with a slightly diff name). I was able to
append to this copy structure no problem.

The message that displays when the append is attempted (to the actual)
refers to a trigger. After the results of my analyses and testing, I
would say this message is accurate. Is it possible to use the ALTER
TABLE table name DISABLETRIGGER type functionality right in the access
module? With the append command in between the disable and enable? I
typed it in just see how it accepted the syntax and I got errors.

Can someone please assist?

Thank you in advance for any help.

Sincerely,

Tony

Reply With Quote
  #2  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Disable a sql server trigger from an Access Module - 03-25-2011 , 02:18 PM






Tony_E wrote:
Quote:
Hello;
MS Access 2000/Sql Server backend. We have a situation where an
automated (access app -- based off of cmd button) append to a certain
sql server table (from an ms access table) ceased to work.

Our ERP System was upgraded along with changes applied to the
database(probably new restrictions introduced). This append is unique
because it appends an ole field. Our staff has to manually intervene
daily now because this append doesn't work. What I did was (in our
test db) look at the table in question in Enterprise and manually
build a duplicate of it (with a slightly diff name). I was able to
append to this copy structure no problem.

The message that displays when the append is attempted (to the actual)
refers to a trigger. After the results of my analyses and testing, I
would say this message is accurate. Is it possible to use the ALTER
TABLE table name DISABLETRIGGER type functionality right in the access
module? With the append command in between the disable and enable? I
typed it in just see how it accepted the syntax and I got errors.

You would have to send it via a passthrough query, or use VBA and ADO to
execute it.

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.