Red Gate forums :: View topic - Cleanup samap files
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Cleanup samap files

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
MartinH



Joined: 15 Apr 2005
Posts: 64

PostPosted: Wed May 28, 2014 6:25 pm    Post subject: Cleanup samap files Reply with quote

I have a collection of over 3000 samap files and would like to clean some of these up, but the question is which ones?

If I have a project that I know has been updated in *all* my clients up to a specific version I would like to eliminate all samap files that a before that version, but how do I know which files these are?

Thanks,
Martin.
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 215

PostPosted: Thu May 29, 2014 7:25 pm    Post subject: Reply with quote

Hi Martin,

Thanks for your post!

Each build that you create via SmartAssembly gets a new 'AssemblyID' added to the 'Builds' table of the SmartAssembly database. And if error reporting has been applied to the build, a map file is also created for it in the maps folder, named with its 'AssemblyID' value.

It could be a lengthy (and risky) process, but you can look through the database--if you're confident you've found the appropriate ProjectID and AssemblyID of your specific version, you can look for all the other AssemblyID values created for the same ProjectID and delete any mapfiles with the same name.

If you go ahead with this, kindly make sure to backup your map files somewhere first! If any needed map files are accidentally deleted, you may not be able to receive/read incoming error reports anymore.

(If you have any further questions on this or accessing the SmartAssembly database in general, please let me know!)
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
MartinH



Joined: 15 Apr 2005
Posts: 64

PostPosted: Fri May 30, 2014 9:19 am    Post subject: Reply with quote

Jessica:

Thanks for the information, that help me a lot and I have managed to identify the obsolete files and manually remove them.

It might be worth including a utility to do this cleanup in a future version, as I'm sure many users could benefit from it.

Once again, thanks for your detailed help.

Martin.
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 215

PostPosted: Fri May 30, 2014 4:31 pm    Post subject: Reply with quote

Hi Martin,

I'm glad to hear that helped!

And many thanks for that suggestion, I'll pass it on to our development team. Smile
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
DanielRose



Joined: 30 Oct 2009
Posts: 16
Location: Aachen, Germany

PostPosted: Mon Jun 02, 2014 12:43 pm    Post subject: Reply with quote

I have over 42000 samap files, of which I only need a couple hundred. With that amount of files, any manual search and delete won't work in any reasonable amount of time.

So please add me to the list of people who could really use such a tool!
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 215

PostPosted: Tue Jun 10, 2014 6:56 pm    Post subject: Reply with quote

Thanks for the feedback, Daniel! I've gone ahead and +1'd the request (logged internally as SA-1835)
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group