Skip to Content.
Sympa Menu

freetds - Re: [freetds] FreeTDS: Fisql utility command fails to give (return status=0) for SQL Store proc with multiple output Tabs (Results+Messages)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, William" <bill.d.thompson AT baml.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] FreeTDS: Fisql utility command fails to give (return status=0) for SQL Store proc with multiple output Tabs (Results+Messages)
  • Date: Thu, 08 Sep 2016 12:57:01 +0000

Hi,

There's a bug, if you want to call it that, in the fisql program that means
that the "return status = n" message is not printed in this case.

One solution would be to use the "tsql" program rather than "fisql", if you
like. I've checked, and it works as you would want.

If for some reason, you're especially fond of fisql, then it could be fixed.
Are you prepared to fix it yourself and try it out? If so, I'll give you a
suggested code change...

Cheers,

Bill

-----Original Message-----
From: FreeTDS [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of
vasanth.sengunthar AT accenture.com
Sent: 08 September 2016 07:28
To: freetds AT lists.ibiblio.org
Subject: [freetds] FreeTDS: Fisql utility command fails to give (return
status=0) for SQL Store proc with multiple output Tabs (Results+Messages)

Hi,

Please help with missing (return status=0) with fisql command for MS SQL
Server 2012 -output from Linux OS.
Check trail mail for more reference.

Regards,
Vasanth

-----Original Message-----
From: Sengunthar, Vasanth
Sent: Tuesday, August 30, 2016 8:29 PM
To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
Subject: RE: [freetds] FreeTDS: Fisql utility command fails to give (return
status=0) for SQL Store proc with multiple output Tabs (Results+Messages)

Hi All,

Please help with below Issue.
Looking forward to hearing a positive response from you.

Regards,
Vasanth


-----Original Message-----
From: Sengunthar, Vasanth
Sent: Monday, August 22, 2016 3:09 PM
To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
Subject: RE: [freetds] FreeTDS: Fisql utility command fails to give (return
status=0) for SQL Store proc with multiple output Tabs (Results+Messages)

Hi,

Please check below sample SP.

Database : Microsoft SQL Server 2012
Protocol Version : tds_version = 7.0

[SP]
---------
USE [TEST01]
GO
/****** Object: StoredProcedure [dbo].[tst_test_result_msg] Script Date:
8/22/2016 5:31:16 AM ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[tst_test_result_msg]
@tst_flag varchar(1),
@tst_desc varchar(40)
AS
BEGIN
DECLARE
@tst_activ_type varchar(5)

SELECT cust_no, cust_name
FROM dbo.customer

IF @tst_flag = 'A'
SELECT @tst_desc = 'Print A'
ELSE
IF @tst_flag = 'B'
SELECT @tst_desc = 'Print B'
ELSE
IF @tst_flag = 'C'
SELECT @tst_desc = 'Print C'
ELSE
IF @tst_flag = 'D'
SELECT @tst_desc = 'Print D'

PRINT @tst_desc
END


Regards,
Vasanth


-----Original Message-----
From: FreeTDS [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Igor
Korot
Sent: Sunday, August 21, 2016 7:03 AM
To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
Subject: Re: [freetds] FreeTDS: Fisql utility command fails to give (return
status=0) for SQL Store proc with multiple output Tabs (Results+Messages)

Hi.
Do you have an example of one such SP?
What is you DB (MS, Sybase) and what version?
Which protocol version do you use?

All in all - we need more info.

Thank you.

On Aug 20, 2016 11:01 AM, <vasanth.sengunthar AT accenture.com> wrote:


Hi,



Thank you all in advance, please help me with below issue.



I have been working with fisql command lot lately and recently I came across
this issue, where the fisql command does not give (return status=0) for some
SQL execution.



The Issues is not generic but specific to any such SQL store procedure which
gives output in (results + message) format.



And the approach I like to present to out client includes such scenario where
they have multiple store procedure like above.



Looking forward to your earliest response,

Regards,
Vasanth Sengunthar

________________________________

This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise confidential information. If you have received it
in error, please notify the sender immediately and delete the original. Any
other use of the e-mail by you is prohibited. Where allowed by local law,
electronic communications with Accenture and its affiliates, including e-mail
and instant messaging (including content), may be scanned by our systems for
the purposes of information security and assessment of internal compliance
with Accenture policy.
____________________________________________________________
__________________________

www.accenture.com
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.ibiblio.org_mailman_listinfo_freetds&d=DQICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=vQqnb-FGv_1Cq8lIuKD95mRfUO0gBovRe0eqdms7a5s&m=IodVUj5zMfeQKJDmDX80aFnfyn9y4W4EpZ5OBAzYolQ&s=aGO9gO5yFlXxuEHx6iLcCyFGQDh_XC5h1qsrfVFYXsM&e=
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.ibiblio.org_mailman_listinfo_freetds&d=DQICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=vQqnb-FGv_1Cq8lIuKD95mRfUO0gBovRe0eqdms7a5s&m=IodVUj5zMfeQKJDmDX80aFnfyn9y4W4EpZ5OBAzYolQ&s=aGO9gO5yFlXxuEHx6iLcCyFGQDh_XC5h1qsrfVFYXsM&e=

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may
contain information that is privileged, confidential and/or proprietary and
subject to important terms and conditions available at
http://www.bankofamerica.com/emaildisclaimer. If you are not the intended
recipient, please delete this message.




Archive powered by MHonArc 2.6.24.

Top of Page