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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Efren2000
Frequent Visitor

OLE DB or ODBC error: [DataSource.Error] Microsoft SQL

Hola a todos.

 

Al momento de actualizar mi dashboard me sale el error 

OLE DB or ODBC error: [DataSource.Error] Microsoft SQL: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - Se ha forzado la interrupción de una conexión existente por el host remoto.)

 

por lo tanto, los datos recuperados de la base de datos no se estan recuperando correctamente y y cada vez que se actualizan los datos el mismo error lo marca en diferente tabla.

 

Agradeceria mucho de su ayuda, muchas gracias.

3 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @Efren2000 - Hay algunos pasos que debemos seguir para configurar, siga los detalles paso a paso a continuación.


The error indicates a transport-level issue between Power BI and your SQL Server. This typically happens when the connection is interrupted or when there are network, resource, or configuration issues. Below are steps to troubleshoot and resolve this issue:

Paso 1: verificar la estabilidad de la red
Verificar conectividad:
Asegúrese de que la conexión de red entre Power BI y SQL Server sea estable.
Pruebe la conexión de SQL Server utilizando herramientas como SQL Server Management Studio (SSMS) o Azure Data Studio con las mismas credenciales.
Problemas de firewall/tiempo de espera:
Compruebe si alguna regla de firewall o configuración de red puede estar provocando la caída de la conexión.
Asegúrese de que el puerto de SQL Server (normalmente 1433 para TCP) esté abierto y accesible.
Paso 2: revisar el rendimiento de SQL Server
Verifique la carga del servidor:

El uso elevado de CPU o memoria en SQL Server puede provocar que se interrumpan las conexiones. Supervise el rendimiento del servidor durante la actualización.
Verifique consultas de bloqueo o alta contención en la base de datos.
Configuración de tiempo de espera de la base de datos:

Si la consulta tarda demasiado en ejecutarse, aumente la configuración del tiempo de espera en Power BI.
Vaya a Power BI Desktop > Configuración de origen de datos > Editar consulta > Opciones avanzadas y aumente el valor de tiempo de espera.
Paso 3: Optimice sus consultas


Simplifique consultas:

Revise las consultas utilizadas en su panel para detectar ineficiencias. Reduzca el tamaño del conjunto de datos filtrando datos innecesarios en la fuente.
Partición de mesas grandes:

Si está trabajando con tablas grandes, considere particionarlas para reducir la carga durante una actualización.
Utilice el plegado de consultas:

Asegúrese de que las consultas permitan el plegado de consultas, de modo que la mayor cantidad de procesamiento posible se envíe a SQL Server en lugar de ser manejado por Power BI.
Paso 4: habilite la configuración de Keep-Alive
Caídas de conexión:
Si las conexiones se finalizan debido a inactividad, habilite la configuración "Keep-Alive" en SQL Server. Esto puede ayudar a mantener conexiones persistentes.
Modificar la configuración de conexión de Power BI:
En Power BI Desktop, asegúrese de utilizar la cadena de conexión ODBC con el parámetro KeepAlive habilitado, por ejemplo:
arduino
Copiar código
Controlador={SQL Server};Servidor=<SERVER_NAME>;Base de datos=<DB_NAME>;KeepAlive=1;
Paso 5: busque actualizaciones y límites
Actualizaciones de Power BI:
Asegúrese de utilizar la última versión de Power BI Desktop, ya que las actualizaciones suelen incluir correcciones de rendimiento y conectividad.
Límites del servidor SQL:
Si utiliza SQL Server Express, verifique que no esté alcanzando los límites de recursos (por ejemplo, límites de memoria o conexión).
Paso 6: Configurar la puerta de enlace (para el servicio Power BI)
Si está actualizando el panel en el servicio Power BI, asegúrese de que la puerta de enlace de datos local esté configurada correctamente.
Verifique los registros de la puerta de enlace para detectar errores:
Abra el Administrador de configuración de puerta de enlace en el servidor que ejecuta la puerta de enlace.
Revise los registros para detectar errores de transporte o problemas de conectividad.
Paso 7: revisar los registros de SQL Server
Consulte los registros de errores de SQL Server en busca de mensajes que correspondan al momento del error.
Busque problemas como:
"Conexión cerrada a la fuerza por un host remoto".
"El tiempo de espera expiró."
Limitaciones de recursos.
Paso 8: reintente la actualización incremental (si corresponde)
Si trabaja con conjuntos de datos muy grandes, implemente una actualización incremental:

