# Saving DUTs and Intruments in Results

**URL:** https://forum.opentap.io/t/saving-duts-and-intruments-in-results/467
**Category:** General
**Created:** [September 30, 2021, 5:01am UTC](https://forum.opentap.io/t/saving-duts-and-intruments-in-results/467 "2021-09-30T05:01:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![teder.ted](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@teder.ted](https://forum.opentap.io/u/teder.ted)
#### Post date: [September 30, 2021, 5:01am UTC](https://forum.opentap.io/t/saving-duts-and-intruments-in-results/467/1 "2021-09-30T05:01:32Z")

</div>

Is it possible to save properties of a DUT e.g. Name, Serial Number or ID to the results (specifically SQL databases)?  
The main issue is how to separate results of Tests for different DUTs in a SQL database. We can off coarse save ID of DUT in each table as a column, But It would be better to separate DUTs results in a higher level.  
I’ve noticed there is RUN ID field in database tables. It is a good idea to save properties of DUT for each Run of the test plan.

---

<div class="post-metadata">

### Author: ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)
#### Post date: [October 1, 2021, 7:32pm UTC](https://forum.opentap.io/t/saving-duts-and-intruments-in-results/467/2 "2021-10-01T19:32:10Z")

</div>

@teder.ted yes, if you tag this info as metadata it will get saved. Example of how to do that here:

> <https://gitlab.com/OpenTAP/opentap/-/blob/master/sdk/Examples/PluginDevelopment/InstrumentsAndDuts/SimpleDut.cs#L22>

```csharp
        // If the "Allow Meta Data Dialog" is enabled in the Engine settings, 
        // the user will be prompted for this metadata on test plan run. 
        // The metadata will be available to the ResultListeners via the Testplan.Parameters collection.
        // Settings marked as meta data can also be used in macro expansion.
        // The Dut base class already has two properties (Comment and Id) that are marked with the MetaData attribute.
        [MetaData(true)] 
        [Display("My Meta Data", Description: "Simple DUT Meta Data.")]
        public string MyMetaData { get; set; }

```
