emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Proposal to use sqlcmd for connecting to SQL Server
@ 2016-06-08  7:04 Xi Shen
  0 siblings, 0 replies; only message in thread
From: Xi Shen @ 2016-06-08  7:04 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Hi,

I tried the use the msosql engine in org-mode, but it cannot format the
result into a table. I think MS has made some change that the output of the
command is not compatible with org-mode. More specifically, the output add
"1> 2> 3> 4>  " to the begging and break the table formatting. I saw this
result on Windows 7 with osql 10.50.1600.1.

However, I found that the output of "sqlcmd" can be formatted into a table
in org-mode correctly without any trick.

osql and sqlcmd take similar command arguments, with sqlcmd has more
options. I think it is safe to simply replace the "osql" command into
"sqlcmd" command in the ob-sql.el file.

The only major difference between these two tools are: osql uses ODBC to
connect to the server; while sqlcmd uses the fancy native client to connect
to the server.

I would like to hear ideas/suggestions about this.


Thanks,
David

-- 

Thanks,
David S.

[-- Attachment #2: Type: text/html, Size: 1267 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-08  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-08  7:04 Proposal to use sqlcmd for connecting to SQL Server Xi Shen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).