# How to convert ODBC.API.SQLGUID to String?

**URL:** <https://discourse.julialang.org/t/how-to-convert-odbc-api-sqlguid-to-string/39636>\
**Category:** Data\
**Created:** [May 17, 2020, 2:27pm UTC](https://discourse.julialang.org/t/how-to-convert-odbc-api-sqlguid-to-string/39636 "2020-05-17T14:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryszard314159](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryszard314159/32/34402_2.png) [@ryszard314159](https://discourse.julialang.org/u/ryszard314159)\
**Post date:** [May 17, 2020, 2:27pm UTC](https://discourse.julialang.org/t/how-to-convert-odbc-api-sqlguid-to-string/39636/1 "2020-05-17T14:27:59Z")

</div>

Is there a way to convert SQLGUID to String? Apparently there convert() does not have corresponging method.

julia\> x  
ODBC.API.SQLGUID(0x5715b932, 0x4bc5, 0x453c, (0x9d, 0xdb, 0x04, 0xe9, 0x2f, 0x4b, 0x69, 0x87))

julia\> convert(String, x)  
ERROR: MethodError: Cannot `convert` an object of type ODBC.API.SQLGUID to an object of type String

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [May 27, 2020, 4:00pm UTC](https://discourse.julialang.org/t/how-to-convert-odbc-api-sqlguid-to-string/39636/2 "2020-05-27T16:00:32Z")

</div>

Coincidentally I’m just about done with a complete rewrite of the ODBC.jl package; on current master (`] add ODBC#master`), you get back a plain `UUID` object, which you can use as a proper uuid object, or convert to a string like `string(x)`.
