![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
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 |
![]() |
![]()
|
![]() |
|
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 |
|
|
|
![]() |
|
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 |
|
|
|
![]() |
|
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. |
|
|
|
![]() |
|
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 |
|
|
AutoMate Discussion
» AUTOMATE » Automate 11
»
Database Trigger help
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.