# Returning Array instead of DataFrame with ODBC

**URL:** <https://discourse.julialang.org/t/returning-array-instead-of-dataframe-with-odbc/9489>\
**Category:** Data\
**Created:** [March 4, 2018, 2:44pm UTC](https://discourse.julialang.org/t/returning-array-instead-of-dataframe-with-odbc/9489 "2018-03-04T14:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max-Zara](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/max-zara/32/3393_2.png) [@Max-Zara](https://discourse.julialang.org/u/Max-Zara)\
**Post date:** [March 4, 2018, 2:44pm UTC](https://discourse.julialang.org/t/returning-array-instead-of-dataframe-with-odbc/9489/1 "2018-03-04T14:44:04Z")

</div>

Hi,  
If I want to run a query from ODBC connected to PostgreSQL, but don’t want to receive a DataFrame, how do I go about doing this?

using ODBC.query(dsn\_connection, “my query string…”, sink =??)

I have tried sink = ODBC.Sink, and get Cannot `convert` an object of type DataStreams.Data.Schema{true} to an object of  
type ODBC.DSN

Are there other ways of doing this?

Thank you
