Unable to connect SQL server to Azure ML pipeline?

MOHAMMED ABDULLA T 6 Reputation points
2022-03-17T06:56:59.34+00:00

Hi,
I am trying to connect sql server using pyodbc and to extract some procedure for Azure ML pipeline. Since I am not able to install pyodbc library in Azure ML, pipeline connection is not happening. Kindly let me know is there any alternative method to connect sql server and execute the procedure. Code is as bellow

conn = pyodbc.connect(

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
437 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,611 Reputation points
    2022-03-21T07:28:13.357+00:00

    @MOHAMMED ABDULLA T Thanks for the details. That's not the suggested way, please follow the Import Data doc to bring the Azure Sql database into pipeline.

    https://learn.microsoft.com/en-us/azure/machine-learning/component-reference/import-data

    Are you using the on-premise SQL server?. If yes we have forwarded to the product team to support in the near future. For unsupported storage solutions, and to save data egress cost during ML experiments, move your data to a supported Azure storage solution.
    Here is the document for supported storage types.


  2. Thiago Barral 0 Reputation points
    2023-03-27T20:57:16.32+00:00
    import os
    os.system(f"pip install pyodbc")
    import pyodbc
    
    0 comments No comments