Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Database Trigger help
Topic Summary: What else needs to be configured to database trigger to work?
Created On: 04/17/2018 09:19 AM
Status: Read Only
Linear : Threading : Single : Branch
 Database Trigger help   - MattFraser - 04/17/2018 09:19 AM  
 Database Trigger help   - Justin Aucoin - 04/20/2018 06:32 AM  
 Database Trigger help   - MattFraser - 04/20/2018 10:16 AM  
 Database Trigger help   - Hamid Noorbakhsh - 04/20/2018 10:27 AM  
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 04/17/2018 09:19 AM
User is offline View Users Profile Print this message

Author Icon
MattFraser
n00b (>6 posts)

Posts: 2
Joined: 10/31/2014

I'm trying to use the database trigger on Automate 11 and am having trouble getting it to work.

I have done the "GRANT SUBSCRIBE QUERY NOTIFICATIONS TO <username>" on the database, as specified in the information prompt on the trigger, to grant the user the appropriate permissions.

I was still getting an error when I tested the connection, but the error told me enough to figure out that I needed to run the following on the DB: "ALTER DATABASE <database> SET ENABLE_BROKER".

No more warnings after that when I tested the connection and it let me save the trigger. The table name is set as <schema name>.<table name> and it should be monitoring for the "INSERT" trigger.

However, when I insert a record into the table, nothing happens in Automate. I've checked the various Service Broker sub-folders in SSMS and see nothing but the defaults in there.

Are there other steps that I need to do in SQL Server in order to enable the database trigger? The documentation in Automate is woefully lacking (it doesn't mention anything about needing to grant the permissions mentioned above, let along the need to enable the Service Broker).

Thanks,
Matt
 04/20/2018 06:32 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Matt,

In addition to enabling the Grant Subscribe Query Notifications, the Database trigger also require that the SQL user used have the permissions below.

Connect
Control
Subscribe query notifications
View database state

If this is the case and you are still experiencing issues with the database triggers, please contact us AutoMate.Support@helpsystems.com for further support. Also please verify the Operating System of the machine in question and it's bit level, as well as the version and bit level of the AutoMate software.
Note: Please reference this forum thread in your email.

-------------------------

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 04/20/2018 10:16 AM
User is offline View Users Profile Print this message

Author Icon
MattFraser
n00b (>6 posts)

Posts: 2
Joined: 10/31/2014

No luck. To be clear, the user already had connect permission and I then ran the following:

use <database name>;
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO <username>;
GRANT CONTROL TO <username>;
GRANT VIEW DATABASE STATE TO <username>;

I will contact Support.
 04/20/2018 10:27 AM
User is offline View Users Profile Print this message

Author Icon
Hamid Noorbakhsh
HelpSystems

Posts: 454
Joined: 07/29/2008

Matt, very quickly, also see http://forums.networkautomatio...atid=73&threadid=13388, I believe in that thread, the issue was that the schema name had to be prepended to the table name, but I think you got that covered.

-------------------------
Thank you for choosing AutoMate

Hamid Noorbakhsh | Senior Software Engineer
AutoMate | A Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1071 guests browsing this forum, which makes a total of 1071 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2019 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog