# How to export tags with OPC-UA

**URL:** <https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202>\
**Category:** Module Development\
**Created:** [April 10, 2013, 5:12pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202 "2013-04-10T17:12:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 10, 2013, 5:12pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/1 "2013-04-10T17:12:16Z")

</div>

A (very) quick search of the forums failed to answer my question.

What do I have to do to allow my tags (created via module (in-memory I think)) to be exported via the OPC-UA server?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 10, 2013, 5:13pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/2 "2013-04-10T17:13:17Z")

</div>

How are you creating these tags? Is your module a driver or no?

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 10, 2013, 9:54pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/3 "2013-04-10T21:54:10Z")

</div>

It creates DB tags internally and then drives them.

I don’t think it was created as a driver.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 10, 2013, 9:57pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/4 "2013-04-10T21:57:17Z")

</div>

Well a tag provider and a driver for the UA server are totally different beasts, so you really only have two options:

1. Write a driver module.
2. I think Kyle Chase created a driver that exposes SQLTags as OPC-UA tags, but I’m not sure if it has been maintained or not. You also need to be careful because you can easily get into a reference loop if you then create SQLTags out of those tags…

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 10, 2013, 10:18pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/5 "2013-04-10T22:18:43Z")

</div>

By driver, do you mean abstractTagDriver? We are using sqlTagManger.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 10, 2013, 10:23pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/6 "2013-04-10T22:23:00Z")

</div>

AbstractTagDriver is one option. A driver is anything that implements the Driver interface.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 10, 2013, 10:26pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/7 "2013-04-10T22:26:30Z")

</div>

Ok thanks

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [April 14, 2013, 12:06am UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/8 "2013-04-14T00:06:41Z")

</div>

This might work as well Robert  
[viewtopic.php?f=88&t=8015](http://www.inductiveautomation.com/forum/viewtopic.php?f=88&t=8015)

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [April 14, 2013, 5:01pm UTC](https://forum.inductiveautomation.com/t/how-to-export-tags-with-opc-ua/6202/9 "2013-04-14T17:01:47Z")

</div>

Thanks Kyle.
