HOWTO: Specifying a Catalog Name with SQL Query

Last reviewed: January 22, 1998
Article ID: Q179670
The information in this article applies to:
  • Microsoft OLE DB Provider for Index Server 2.0

SUMMARY

Microsoft OLE DB Provider for Index Server (MSIDXS) supports the "Data Source" property to specify a Catalog name when querying the contents of Index Server.

MORE INFORMATION

When you install Index Server 2.0, it creates a default Web Catalog. You can create and configure more catalogs using the Index Server Manager.

When performing SQL queries to optimize your search, you can take advantage of standard ActiveX Data Objects (ADO) properties and provider-specific properties listed under "SQL Access to Index Server Data"/"ADO Properties" in the Index Server Help included with Windows NT Option Pack documentation.

The Index Server Help documentation also discusses that a Catalog can be specified in the FROM clause of a SQL query. However, selecting the catalog in the FROM clause is not recommended.

To specify a different catalog, set the data source property of the ADO connection as shown below (Active Server Pages example):

   Set Conn = Server.CreateObject("ADODB.Connection")
   Conn.ConnectionString =  "provider=msidxs;data source=myTestCatalog;"

NOTE: Conn.connectionstring is setting the data source.

REFERENCES

For more information on creating and using Catalogs, refer to the Index Server documentation "Creating and Configuring Catalogs" in the Windows NT Option Pack documentation.


Additional query words: DSN Catalog

Keywords : oledbProvIndex
Technology : ole
Version : WINDOWS:2.0
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 22, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.