freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] Re: FreeTDS Digest, Vol 22, Issue 40
- From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] Re: FreeTDS Digest, Vol 22, Issue 40
- Date: Wed, 1 Dec 2004 13:56:48 -0000
Stephen,
The unstated proviso in getting sqsh to talk to MSSQL servers is that
you recompile/link sqsh against the FREETDS libraries.
See the relevant section of the user guide - "how to get what works with
it working"
Bill
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Stephen Prowse
Sent: 01 December 2004 07:20
To: freetds AT lists.ibiblio.org
Subject: [freetds] Re: FreeTDS Digest, Vol 22, Issue 40
"Stephen Prowse" <stephen.prowse AT db.com> wrote:
> We have in the past written many shell scripts using sqsh , or isql,
in
> the form
>
> sqsh -U -P -S << EOF | sed 's/{tab}$//'> file #where {tab} is the
> control character for tab
> select something
> from somewhere
> whre things match.
> EOF
>
> Process the results
>
> Repeat the command with a different sql statement<<EOF2
> sql statement2
> EOF2
> ....
>
> When trying with freetds , version 0.62.4 , with the same structure
the
> commands after the first EOF are ignored. We can get around this by
> calling the sql in separate scripts from a parent but it adds to the
> maintenance. Could anyone advise a way to get the above to work?
>>I think by "freetds" you mean tsql? It would be interesting to get
this
>>to work with tsql, but that really not its purpose. It's just a
testing
>>tool, not a general script processor.
>>I'd be interested to hear how you fare with bsqldb.
I have the same, actually worse issue, with bsqldb in that it doesn't
return the rows with column separators and nor can I see how to do it
without writing a perl program.
I'll struggle on with multiple scripts.
> I'd continue to use sqsh but from what I can see it won't work against
> MSSQL.
>>You can use sqsh with Microsoft servers just fine. I do, all the
time.
>>Does that solve the problem?
I'll try that.
Regards
Steve
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
-
[freetds] Re: FreeTDS Digest, Vol 22, Issue 40,
Stephen Prowse, 12/01/2004
- <Possible follow-up(s)>
- RE: [freetds] Re: FreeTDS Digest, Vol 22, Issue 40, Thompson, Bill D (London), 12/01/2004
Archive powered by MHonArc 2.6.24.