BUG: Qualifying Table Name in Query Results in More I/O Op.Last reviewed: May 5, 1997Article ID: Q96196 |
The information in this article applies to:
NT: 97 (4.2) SYMPTOMSFully qualifying a table name with a database name in a query results in more I/O operations and more query processing time than using a non-fully qualified table name.
ExamplesQuery 1 (table name not fully qualified):
update titles set titles.royalty = titles.royalty from titles Result Logical reads: 92Query 2 (table name fully qualified):
update pubs..titles set titles.royalty = titles.royalty from titles Results Logical reads: 398 WORKAROUNDUse the table name without fully qualifying it with the database name. Alternatively, use fully qualified tablenames consistently throughout the query.
Example
update pubs..titles set pubs..titles.royalty = pubs..titles.royalty from pubs..titles STATUSMicrosoft has confirmed this to be a problem in SQL Server versions 4.2 and 4.2a for OS/2 and Microsoft SQL Server versions 4.21 and 4.21a. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |