🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #313

Re: Howto limit the select output with VDB7?

#313
From: toffie
Date: Wed, 30 Dec 1998 00:00
29 lines
2012 bytes
In article <76cufd$qlm3@forums.borland.com>,
  "Joerg W." <tvt-huerth@netcologne.de> wrote:
> I'm using SQL Server 6.5 (through ODBC) and VDB7.
> I just want receive only 10 rows in a query.
> SET ROWCOUNT X or SET TEXTSIZE X doesn't work, because
> a query opens a new connection to the Server (ID n+1, SPID n+1)
> and settings in the connection before are ignored.
> VDB doesn't accept a sql string in a query like query1.rowset.sql="set
> rowcount 10 select * from table".
> Is there a way to handle this?
>
When using the following SQL in the ODBC Test tool through the MS SQLServer
driver

set rowcount 10; select * from test; set rowcount 0

I got 10 results back. Basically this problem can be caused by two
possibilities: 1) the version of your driver will not allow this. This can be
seen at the error message that comes back.. it says something like
[SQLServer] in the errormessage. If this should be the case I suggest
upgrading to for example version 3.5 of the driver (this is the version that
I got) 2) the VDB is parsing the SQL statement and decides this is not
correct according to his standards. Check the application to find out if
there is the possibility to turn this parsing off.

Toffie.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <76dm94$vhc$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <76cufd$qlm3@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,5c7a3913fde8377e
X-Google-Attributes: gidff5a1,public
From: toffie@my-dejanews.com
Subject: Re: Howto limit the select output with VDB7?
Date: 1998/12/30
Message-ID: <76dm94$vhc$1@nnrp1.dejanews.com>
X-Deja-AN: 427136750
References: <76cufd$qlm3@forums.borland.com>
X-Http-Proxy: 1.0 x9.dejanews.com:80 (Squid/1.1.22) for client 194.7.36.2
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Wed Dec 30 17:01:25 1998 GMT
Newsgroups: borland.public.vdbase.data.sql
X-Http-User-Agent: Mozilla/4.04 [en] (WinNT; I)