替代方法在SQL Server中使用SQL Server
xp_cmdshell 存储过程。 However, in certain scenarios, we may prefer to avoid using this procedure.
An Alternative Approach: xp_dirtree
Consider thexp_dirtree stored procedure as an alternative solution for listing files inside a folder.此存储过程需要三个参数: root directory路径
:您希望列出的内容的root目录的路径。 folders.Options
: A value indicating whether to display folders only or include both folders and files.免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3