Passing Variable Length Arguments into Batch File
Posted: 06 Nov 2008 20:05
Within a batch file, I am using the function sqlcmd that can take variable number of argments. For example:
sqlcmd %database% %file% -v value1 -v value2 -v value3 ...
I want to pass into this batch file the values (value1, value2, value3, ...) that would be applied to sqlcmd function. In other words, something like:
Call foo value1 value2 value3 ...
What would be the best way to perform this action?
sqlcmd %database% %file% -v value1 -v value2 -v value3 ...
I want to pass into this batch file the values (value1, value2, value3, ...) that would be applied to sqlcmd function. In other words, something like:
Call foo value1 value2 value3 ...
What would be the best way to perform this action?