🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4876

Re: How do i get the plain text returned from SQL server?

#4876
From: Jerry Bloomfield (TeamB)
Date: Tue, 25 Sep 2001 02:07
36 lines
2362 bytes
On Fri, 21 Sep 2001 14:06:03 -0400, "Robert Vozdecky"
<admin@vclcomponents.com> wrote:

>I am using ADO to execute some SQL statement similar to this:
>
>insert into A (A,B) values ('aa','bb')
>insert into A (A,B) values ('aa','bb')
>print ('hello')
>insert into A (A,B) values ('aa','bb')
>
>I want to get the plain text returned by SQL server, which should look like
>this:
>
>(1 row(s) affected)
>(1 row(s) affected)
>hello
>(1 row(s) affected)
>
>Is there some property or method in ADO which would give me the plain text?

To begin with,  I do not believe that you get that plain text results back
from the server as you believe you do.  I suspect that you get back a group
of return codes which the SQL Server client software interprets for you and
displays that information.

If you want to see one way to grab the results from an SQL statement's
execution,  try downloading my TODBC example from Code Central.  This
simple application executes SQL commands and captures the results set
coming back using the ODBC API calls,  and is about the closest that I can
think you will get to what you are asking for.

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Technical Details
Message-ID: <lgpvqtoq45clcfhu6mtg0j318p7fp4bct3@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3bab8185_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,2552b6ca53084408
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-09-24 19:13:00 PST
From: "Jerry Bloomfield (TeamB)" <JersWork@wwa.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How do i get the plain text returned from SQL server?
Date: Mon, 24 Sep 2001 21:07:15 -0500
Organization: LSVFA - Latest Software Version Freaks Anonomous
Message-ID: <lgpvqtoq45clcfhu6mtg0j318p7fp4bct3@4ax.com>
References: <3bab8185_2@dnews>
X-Newsreader: Forte Agent 1.8/32.553
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 157.238.71.182
X-Trace: dnews 1001383614 157.238.71.182 (24 Sep 2001 19:06:54 -0700)
Lines: 36
X-Authenticated-User: jerswork
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews