I was wondering if there is a command-line utility that would connect to MS SQL server and would work just like MySQL client for unix?
If anyone knows could you please give us a link?
Also, a lot of those clients you just "get in" them and you can't really use the output to redirect to a file or pipe it through grep. Such utilities are quite "human-driven" and it would be nice if I could have a utility where I could pass to to it something like "Select * from customers" and then to pipe the output and then do something else with it and then trigger a process, etc.
As a side note I am missing this a lot especially using ncftp. Sometimes while working with it I need to put ncftp in the background so I can do something on the local filesystem before I could get back to it, or I need to save the output of the "ls -al" command to a local file or something like that.
Is this possible with the current utilities like mysql-client or ncftp? If not, such tool can be written pretty easily with perl - does anyone know of one?
Greets,
Roumen Semov