Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

202 lines
5.6 KiB

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Demo for OLE DB Provider for Indexing Service</TITLE>
  5. <LINK REL=STYLESHEET HREF="is2style.css" TYPE="text/css">
  6. <META NAME="DESCRIPTION" CONTENT="Sample query form for OLE DB Provider for Indexing Service">
  7. <META NAME="AUTHOR" CONTENT="OLE DB Test team">
  8. <META NAME="KEYWORDS" CONTENT="query, content, hit">
  9. <META NAME="SUBJECT" CONTENT="sample form">
  10. <META NAME="MS.CATEGORY" CONTENT="Internet">
  11. <META NAME="MS.LOCALE" CONTENT="EN-US">
  12. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
  13. </HEAD>
  14. <BODY background="is2bkgnd.gif">
  15. <TABLE>
  16. <TR><TD><a href="http://www.microsoft.com/ntserver/search" target="_top"><IMG SRC ="is2logo.gif" VALIGN=MIDDLE ALIGN=LEFT border=0></a></TD></TR>
  17. <TR><TD ALIGN="RIGHT"><H3>Sample SQL Based Search Form</H3></TD></TD></TR>
  18. </TR>
  19. </TABLE>
  20. <FORM ACTION="SQLQHit.asp" METHOD="GET">
  21. <H3>Building an SQL Query</H3>
  22. <p>
  23. <TABLE width=500>
  24. <colgroup span=1 width=300 align=left>
  25. <tr>
  26. <td colspan=2 class=RecordTitle>
  27. SELECT Clause
  28. </td>
  29. </tr>
  30. <tr>
  31. <td colspan=2>
  32. Select the requested columns to build the<I> Select-list </I>from the list box.
  33. Choose one or more columns from the list. To select multiple columns, use the CTRL key.
  34. To select a range of columns, use the SHIFT key. For example, you can choose <B>Filename, DocAuthor, Size, VPath</B>
  35. The columns that appear in your Indexing Service query will be separated by commas as part of the query preparation process.
  36. </td>
  37. </tr>
  38. <tr>
  39. <td bgcolor=pink>
  40. <B>Note:</B> The * can only be used with a predefined view. To explicitly select
  41. properties, you must change <I>extended_webinfo</I> to a scope function, such as
  42. <I>Scope()</I>.
  43. </td>
  44. <td valign=top align=center>
  45. <B>SELECT</B><br>
  46. <SELECT NAME="CiColumns" MULTIPLE SIZE=8>
  47. <OPTION selected>*
  48. <OPTION>access
  49. <OPTION>allocsize
  50. <OPTION>attrib
  51. <OPTION>Characterization
  52. <OPTION>ClassId
  53. <OPTION>create
  54. <OPTION>DocAppName
  55. <OPTION>DocAuthor
  56. <OPTION>DocCharCount
  57. <OPTION>DocComments
  58. <OPTION>DocCreateDTM
  59. <OPTION>DocEditTime
  60. <OPTION>DocKeywords
  61. <OPTION>DocLastAuthor
  62. <OPTION>DocLastPrinted
  63. <OPTION>DocLastSaveDTM
  64. <OPTION>DocPageCount
  65. <OPTION>DocRevNumber
  66. <OPTION>DocSecurity
  67. <OPTION>DocSubject
  68. <OPTION>DocTemplate
  69. <OPTION>DocTitle
  70. <OPTION>DocWordCount
  71. <OPTION>FileIndex
  72. <OPTION>Filename
  73. <OPTION>hitcount
  74. <OPTION>path
  75. <OPTION>rank
  76. <OPTION>shortfilename
  77. <OPTION>size
  78. <OPTION>USN
  79. <OPTION>Vpath
  80. <OPTION>workid
  81. <OPTION>write
  82. </SELECT>
  83. </td>
  84. </tr>
  85. </table>
  86. <p>
  87. <TABLE width=500>
  88. <colgroup span=1 width=300 align=left>
  89. <tr>
  90. <td colspan=2 class=RecordTitle>
  91. FROM Clause
  92. </td>
  93. </tr>
  94. <tr>
  95. <td colspan=2>
  96. The SCOPE() specification identifies the virtual roots or directories to perform
  97. the search. You can specify deep traversal (default) where all the subdirectories
  98. are searched, or shallow traversal where only the specified directory is searched.
  99. </td>
  100. <tr>
  101. <td bgcolor=pink>
  102. <b>Note:</b> You can specify predefined views of FILEINFO, FILEINFO_ABSTRACT,
  103. EXTENDED_FILEINFO, WEBINFO, EXTENDED_WEBINFO in the FROM clause.
  104. </td>
  105. <td>
  106. <B>FROM</B><INPUT TYPE="TEXT" NAME="CiScope" SIZE="30" MAXLENGTH="200" VALUE="extended_webinfo">
  107. </td>
  108. </tr>
  109. </table>
  110. <p>
  111. <TABLE width=500>
  112. <colgroup span=1 width=300 align=left>
  113. <tr>
  114. <td colspan=2 class=RecordTitle>
  115. WHERE Clause
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. The WHERE clause specifies the filter condition of your search.
  121. </td>
  122. <td>
  123. <B>WHERE</B> <INPUT TYPE="TEXT" NAME="CiRestriction" SIZE="30" MAXLENGTH="255" VALUE="CONTAINS('index AND server')">
  124. </td>
  125. </tr>
  126. </table>
  127. <p>
  128. <TABLE width=500>
  129. <colgroup span=1 width=300 align=left>
  130. <tr>
  131. <td colspan=2 class=RecordTitle>
  132. ORDER BY Clause
  133. </td>
  134. </tr>
  135. <tr>
  136. <td>
  137. The optional ORDER BY clause is used to specify the column(s) which you wish the result set to be ordered on. You can leave this field blank.
  138. </td>
  139. <td>
  140. <B>ORDER BY</B> <INPUT TYPE="TEXT" NAME="CiOrderBy" SIZE="20" MAXLENGTH="50" VALUE="">
  141. </td>
  142. </tr>
  143. </table>
  144. <TABLE width=500>
  145. <tr>
  146. <td align=left><a href="ixtipsql.htm">SQL Syntax Tips</a></td>
  147. <td align=center height=80>
  148. <INPUT TYPE="SUBMIT" SIZE="0" MAXLENGTH="0" VALUE="Execute Query">
  149. </td>
  150. </tr>
  151. </table>
  152. <INPUT TYPE="HIDDEN" NAME="CiMaxRecordsPerPage" VALUE="10">
  153. <INPUT TYPE="HIDDEN" NAME="CiSort" VALUE="rank[d]">
  154. </FORM>
  155. <!-- BEGIN STANDARD MICROSOFT FOOTER FOR QUERY PAGES -->
  156. <hr width=500 align=left>
  157. <p>
  158. <table border="0" cellpadding="0" cellspacing="0" width="500">
  159. <tr>
  160. <!-- IIS GIF -->
  161. <td>
  162. <a href="http://www.microsoft.com/windows2000"><img src="win2k.gif" alt="Learn more about Microsoft Windows 2000!" border="0"></a>
  163. </td>
  164. <!-- Microsoft Legal Info -->
  165. <td align=center>
  166. <font style="font:arial; font-size: 8pt"> &copy;1997-1999 Microsoft Corporation. All rights reserved.<br></font>
  167. <a href="http://www.microsoft.com/misc/cpyright.htm"><font style="font:arial; font-size: 6pt">Legal Notices.</font></a>
  168. </td>
  169. <!-- Best with IE GIF -->
  170. <td align=right>
  171. <a href="http://www.microsoft.com/ie"><img src="IE.GIF" alt="Download Internet Explorer!" border="0"></a>
  172. </td>
  173. </tr>
  174. </table>
  175. <!-- END STANDARD MICROSOFT FOOTER FOR QUERY PAGES -->
  176. <p>
  177. </BODY>
  178. </HTML>