Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

HOWTO: Specifying a Catalog Name with SQL Query


View products that this article applies to.

This article was previously published under Q179670

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB179670, kbhowto

↑ Back to the top

Article Info
Article ID : 179670
Revision : 3
Created on : 10/15/2003
Published on : 10/15/2003
Exists online : False
Views : 425