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
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 325 guests browsing this forum, which makes a total of 325 users using this forum.

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

Sitemap Network Automation Software Blog