on 07-11-2017 3:14 PM
Dear Support Team,
I would like to pass an argument (or more) from a bash script to an input file so I can use that parameter in my SQL code.
cat sybase.sh
#!/bin/bash
isql -S SERVER_NAME -U USER_NAME -P PASSWORD -i input.sql
cat input.sql
USE master
GO
SELECT COUNT(*) FROM <argument_from_bash_script>
GO
Is this possible somehow?
Thanks in advance.
Regards,
Laszlo
Thanks a lot Mark, it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.