Particione los datos por fecha u otra dimensión para procesar fragmentos más pequeños.
Habilite la actualización incremental en Power BI.
Paso 9: Habilite el registro de diagnóstico en Power BI
Active el registro de diagnóstico en Power BI para capturar más detalles sobre el error:

Vaya a Archivo > Opciones y configuración > Opciones > Diagnóstico.
Habilite el seguimiento y reproduzca el problema. Revise los registros para obtener detalles adicionales.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

dataflip
Advocate II
Advocate II

The "OLE DB or ODBC blunder: [DataSource.Error] Microsoft SQL" is a typical issue experienced while interfacing Power BI to a SQL Server data set. This mistake regularly happens because of inaccurate association settings, consents issues, or organization related issues. Here are a moves toward investigate and determine the issue:

Investigating Steps
Check Association Subtleties:
Guarantee that the server name, data set name, and accreditations are accurately placed in the Power BI association settings.

Really take a look at Client Consents:
Affirm that the client account utilized for the association has the fundamental authorizations to get to the SQL Server information base.

Network Availability:
Check that the SQL Server is open from your machine. You can utilize the ping order or SQL Server The executives Studio (SSMS) to test network.

Empower Conventions in SQL Server:
Guarantee that the essential conventions (TCP/IP) are empowered in the SQL Server Arrangement Administrator.

ODBC Driver Update:
Introduce or refresh the most recent ODBC drivers viable with your SQL Server rendition.

Right Information Source in Power BI:

In Power BI Work area, go to Document > Choices and Settings > Information Source Settings.
Alter the information source and guarantee that the right validation technique is chosen.
Firewall Rules:
Guarantee that the firewall permits traffic on the SQL Server port (default is 1433).

Clear Reserve in Power BI:
Some of the time, stored information causes this blunder. Clear the Power BI reserve by going to Record > Choices > Diagnostics > Clear Store.

View solution in original post

V-yubandi-msft
Community Support
Community Support

Hi @Efren2000,
Thanks for connecting with us on the Microsoft Fabric Community Forum. 

 

This error indicates a transport-level issue during data transfer between Power BI and the SQL Server. Specifically:

  • The connection was unexpectedly closed by the server or the network.
  • This could result from network instability, server timeouts, or limitations in the SQL Server’s configuration.
  • Check Network Stability- Ensure there's a solid connection to the SQL Server; confirm the reliability of the VPN if needed.
  • Increase Query Timeout- Lengthen the timeout settings in Power BI under Transform Data > Data Source Settings.
  • Optimize Queries- Refine your SQL queries by choosing only the necessary data and applying filters at the source.
  • Update Drivers- Download the latest OLE DB or ODBC driver for SQL Server from Microsoft's official website.
  • Verify SQL Configuration- Work closely with your DBA to make sure the server can manage the query workload without connectivity issues.
  • Enable Keep-Alive- Add KeepAlive=1 to the connection string to ensure persistent connections.
  • Split Large Datasets- Separate large tables into smaller queries or aggregate the data prior to importing.
  • Check Power BI Gateway- Verify that the gateway is updated and configured correctly if you're using Power BI Service.

In addition, according to the information you provided, I can make the following suggestions for you:

  • Right-click the server’s name in Management Studio > Properties. Select the Show Advanced (All) Properties check box. Then adjust the External Command timeout setting. 
  • Tune the relational database system.

This official document explains the causes and steps for this issue in detail, hope this can help you well.
Link: SQL Server Analysis Services cube processing fails with Operation canceled HY008 error | Microsoft L...

If my answer addressed your query, kindly mark it as the Accepted Solution to assist others.

I'd also be grateful for a 'Kudos' if you found my response useful! 

 

Thank You.



View solution in original post

6 REPLIES 6
V-yubandi-msft
Community Support
Community Support

