--检查文件是否已经存在
create table #tb(a bit,b bit,c bit)
insert into #tb exec master..xp_fileexist 'c:\boot.ini' --c:\boot.ini是要检查的文件名
if exists(select * from #tb where a=1)
print '有该文件'
else
print '无该文件'
drop table #tb
create table #tb(a bit,b bit,c bit)
insert into #tb exec master..xp_fileexist 'c:\boot.ini' --c:\boot.ini是要检查的文件名
if exists(select * from #tb where a=1)
print '有该文件'
else
print '无该文件'
drop table #tb
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货