[英]Can I import data from On-Premises SQL Server Database to Azure Machine Learning virtual machine?
On the limited Azure Machine Learning Studio, one can import data from an On-Premises SQL Server Database. 在有限的Azure Machine Learning Studio上,可以从本地SQL Server数据库导入数据。 What about the ability to do the exact same thing on a python jupyter notebook on a virtual machine from the Azure Machine Learning Services workspace ?
从Azure Machine Learning Services工作区在虚拟机上的python jupyter笔记本上执行完全相同的操作的功能怎么样?
It does not seem possible from what I've found in the documentation. 根据我在文档中找到的内容,这似乎是不可能的。 Data sources would be limited in Azure ML Services : "Currently, the list of supported Azure storage services that can be registered as datastores are Azure Blob Container, Azure File Share, Azure Data Lake, Azure Data Lake Gen2, Azure SQL Database, Azure PostgreSQL, and Databricks File System"
Azure ML Services中的数据源将受到限制:“当前,可以注册为数据存储的受支持Azure存储服务列表包括Azure Blob容器,Azure文件共享,Azure Data Lake,Azure Data Lake Gen2,Azure SQL数据库,Azure PostgreSQL和Databricks文件系统”
Thank you in advance for your assistance 预先感谢您的协助
As of today, you can load SQL data, but only a MS SQL Server source (also on-premise) is supported . 从今天开始, 您可以加载SQL数据,但仅支持MS SQL Server源(本地) 。
Using azureml.dataprep
, code would read along the lines of 使用
azureml.dataprep
,代码将按照
import azureml.dataprep as dprep
secret = dprep.register_secret(value="[SECRET-PASSWORD]", id="[SECRET-ID]")
ds = dprep.MSSQLDataSource(server_name="[SERVER-NAME]",
database_name="[DATABASE-NAME]",
user_name="[DATABASE-USERNAME]",
password=secret)
dflow = dprep.read_sql(ds, "SELECT top 100 * FROM [YourDB].[ATable]")
# print first records
dflow.head(5)
As far as I understand the APIs are under heavy development and azureml.dataprep
may be soon superseded by functionality provided by the Dataset class . 据我了解,API正在大量开发中,
azureml.dataprep
可能很快会被Dataset类提供的功能所取代。
You can always push the data to a supported source using a data movement/orchestration service. 您始终可以使用数据移动/编排服务将数据推送到受支持的源。 Remember that all Azure services are not going to have every source option like Power BI, Logic Apps or Data Factory...this is why data orchestration/movement services exist.
请记住,所有Azure服务都不会像Power BI,Logic Apps或Data Factory一样具有所有来源选项……这就是为什么存在数据编排/移动服务的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.