Hi @Efren2000,
Thanks for connecting with us on the Microsoft Fabric Community Forum. 

 

This error indicates a transport-level issue during data transfer between Power BI and the SQL Server. Specifically:

  • The connection was unexpectedly closed by the server or the network.
  • This could result from network instability, server timeouts, or limitations in the SQL Server’s configuration.
  • Check Network Stability- Ensure there's a solid connection to the SQL Server; confirm the reliability of the VPN if needed.
  • Increase Query Timeout- Lengthen the timeout settings in Power BI under Transform Data > Data Source Settings.
  • Optimize Queries- Refine your SQL queries by choosing only the necessary data and applying filters at the source.
  • Update Drivers- Download the latest OLE DB or ODBC driver for SQL Server from Microsoft's official website.
  • Verify SQL Configuration- Work closely with your DBA to make sure the server can manage the query workload without connectivity issues.
  • Enable Keep-Alive- Add KeepAlive=1 to the connection string to ensure persistent connections.
  • Split Large Datasets- Separate large tables into smaller queries or aggregate the data prior to importing.
  • Check Power BI Gateway- Verify that the gateway is updated and configured correctly if you're using Power BI Service.

In addition, according to the information you provided, I can make the following suggestions for you:

  • Right-click the server’s name in Management Studio > Properties. Select the Show Advanced (All) Properties check box. Then adjust the External Command timeout setting. 
  • Tune the relational database system.

This official document explains the causes and steps for this issue in detail, hope this can help you well.
Link: SQL Server Analysis Services cube processing fails with Operation canceled HY008 error | Microsoft L...

If my answer addressed your query, kindly mark it as the Accepted Solution to assist others.

I'd also be grateful for a 'Kudos' if you found my response useful! 

 

Thank You.



Hi @Efren2000 ,

We wanted to touch base as we haven't received a response from you yet. We hope the solution provided was useful. If you require further assistance or have any more questions, don't hesitate to reach out. Your feedback is invaluable, and we look forward to your response.

 

Thank You.

Hi @Efren2000 ,

Just wanted to check in as we haven't heard back from you yet. Hope the solution we shared was helpful! If you need any more help or have more questions, do let us know.

Your feedback means a lot to us, and we're looking forward to hearing from you soon.

Thank You.

Hi @Efren2000 ,

We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.

Your feedback is valuable to us, and we look forward to hearing from you soon.

 

Thank You.

dataflip
Advocate II
Advocate II

The "OLE DB or ODBC blunder: [DataSource.Error] Microsoft SQL" is a typical issue experienced while interfacing Power BI to a SQL Server data set. This mistake regularly happens because of inaccurate association settings, consents issues, or organization related issues. Here are a moves toward investigate and determine the issue:

Investigating Steps
Check Association Subtleties:
Guarantee that the server name, data set name, and accreditations are accurately placed in the Power BI association settings.

Really take a look at Client Consents:
Affirm that the client account utilized for the association has the fundamental authorizations to get to the SQL Server information base.

Network Availability:
Check that the SQL Server is open from your machine. You can utilize the ping order or SQL Server The executives Studio (SSMS) to test network.

Empower Conventions in SQL Server:
Guarantee that the essential conventions (TCP/IP) are empowered in the SQL Server Arrangement Administrator.

ODBC Driver Update:
Introduce or refresh the most recent ODBC drivers viable with your SQL Server rendition.

Right Information Source in Power BI:

In Power BI Work area, go to Document > Choices and Settings > Information Source Settings.
Alter the information source and guarantee that the right validation technique is chosen.
Firewall Rules:
Guarantee that the firewall permits traffic on the SQL Server port (default is 1433).

Clear Reserve in Power BI:
Some of the time, stored information causes this blunder. Clear the Power BI reserve by going to Record > Choices > Diagnostics > Clear Store.

rajendraongole1
Super User
Super User

Hi @Efren2000 - Hay algunos pasos que debemos seguir para configurar, siga los detalles paso a paso a continuación.


The error indicates a transport-level issue between Power BI and your SQL Server. This typically happens when the connection is interrupted or when there are network, resource, or configuration issues. Below are steps to troubleshoot and resolve this issue:

