Skip to main content
100%

Exporting data out of Power Query via AdoDb route

✓ Published0🌍 Public
HHugoberry
Last edited Apr 10, 2017
Created on Apr 9, 2017

This example demonstrates how to export data out of Power Query by directly inserting rows into a SQL Server table through an ADO.NET connection. It uses the `Sql.Database` function to connect to a local server instance and the `Value.NativeQuery` API to execute a parameterized `INSERT` statement, passing literal values for the `@key` and `@value` parameters. The code shows a concrete way to push query results into an external database, bypassing Excel’s native output options. The visible data source is a SQL table named `[dbo].[Demo]`, and the approach highlights ADO.NET’s role in bridging Power Query transformations to persistent storage.

AI-generated description

Similar vizzes