cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mtstewart17 Frequent Visitor
Frequent Visitor

Enterprise Gateway with ODBC

Hello,

 

I have an ODBC source that I use for several Dashboards. I would like to setup a Gateway in order to keep the data up to date. The source is an IBM DB2 database. (I know that connecting straight to the database would be better than ODBC, but ODBC is my only option) 

 

I am wondering how I set this refesh up. I see the gateway setup prompts for a connection string and I am not sure what I need to include there to make the connection. I have a DSN fully configured on my computer's ODBC Data Source Administrator, but not sure how to format this into a connection string. 

 

Any guidance would be appreciated.

12 REPLIES 12
Highlighted
Moderator v-yuezhe-msft
Moderator

Re: Enterprise Gateway with ODBC

Hi @mtstewart17,

Based on your description, you want to add ODBC data source under gateway. In this case, you can input the connection string following the steps below.

1. Check your DSN name(testodbc1 in my scenario) in ODBC administrator or in Power BI Desktop if you have connected to the odbc data source from Power BI desktop.
1.PNG

2. Add data source under gateway by entering connection string , account and password as shown in the following screenshot .
2.png

3. Schedule refresh for the dataset in Service.
3.png

In addition, please ensure that you create a system dsn in ODBC administrator .

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
arielgasek Frequent Visitor
Frequent Visitor

Re: Enterprise Gateway with ODBC

Hi,

 

I have a system DSN set up (64-bit) using vertica driver. It works well.

I can easly connect to the DB via Power BI Desktop, however when I try to create a datasource using this DSN in Gateway manager I'm facing following issue:

 

Untitled.jpg

 

Can you help me figure out how to define the string correctly?

 

What should be the connection string format when connecting to Oracle DB?

 

Moderator v-yuezhe-msft
Moderator

Re: Enterprise Gateway with ODBC

@arielgasek,

Ensure that you create a system DSN rather than a user DSN.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
arielgasek Frequent Visitor
Frequent Visitor

Re: Enterprise Gateway with ODBC

I did that, it's working well, I can connect via Desktop App easly, just Gateway MAnager does not get me to create new source.

Below screen from my sys DSN

 

Thanks

ariel

 

Untitled.jpg 

mtstewart17 Frequent Visitor
Frequent Visitor

Re: Enterprise Gateway with ODBC

If you go to "Edit Queries" then select your ODBC data table and click the "Advanced Editor" option you can see more detail on the DSN string

curtismob Regular Visitor
Regular Visitor

Re: Enterprise Gateway with ODBC

I just tried the same thing and received the same error.  I'm guessing the DSN needs to be set up on the gateway server.  I am going to try this to see if this resolves the issue.

arielgasek Frequent Visitor
Frequent Visitor

Re: Enterprise Gateway with ODBC

This is how it worked for me:

1. local machine and gateway server dns need to be set up the same way, name specifically must be the same, as well as schema, table etc. This will ensure both connection strings are the same

2. the database needs to have a view created for the data you're trying to extract, so you can refer to the view while creating the dashboard in desktop app and create the same source under gateway manager

3. as long as both sources are the same the scehduler will see the gateway source.

 

Rgds

Ariel

curtismob Regular Visitor
Regular Visitor

Re: Enterprise Gateway with ODBC

Thank you Ariel for the information, this is very helpful.

 

@curtismob

jijoyav Frequent Visitor
Frequent Visitor

Re: Enterprise Gateway with ODBC

Hello All,

 

I am trying to set my Power BI Gateway and I receive below error. I am able to connect to ODBC from Power BI Desktop.

 

I have tried to configure ODBC via Manage gateway but have received errors. Appreciate any help.

 

Please find below error.

 

image.pngimage.pngimage.png