Re: no tuples found at index...

From: steve (a_at_b.com)
Date: 01/02/05


Date: Sat, 1 Jan 2005 21:08:50 -0600

well, steve, it's to do with the return statement(s)...just start the query
with "set nocount on"...all will be well at that point.

"steve" <a@b.com> wrote in message news:ycWAd.7234$qI6.1227@fe03.lga...
|i have a query hitting ms sql server. it runs fine in the query analyser
but
| gives an error (no tuples found at... which means the resultset returned
no
| records from what i've read). i have a good connection that i execute the
| sql on.
|
| i'm using odbc to query the db and have tried all of the odbc_cur_use_*
| cursor types on the odbc_connect() but none solve the problem.
|
| any help is appreciated! here's the sql...it's supposed to return a
| unix-type permission string "rwx-rwx----" for each page that is accessed
and
| is used in conjunction with user account information:
|
| ===================
|
| DECLARE @requiresPermission INT
| SET @requiresPermission =
| (
| SELECT COUNT(*)
| FROM webPages
| WHERE Url = 'index.php'
| AND Restricted = 0
| )
| IF @requiresPermission = 0 BEGIN
| SELECT 'r' Access
| RETURN
| END
| SET @requiresPermission =
| (
| SELECT COUNT(*)
| FROM accessList a,
| webPages w
| WHERE w.Id = a.Url
| AND w.Url = 'index.php'
| AND a.person = 0
| )
| IF @requiresPermission = 0 BEGIN
| SELECT '' Access
| RETURN
| END
| SELECT a.Access
| FROM accessList a,
| webPages w
| WHERE w.Id = a.Url
| AND w.Url = 'index.php'
| AND a.person = 0
|
| ===================
|
|



Relevant Pages

  • Re: CONTAINS performance
    ... That said, and with the query plan, I can start to give you more ... relational join in the context of the free-text optimization, ... SQL Server tables. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Indexing Service, Openquery and sp_executesql
    ... SQL Server version and sp are you running? ... > data from the indexing service catalog when pasted into ... > query analyzer, but failed when put against sp_executesql ... I would choose Microsoft Indexing ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Problem using Access or Query Designer to run queries in SQL Serve
    ... >or Query Designer within Enterprise Manager, it works and I get data back. ... >ODBC Call Failed [ODBC SQL Server Driver] Timeout Expirederror in Access ... >[ODBC SQL Server Driver] Timeout Expired ...
    (microsoft.public.sqlserver.odbc)
  • Re: Transaction Isolation Level
    ... This means that while I initiate a transaction selecting all new orders it ... My query is executed on a SQL server 2005. ... the isolation level you should use is snapshot isolation. ...
    (comp.databases.ms-sqlserver)
  • Extreme performance issues (SQL Server 2000/ADO.NET/C#)
    ... This process runs very quickly if run through Query ... same exact stored procedures and views, run in the same exact order, through ... system that runs SQL Server (a 4-cpu Xeons system with 2gigs of physical ... When I execute these steps manually through query analyser,, ...
    (microsoft.public.dotnet.framework.adonet)