Giter Site home page Giter Site logo

mollypi / ansible-mssql-query Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melmorabity/ansible-mssql-query

0.0 0.0 0.0 15 KB

Ansible module to run a SQL query on a Microsoft SQL Server database

License: GNU General Public License v3.0

Python 100.00%

ansible-mssql-query's Introduction

mssql_query

Run a SQL query on a Microsoft SQL Server database.

Synopsis

Run a SQL query on a Microsoft SQL Server database.

Options

parameter required default choices comments
autocommit no False Automatically commit the change only if the import succeed. Sometimes it is necessary to use autocommit=true, since some content can't be changed within a transaction.
login_user no The username used to authenticate with.
login_host no The host running the database.
as_dict no False If true, return results as a list of dictionaries.
db no The name of the database.
login_password no The password used to authenticate with.
query yes The SQL query to run.
port no 1433 The database port to connect to.
tds_version no 7.1 The TDS protocol version to use.

Examples

# Run SQL query
- local_action:
    module: mssql_query
    db: mydatabase
    query: SELECT * FROM myschema.mytable

Notes

  • Requires the pymssql Python package on the remote host.

ansible-mssql-query's People

Contributors

melmorabity avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.