替代方法在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