Article ID: 178443 - Last Review: March 14, 2006 - Revision: 4.0 FIX: Regression Old Syntax Outer Join May Produce Error 613This article was previously published under Q178443
BUG #: NT 17126(6.5)
On This PageSYMPTOMS
Using old style syntax, a query with an outer join gives good results, but
on its next execution it causes an error 613, and all subsequent executions
show the same behavior. This problem occurs if the following conditions are
true:
Msg 613, Level 20, State 0
This problem occurs in SQL Server builds 6.50.240 and 6.50.258; the problem does not occur with SQL Server builds 6.50.201 and 6.50.213. WORKAROUND
The script below shows the problem scenario and its two workarounds. Two
different workarounds for this problem are provided after this script.
Workaround 1Force a convert on the column type on for the inner table (in this case, table2), as in the following example:Workaround 2Use the ANSI style syntax, as in the following example:STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base: 197177
(http://support.microsoft.com/kb/197177/
)
INF: How to Obtain SQL Server 6.5 Service Pack 5a For more information, contact your primary support provider.
MORE INFORMATION
It appears that the minimum number of rows on each table depends on the
length of each row in the table description. The problem scenario given
above gives the minimum length and the minimum number of rows for each
table.
| Article Translations
|

Back to the top
