How can i clean the opened tickets?
Created: 18 Feb 2013 | Updated: 20 Feb 2013 | 12 comments
This issue has been solved. See solution.
Hi everybody
I have 98 tickets in my Servicedesk and I need to clean all tickets to starts the use of the system in the company
How can i do this?
PS: I don't want to Close the tickets, I just need to clean the tickets and return to the ticket IM-000001
Regards,
Bruno Bacelar
Discussion Filed Under:
Comments 12 Comments • Jump to latest comment
Hi,
Check this thread may be help
https://www-secure.symantec.com/connect/forums/deleting-tickets-symantec-service-desk-71-sp2
Thanks In Advance
Ashish Sharma
SEPM Knowledgebase Documents
I found some informations to delete EM tickets, but I need to delete the IM
The code for EM is:
Bruno Bacelar
I got this error:
Bruno Bacelar
When you open a new Query Window, you have to change the database used from master to ProcessManager. You can do this in the dropdown, or just type the directive before any commands:
USE ProcessManager;
It's Working!
I need to exclude one by one, but that's OK!
Tks Everybody
The final Code is it:
Bruno Bacelar
Unfortunately Bruno this doesn't specifically return your IM generation back to IM-000001. Looks like you have missed some additional tables that should be cleaned up specifically ServiceDeskIncidentManagement.
I've attached a SQL script to the post that's designed to purge all SD data from a database. It was originally written for 7.0, but it also works on 7.1 versions as well.
I don't supose that script would work on 7.5 would it?
Hi TGiles!
I got this error when I execute this code:
Bruno Bacelar
Flip the Database from master to ProcessManager
Tks reecardo, tks TGiles.
The Database was cleaned!
Bruno Bacelar
The final code is:
USE ProcessManager
Bruno Bacelar
All,
The solution should have a BEGIN TRANSACTION at the beginning of the script, and an END TRANSACTION statement at the end. This will more accurately protect the data during the process. If it crashes for some reason mid stream, you can ROLLBACK TRANSACTION and start over.
Without wanting to rain on the hard work and research done by the participants on this thread, I want to make everyone aware that running these types of queries does have some serious potential for destroying data in your environment. Please backup your data and run these queries very judiciously. I would suggest that this solution only be run in a test environment, not in production.
Regards,
Brent Ring
Would you like to reply?
Login or Register to post your comment.