文章分类 -  MS_SQL分区

T-sql检测文件夹是否存在
摘要:1.T-sql语句检测文件夹是否存在:方法一:declare @i intset @i = 0exec xp_fileexist 'mysql E:\mysql' --利用存储过程检测文件夹存在性set @i = @i + @@errorif(@i < 1) begin print'该文件夹不存在,建立中...' ExEc xp_cmdshell 'mkdir E:\mysql' &nda... 阅读全文
posted @ 2010-08-22 08:51 yrScience 阅读(357) 评论(0) 推荐(0)