
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2020 09:43 PM
Hi all,
I am an intern and I am tasked with a couple projects that involve Lansweeper. I was wondering if it is possible to set up a SQL trigger in Lansweeper's database? What I am currently trying to do is when a ticket is duplicated I want a SQL trigger to copy that data stored in the htblhistory table and store that information in a different table. Is something like this possible in Lansweeper? If so how would I accomplish that?
Thanks,
Kyle Zimmerman
I am an intern and I am tasked with a couple projects that involve Lansweeper. I was wondering if it is possible to set up a SQL trigger in Lansweeper's database? What I am currently trying to do is when a ticket is duplicated I want a SQL trigger to copy that data stored in the htblhistory table and store that information in a different table. Is something like this possible in Lansweeper? If so how would I accomplish that?
Thanks,
Kyle Zimmerman
Labels:
- Labels:
-
General Discussion
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2020 03:32 PM
Being that it sounds like you aren't familiar with SQL, I would hesitate in making changes. At a minimum, make sure you have a backup of the database. You mentioned that you are an intern, so you don't want to get in over your head and break the entire environment in an attempt to accomplish this task.
If your installation is using a separate, full version of SQL, you would use SQL Server Management Studio. I'm not sure what your options are for the current "Lansweeeper provided" database.
If your installation is using a separate, full version of SQL, you would use SQL Server Management Studio. I'm not sure what your options are for the current "Lansweeeper provided" database.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 05:44 PM
Okay, thank you.
I guess the main issue that I am facing right now is I don't know how to edit the Lansweeper database outside of Reports and the DatabaseMaintenance tool. In both of these I can not preform certain SQL commands such as CREATE TRIGGER. What must I do to be able to add that stored procedure to the database?
Thank you for the help,
Kyle
I guess the main issue that I am facing right now is I don't know how to edit the Lansweeper database outside of Reports and the DatabaseMaintenance tool. In both of these I can not preform certain SQL commands such as CREATE TRIGGER. What must I do to be able to add that stored procedure to the database?
Thank you for the help,
Kyle

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2020 01:46 PM
This is more of a SQL question than it is a Lansweeper question.
This can likely be accomplished via some sort of stored procedure if you determine what occurs in the SQL database when a ticket is duplicated and base the procedure off of that. Not really my forte so my guidance is limited to that.
This can likely be accomplished via some sort of stored procedure if you determine what occurs in the SQL database when a ticket is duplicated and base the procedure off of that. Not really my forte so my guidance is limited to that.
