Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
beckyconning
Helper I
Helper I

AdoDotNet.DataSource

Hi! I need help with https://docs.microsoft.com/en-us/powerquery-m/adodotnet-datasource

 

Replies in the community from staff say to use custom connectors to connect to ADO.Net.

 

Also the documentation here https://github.com/microsoft/DataConnectors/blob/master/docs/m-extensions.md#data-source-functions says I can use AdoDotNet.DataSource in my custom connector.

 

However AdoDotNet.DataSource returns a table that has functions in it, and those functions take arguments of certain types but these functions don't have documentation?

I know the Power BI Postgres connector is based on ADO.Net, could we please have the source to use as a learning example as there are no examples of AdoDotNet.DataSource in https://github.com/microsoft/DataConnectors/tree/master/samples

Specced out a contract on the basis of the Microsoft Power BI documentation being correct so I'm really hoping that its true that its possible to connect to AdoDotNet data sources.

Thanks!

3 REPLIES 3
macmac
New Member

@beckyconning Have you foud any helpful information about using AdoDotNet.DataSource as a data source in Power Query custom connector implementation (https://learn.microsoft.com/en-us/power-query/install-sdk#installing-the-power-query-sdk) using Power Query SDK? I have own implementation of ADO.NET provider and after using it in Custom Connector implementation I catch the same problem as you described with returned tables as 4arguments functions and I can't operate on them inside implementation.  After more than year and half still no examples it (https://github.com/microsoft/DataConnectors/tree/master/samples) how to proceed with AdoDotNet.DataSource.

Any hint will be welcome.

Regards

Maciej

V-lianl-msft
Community Support
Community Support

Hi @beckyconning ,

 

Hope these will help you:

https://www.codeproject.com/Articles/1870/Introduction-to-some-basic-classes-of-ADO-NET 

 

https://github.com/npgsql/npgsql/blob/ad2177cb024de97f27a210ba85c51a998afec7ef/src/Npgsql/NpgsqlTran... 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This answer is off topic. The problem is not in buiding ADO.NET provider but with using it inside Custom Connector implementation using  M langugage. I have not found either documentation or examples of how to proceed with the result of AdoNotNet.DataSource method.

Best Regards,

Maciej

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.