1

Re: Deleting survey

Hello All

I wish to delete a survey with 13,000 records in it, so that I may re-import a cleaner version from an excel spreadsheet. I have tried using a delete addin within Recorder 2002 but "ran out of memory" and it threw a wobbly (reporting to have deleted 100,000 records!). Before I attempt to write some queries to do this has anyone got any I can use?

Best wishes

Graham

2

Re: Deleting survey

Hi Graham, I don't have any for R2002 I'm afraid, only R6. Mike Weideli might well do though...

Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital

3

Re: Deleting survey

I would try creating a new survey and moving some of the observations to that then deleting it (using the add-in) as it is quite easy to move records to a new survey using Access. You just need to change the Survey_key in the Survey_Event. A bit of experimentation should reveal how many observations the add-in will delete in one run although I would expect this to vary from database to database depending on things like how many observations there are in survey events.

Sally Rankin, JNCC Recorder Approved Expert
E-mail: s.rankin@btinternet.com
Telephone: 01491 578633
Mobile: 07941 207687

4

Re: Deleting survey

Thanks Sally and Charles

I ran a series of delete queries on the database that removed the survey and all its records.

In re-importing the records I also got to the bottom of what was causing the invalid location records, as I reported on this forum recently. In the dragonfly Recorder dataset I treat all vice-counties as sites in the location hierarchy, allowing me to easy export records to vc recorders when needed (through the location hierarchy or rucksacks). All sites and locations are currently treated as locations stored in the location name field of the sample and survey event tables, linked to their specific vice-county stored in the location hierarchy. When importing the records, using the import wizard, problems arose in multiple locations within sites where the locations were in differing vice-counties (ie the site crossed the vc boundary).

This meant that within a survey event there were multiple samples linked to differing vice counties in the location hierarchy (effectively multiple sites within a single survey event). Consequently on export Recorder made these samples invalid. All that was needed to stop this happening was to add a vc number to the offending location names prior to import, making them different and so preventing them from being lumped together into one survey event.

Fortunately this problem only arises infrequently, but is one I will need to look out for in the future.

Best wishes

Graham