Paso 1: verificar la estabilidad de la red
Verificar conectividad:
Asegúrese de que la conexión de red entre Power BI y SQL Server sea estable.
Pruebe la conexión de SQL Server utilizando herramientas como SQL Server Management Studio (SSMS) o Azure Data Studio con las mismas credenciales.
Problemas de firewall/tiempo de espera:
Compruebe si alguna regla de firewall o configuración de red puede estar provocando la caída de la conexión.
Asegúrese de que el puerto de SQL Server (normalmente 1433 para TCP) esté abierto y accesible.
Paso 2: revisar el rendimiento de SQL Server
Verifique la carga del servidor:

El uso elevado de CPU o memoria en SQL Server puede provocar que se interrumpan las conexiones. Supervise el rendimiento del servidor durante la actualización.
Verifique consultas de bloqueo o alta contención en la base de datos.
Configuración de tiempo de espera de la base de datos:

Si la consulta tarda demasiado en ejecutarse, aumente la configuración del tiempo de espera en Power BI.
Vaya a Power BI Desktop > Configuración de origen de datos > Editar consulta > Opciones avanzadas y aumente el valor de tiempo de espera.
Paso 3: Optimice sus consultas


Simplifique consultas:

Revise las consultas utilizadas en su panel para detectar ineficiencias. Reduzca el tamaño del conjunto de datos filtrando datos innecesarios en la fuente.
Partición de mesas grandes:

Si está trabajando con tablas grandes, considere particionarlas para reducir la carga durante una actualización.
Utilice el plegado de consultas:

Asegúrese de que las consultas permitan el plegado de consultas, de modo que la mayor cantidad de procesamiento posible se envíe a SQL Server en lugar de ser manejado por Power BI.
Paso 4: habilite la configuración de Keep-Alive
Caídas de conexión:
Si las conexiones se finalizan debido a inactividad, habilite la configuración "Keep-Alive" en SQL Server. Esto puede ayudar a mantener conexiones persistentes.
Modificar la configuración de conexión de Power BI:
En Power BI Desktop, asegúrese de utilizar la cadena de conexión ODBC con el parámetro KeepAlive habilitado, por ejemplo:
arduino
Copiar código
Controlador={SQL Server};Servidor=<SERVER_NAME>;Base de datos=<DB_NAME>;KeepAlive=1;
Paso 5: busque actualizaciones y límites
Actualizaciones de Power BI:
Asegúrese de utilizar la última versión de Power BI Desktop, ya que las actualizaciones suelen incluir correcciones de rendimiento y conectividad.
Límites del servidor SQL:
Si utiliza SQL Server Express, verifique que no esté alcanzando los límites de recursos (por ejemplo, límites de memoria o conexión).
Paso 6: Configurar la puerta de enlace (para el servicio Power BI)
Si está actualizando el panel en el servicio Power BI, asegúrese de que la puerta de enlace de datos local esté configurada correctamente.
Verifique los registros de la puerta de enlace para detectar errores:
Abra el Administrador de configuración de puerta de enlace en el servidor que ejecuta la puerta de enlace.
Revise los registros para detectar errores de transporte o problemas de conectividad.
Paso 7: revisar los registros de SQL Server
Consulte los registros de errores de SQL Server en busca de mensajes que correspondan al momento del error.
Busque problemas como:
"Conexión cerrada a la fuerza por un host remoto".
"El tiempo de espera expiró."
Limitaciones de recursos.
Paso 8: reintente la actualización incremental (si corresponde)
Si trabaja con conjuntos de datos muy grandes, implemente una actualización incremental:

Particione los datos por fecha u otra dimensión para procesar fragmentos más pequeños.
Habilite la actualización incremental en Power BI.
Paso 9: Habilite el registro de diagnóstico en Power BI
Active el registro de diagnóstico en Power BI para capturar más detalles sobre el error:

Vaya a Archivo > Opciones y configuración > Opciones > Diagnóstico.
Habilite el seguimiento y reproduzca el problema. Revise los registros para obtener detalles adicionales.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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