使用虚拟网络时,OPENROWSET命令无法将文件内容从Azure存储移动到SQL Azure吗? [英] OPENROWSET Command cannot move file content from Azure Storage to SQL Azure when using a Virtual Network?

查看:50
本文介绍了使用虚拟网络时,OPENROWSET命令无法将文件内容从Azure存储移动到SQL Azure吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


查尔斯先生

I am having an issue with importing JSON files from Azure Blob Storage into Azure SQL. I can follow these instructions (https://docs.microsoft.com/en-us/sql/relational-databases/import-export/examples-of-bulk-access-to-data-in-azure-blob-storage?view=sql-server-2017 …) and it works fine until I add a virtual network to the Storage Account. The virtual network has both SQL and Storage Endpoint services enabled on the same subnet. Not sure why it fails. The error is: Msg 4861, Level 16, State 1, Line 37
Cannot bulk load because the file "integrate/units.json" could not be opened. Operating system error code 5(Access is denied.). When I remove the virtual network from the storage account it works fine again. Something is amiss and I cannot figure out what?


Mr Charles

推荐答案

@查尔斯先生,您是否有机会在虚拟网络中配置了服务端点并在子网中添加了允许的访问权限那是创造出来的吗?我建议您查看此  博客 ,这可能是此问题的解决方案.让我知道是否有帮助.
@Mr Charles, Have you by any chance configured the service endpoint in your Virtual Network and added allowed access on the subnet that was created ? I'd recommend checking out this   Blog This could be a solution to this issue. Let me know if it helps.


这篇关于使用虚拟网络时,OPENROWSET命令无法将文件内容从Azure存储移动到SQL Azure吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