freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Error when using nocount, insert and print statements together.
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Error when using nocount, insert and print statements together.
- Date: Tue, 25 Oct 2005 17:46:04 -0400
> From: ZIGLIO, Frediano, VF-IT
> Sent: Tuesday, October 25, 2005 5:38 AM
>>> From: M A
>>> Sent: Friday, October 21, 2005 2:40 PM
>>> ...
>>> To reproduce the error create the table and stored procedure on
>>> SQL server using the following code:
>>>
>>> create table test_api([updated_date] datetime, [id] int)
>>>
>>> create proc testProc
>>> AS
>>> BEGIN
>>> set nocount on
>>> insert into test_api values(getDate(), 1)
>>> insert into test_api values(getDate(), 2)
>>> print 'About to call select'
>>> select updated_date,id from test_api
>>> print 'Did the select'
>>> END
>
> Try with this patch (works for me)
> [excellent patch snipped]
Looks good! Committed:
Script started on Tue Oct 25 17:26:12 2005
$ ./nocount.sh
/usr/local/bin/bsqldb -S mpquant -U $U -P $P -D testdb
@@rowcount not available
@@rowcount not available
About to call select
updated_date id
-------------------------- -----------
Oct 25 2005 05:26PM 1
Oct 25 2005 05:26PM 2
@@rowcount not available
Did the select
Procedure returned 0
@@rowcount not available
$ exit
Script done on Tue Oct 25 17:26:22 2005
Thanks, Freddy, and regards,
--jkl
-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.
-
[freetds] Error when using nocount, insert and print statements together.,
M A, 10/21/2005
- <Possible follow-up(s)>
- Re: [freetds] Error when using nocount, insert and print statements together., Lowden, James K, 10/24/2005
- Re: [freetds] Error when using nocount, insert and print statements together., ZIGLIO, Frediano, VF-IT, 10/25/2005
- Re: [freetds] Error when using nocount, insert and print statements together., Lowden, James K, 10/25/2005
-
Re: [freetds] Error when using nocount, insert and print statements together.,
M A, 10/26/2005
- Re: [freetds] Error when using nocount, insert and print statements together., Frediano Ziglio, 10/27/2005
Archive powered by MHonArc 2.6.24.