獲取資料庫機器的檔案目錄

2021-06-05 16:14:40 字數 333 閱讀 8720

使用master..xp_dirtree儲存過程 也可以使用master..xp_cmdshell儲存過程

xp_dirtree是獲取目錄檔案

xp_dirtree @path,@depth,@file

@path, varchar 是路徑

@depth, int 是深度

@file , int 是否到檔案級別

exec master..xp_dirtree 'd:\back\',1,1

master.xp_cmdshell則是執行批處理

exec master..xp_cmdshell ' dir d:\back\'

資料庫 目錄

資料庫系統概論 第5版 背景概念 資料庫系統概論 1.緒論 資料庫系統概論 2.關係操作 sql基礎 資料庫系統概論 3.1sql概論和ddl 資料庫系統概論 3.2.檢視 資料庫系統概論 3.4 dml之資料查詢 資料庫系統概論 3.5 空值的處理 資料庫系統概論 4.資料庫安全性 資料庫系統概論...

Oracle資料庫檔案目錄結構

oracle database 10g安裝完成後,其目錄結構與oracle9i有很大不同。oracle database 10g和oracle9i的檔案目錄主要結構如圖1 5所示。在oracle database 10g的檔案目錄中用db 1代替了oracle9i檔案目錄結構中的ora92。圖1 5...

ASP從資料庫中獲取檔案

資料庫的表info,表部分結構 info id int 主鍵 file mime type varchar 50 檔案mime型別 file size int 檔案大小 info file image 檔案 下列 的檔名 getfile.asp language vbscript info id r...