Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

snsinahub/sqlcmd

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

snsinahub/sqlcmd is an action that runs script containing the languages and commands supported by SQL Server SQLCMD.

Supported methods

  • Authentication: windows authentication

Parameters

-uses:snsinahub/dotnet-cli@v2.2.0with:# Type of command# supported values# script: pass sql script file to the action# example:#   sqlcmd_action: "script"sqlcmd_action:"script"# Absolute path to sql file# example:#   sql_path: 'C:\scripts\run.sql'sql_path:'C:\scripts\run.sql'# Name of sql server URL or Machine name# example:#   server_name: 'C:\project'server_name:"sql.snsinahub.com"# Pass parameters in format of comma separated values# IMPORTANT: if you need to put value of each variable inside quotes please follow      ##   sqlcmd_variables: env='dev' account='dev-account'#   input_type: inlinesqlcmd_variables:env='dev' account='dev-account'# Pass parameters in format of comma separated values# IMPORTANT: if you need to put value of each variable inside quotes USE SINGLE QUOTES ONLY# DOUBLE QUOTES ARE NOT ACCEPTED# example:#   input_type: inlineinput_type:inline# Query Timeout# example:#   query_timeout: 6000query_timeout:6000# MS SQL Server database name# example:#   db_name: SSISDBdb_name:SSISDB

Example

Call Script Without Input

-name:sqlcmd scriptsuses:snsinahub/sqlcmd@v2.2.0with:sqlcmd_action:"script"sql_path:'C:\scripts\run.sql'server_name:"sql.snsinahub.com"input_type:inlinedb_name:SSISDB

Call Script With Input

-name:sqlcmd scriptsuses:snsinahub/sqlcmd@v2.2.0with:sqlcmd_action:"script"sql_path:'C:\scripts\run.sql'server_name:"sql.snsinahub.com"sqlcmd_variables:env='dev' account='dev-account'input_type:inlinequery_timeout:6000db_name:SSISDB

[8]ページ先頭

©2009-2025 Movatter.jp