Skip to content

This docker image is made as a Job or Coinjob, and is easy to use. It is a small program that runs a SQL script on a mssql database.

Notifications You must be signed in to change notification settings

chri11g6/mssql-execute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mssql-execute

Docker Pull Docker Stars

This docker image is made as a Job or Coinjob, and is easy to use. It is a small program that runs a SQL script on a mssql database.

Insert your envoriment arguments in either the Docker Command or Docker-compose, where -v "./execute.sql:/app/execute.sql" or

volumes:
    - './execute.sql:/app/execute.sql'

is the path to your SQL script.

Environment

Description Default
USERNAME Username to database
PASSWORD Password to database
SERVERURL Url or Ip address
PORT Port nummber to database 1443
DATABASE What database name?
DELAY Delay to execute SQL script (ms) 0

Docker command

docker run -v "./execute.sql:/app/execute.sql" -e USERNAME=SA -e PASSWORD=<YourStrong@Passw0rd> -e SERVERURL=localhost -e PORT=1433 -e DATABASE=master chri11g6/mssql-execute:v1

Docker-compose

version: '3'
services: 
    MsSQL-execute:
        image: chri11g6/mssql-execute:v1

        environment:
            USERNAME: SA
            PASSWORD: '<YourStrong@Passw0rd>'
            SERVERURL: 'localhost'
            PORT: 1433
            DATABASE: master

        volumes: 
           - './execute.sql:/app/execute.sql'

# Use this to connection to other network
networks:
    default:
        external: true
        name: host

About

This docker image is made as a Job or Coinjob, and is easy to use. It is a small program that runs a SQL script on a mssql database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published