Search the web
Sign In
New User? Sign Up
ntemacs-users · NT Emacs
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[h-e-w] running microsoft osql from comint buffer   Message List  
Reply | Forward Message #16711 of 16715 |
RE: [h-e-w] running microsoft osql from comint buffer

Andrew,

Just a wild guess: do you follow your SQL command with "go" on a new line? If I
do that, I get the output of the command. For example, connecting to the pubs
database in the local server:

select distinct count(*) from authors
go
1> 2>
-----------
23

This is with the default isql command processor, but osql works just as well.

Cheers,
Karel

-----Original Message-----
From: Andrew Platts [mailto:calbloke@...]
Sent: donderdag 11 april 2002 19:44
To: help-emacs-windows@...
Subject: [h-e-w] running microsoft osql from comint buffer


Does anyone know how to run microsoft osql/isql thru
the sql-ms function provided in sql.el so that
feedback is given to the buffer as commands are
executed. Under emacs 21.2 (and probably previous
versions) you get no prompt or output until you type
exit - not quite what I was hoping for.

According to MS documentation osql is a win 32 command
prompt utility (I'm thinking like sqlplus for ORACLE )
so I'm not sure why it doesn't operate in an emacs
buffer in the same way it would from a win 2k command
propmt window.



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/





Thu Apr 11, 2002 7:24 pm

Karel.Sprenger@...
Send Email Send Email

Forward
Message #16711 of 16715 |
Expand Messages Author Sort by Date

Does anyone know how to run microsoft osql/isql thru the sql-ms function provided in sql.el so that feedback is given to the buffer as commands are executed....
Andrew Platts
calbloke@...
Send Email
Apr 11, 2002
7:02 pm

Andrew, Just a wild guess: do you follow your SQL command with "go" on a new line? If I do that, I get the output of the command. For example, connecting to...
Sprenger, Karel
Karel.Sprenger@...
Send Email
Apr 11, 2002
8:10 pm

Karel, thanks for te reply - yes I do complete the command with 'go' on a newline. Are you saying that this is the output you see in your emacs *SQLi buffer...
Andrew Platts
calbloke@...
Send Email
Apr 11, 2002
11:48 pm

Andrew, It's what I see in the *SQL* buffer. Note that there's no isql/osql prompt when you start sql-ms, so I just entered the commands. I guess it has...
Sprenger, Karel
Karel.Sprenger@...
Send Email
Apr 12, 2002
5:30 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help