passing variables command line - from Windows VSQL client
my runnQuery.bat file contents
vsql -U user -w pwd -h host-p 5433 -v numvar=3 -f runSQL.sql
runSQL.sql contents
\o sqlOutput
select * from table where a=:numVar;
\o
C:\L>runnQuerypassArgs.bat
vsql:runSQL.sql:3: ERROR 4856: Syntax error at or near ":" at character 48
vsql:runSQL.sql:3: LINE 1: select * from omniture_new.dynamic_sql where a=:numVar;
vsql:runSQL.sql:3: ^
This works well in UNIX but i am not able to get this working in Windows. Can someone please suggest any ideas?
Also, how do i pass in multiple variables to the same SQL file?
vsql -U user -w pwd -h host-p 5433 -v numvar=3 -f runSQL.sql
runSQL.sql contents
\o sqlOutput
select * from table where a=:numVar;
\o
C:\L>runnQuerypassArgs.bat
vsql:runSQL.sql:3: ERROR 4856: Syntax error at or near ":" at character 48
vsql:runSQL.sql:3: LINE 1: select * from omniture_new.dynamic_sql where a=:numVar;
vsql:runSQL.sql:3: ^
This works well in UNIX but i am not able to get this working in Windows. Can someone please suggest any ideas?
Also, how do i pass in multiple variables to the same SQL file?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.