FIX: READTEXT May Fail w/ Msg 7134 If Hard Coding Text Pointer (170507)
The information in this article applies to:
- Microsoft SQL Server 6.5 Service Pack 3
- Microsoft SQL Server 7.0
This article was previously published under Q170507
BUG #: 17087 (6.5)
SYMPTOMS
The READTEXT statement will fail with "Msg 7134, Level 16, State 2" if both
of the following conditions are true:
- The text pointer provided is hard coded.
-and-
- The READTEXT statement is the first statement of the batch.
WORKAROUND
To work around the problem, do either of the following:
- Use a local variable to store the text pointer, instead of directly hard
coding the text pointer value.
-or-
- Make sure that the READTEXT statement is not the first statement in the
batch. You can consider doing a "dummy" select, such as "select
@@version".
STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server
version 6.5 Service Pack 3.
This problem was corrected in the latest Microsoft SQL Server 6.5 U.S.
Service Pack. For information on obtaining the service pack, query on
the following word in the Microsoft Knowledge Base (without the spaces):
S E R V P A C K
Modification Type: | Major | Last Reviewed: | 2/20/2004 |
---|
Keywords: | kbBug kbfix kbusage KB170507 |
---|
|