Microsoft KB Archive/174443: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - """ to """)
 
(One intermediate revision by the same user not shown)
Line 49: Line 49:
== SYMPTOMS ==
== SYMPTOMS ==


If you perform a SELECT INTO statement using an &quot;index = <index name&gt;&quot; optimizer hint where <index name&gt; is not a valid index name, an unusable destination table will be created. This destination table cannot be dropped by using a DROP TABLE statement.
If you perform a SELECT INTO statement using an "index = <index name>" optimizer hint where <index name> is not a valid index name, an unusable destination table will be created. This destination table cannot be dropped by using a DROP TABLE statement.


</div>
</div>
Line 82: Line 82:


Msg 308, Level 16, State 1<br />
Msg 308, Level 16, State 1<br />
Index '<Index Name&gt;' on table '<Table Name&gt;' (specified in the FROM clause) does not exist.
Index '<Index Name>' on table '<Table Name>' (specified in the FROM clause) does not exist.


</div>
</div>
Line 88: Line 88:
Subsequent SELECT INTO statements fail because the table exists in the database's system catalogs.<br />
Subsequent SELECT INTO statements fail because the table exists in the database's system catalogs.<br />
<br />
<br />
A search of the sysobjects table will show the table name with a sysstat = 195. Attempting to drop the table with a DROP TABLE <table name&gt; statement returns the following message:<br />
A search of the sysobjects table will show the table name with a sysstat = 195. Attempting to drop the table with a DROP TABLE <table name> statement returns the following message:<br />


<div class="errormessage">
<div class="errormessage">
Line 97: Line 97:
</div>
</div>
<br />
<br />
A DBCC CHECKTABLE('<table name&gt;') statement returns the following message:<br />
A DBCC CHECKTABLE('<table name>') statement returns the following message:<br />


<div class="errormessage">
<div class="errormessage">

Latest revision as of 10:07, 21 July 2020

Knowledge Base


FIX: Stranded Compile Time Table Created by a Failed SELECT INTO Statement

Article ID: 174443

Article Last Modified on 7/19/2006



APPLIES TO

  • Microsoft SQL Server 6.5 Standard Edition



This article was previously published under Q174443

BUG #: 16819 (SQLBUG_6.5)

SYMPTOMS

If you perform a SELECT INTO statement using an "index = <index name>" optimizer hint where <index name> is not a valid index name, an unusable destination table will be created. This destination table cannot be dropped by using a DROP TABLE statement.

WORKAROUND

To resolve this problem, install SQL Server 6.5 Service Pack 3 or later.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in U.S. Service Pack for Microsoft SQL Server 6.5. For information about how to download and install the latest SQL Server Service Pack, see the following Microsoft Web site:

For more information, contact your primary support provider.

MORE INFORMATION

The SELECT INTO statement mentioned above will return the following error:

Msg 308, Level 16, State 1

Index '<Index Name>' on table '' (specified in the FROM clause) does not exist.


Subsequent SELECT INTO statements fail because the table exists in the database's system catalogs.

A search of the sysobjects table will show the table name with a sysstat = 195. Attempting to drop the table with a DROP TABLE
statement returns the following message:

Msg 3701, Level 11, State 1
Cannot drop the table 'B', because it doesn't exist in the system catalogs.


A DBCC CHECKTABLE('
') statement returns the following message:

Msg 2501, Level 16, State 2
Table named b not found; check Sysobjects


Additional query words: command sp sp1 sp2 sp3

Keywords: kbbug kbfix kbusage KB174443