p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Servers > Internet Information Services
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Internet Information Services Limit this to IIS questions and posts. ASP/ASP.NET questions should still go in the ASP/ASP.NET forums.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Internet Information Services section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 29th, 2006, 01:35 AM
Registered User
 
Join Date: Aug 2006
Location: bangalore, karnataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent help! Index Server Query returns 0 records

Hello,

I'm trying this code written in VB Script and its returning 0 records, inspite there are records. When I query the index server directly, I get records, but with this code i get 0 records. Can someone help?

Thanks in anticipation,
Rakesh


      Dim ixQuery ' Index Server query object.
      Set ixQuery = CreateObject("ixsso.Query")
      If (Err.Description <> "") Then
        MsgBox err.Description
      End If
      ixQuery.Columns = "filename,rank"
      ixQuery.SortBy = "rank[d]"
      ixQuery.Query = "Agreement"
      ixQuery.Maxrecords = 1000
      ixQuery.Catalog = "query://coiw2ptidbdev/system"

Dim util
      Set util = CreateObject("ixsso.Util")
      util.AddScopeToQuery ixQuery, "/", "deep"
      If (Err.Description <> "") Then
            MsgBox err.Description
      End If

      ' Run the query (i.e. create the recordset).
      Dim queryRS
      'Set queryRS = CreateObject("ADODB.Recordset")
      Set queryRS = ixQuery.CreateRecordSet("nonsequential")

      ' Check the query result. If it timed out or return no records, then show
      ' an appropriate message. Otherwise, show the hits.
      If (Err.Description <> "") Then
        MsgBox err.Description
      Else
         If queryRS Is Nothing Then
            MsgBox "No records found"
         ElseIf (ixQuery.QueryTimedOut) Then
            MsgBox "Query Timedout"
         ElseIf ( queryRS.EOF or queryRS.BOF or queryRS.RecordCount <= 0 ) Then
               msgbox cstr(queryRS.RecordCount)
            'MsgBox "No Matches found"
         Else
            queryRS.PageSize = rowCount
            MsgBox cstr(queryRS.PageSize)
            If (Err.Number <> 0) Then
               MsgBox "Record Display Error: " & Err.Description
            End If
         End If
      End If





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA - SQL query returns nothing from MySQL Calligra Access VBA 6 September 19th, 2007 05:10 PM
SQL Query returns error Raphasevilla Access VBA 2 February 22nd, 2006 08:30 AM
Check if query returns results marcin2k Access VBA 10 December 9th, 2005 02:05 PM
RecordCount Query returns EOF and BOF jigs_bhavsar Pro VB Databases 3 November 11th, 2004 09:32 AM
Problem with Index server Query MurthyGarimella VS.NET 2002/2003 0 July 7th, 2004 07:57 AM



All times are GMT -4. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc