Hello
when I try to execute
setlocal EnableDelayedExpansion
set Sname=SRVTEST\TEST
set inst=%sname:*\=%
echo %instance%
set code=echo "%inst:~0,3%"
echo %code%
set file="%code%_extract.sql"
echo %file%
sqlcmd -E -S SRVTEST\TEST -i \\share.com\adservers\So_SRV\Microsoft\SQL\extract\extract_logins.sql -o \\share.com\adservers\So_SRV\Microsoft\SQL\extract\%file%
Below error is returned
Sqlcmd: 'ARG_extract.sql"': Unexpected argument. Enter '-?' for help.
How to resolve it ?
Thank you
Regards
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.
TRUSTED BY