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\"" host))
			 (when user (format "-U \"%s\"" user))
			 (when password (format "-P \"%s\"" password))
			 (when database (format "-d \"%s\"" database))))
	     " "))