-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to execute a complex SQL statement or to compile a procedure or a function. #1
Comments
This works for me. Pay attention for double quotes: " ' SELECT ... ' "
ansible-playbook MSSQL_query.yml -i hosts -e wholeline="'SELECT * FROM dbo.Table1 WHERE Hostname IS NULL'" |
@zigaaa Thanks for that but my question is how we go for a SQL procedure or function spreading over multiple lines? |
I think you can use ansible |
Hi, Trying to use your module like so:
However the query times out. A quick debug shows that the output it not correct. debug:
Using loops make is rather difficult to use this module :) |
Hello there,
Can you kindly provide us with an example of how to execute a complex SQL Statement, or to compile a procedure or a function?
Is there any way we can execute a SQL file?
Kindly assist.
Thank you
Ameya Agashe
The text was updated successfully, but these errors were encountered: