Function: org-babel-sql-dbstring-mssql
org-babel-sql-dbstring-mssql is a byte-compiled function defined in
ob-sql.el.gz.
Signature
(org-babel-sql-dbstring-mssql HOST USER PASSWORD DATABASE)
Documentation
Make sqlcmd command line args for database connection.
sqlcmd is the preferred command line tool to access Microsoft
SQL Server on Windows and Linux platform.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-sql.el.gz
(defun org-babel-sql-dbstring-mssql (host user password database)
"Make sqlcmd command line args for database connection.
`sqlcmd' is the preferred command line tool to access Microsoft
SQL Server on Windows and Linux platform."
(mapconcat #'identity
(delq nil
(list (when host (format "-S \"%s\"" (shell-quote-argument host)))
(when user (format "-U \"%s\"" (shell-quote-argument user)))
(when password (format "-P \"%s\"" (shell-quote-argument password)))
(when database (format "-d \"%s\"" (shell-quote-argument database)))))
" "))