Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Illegal Length

Status
Not open for further replies.

ceesql

Programmer
Jul 6, 2001
28
US
I've joined several large tables into 1 table that is updated nightly. There must be bad data in the table because I received this error last night:

Server: Msg 614, Level 18, State 3, Line 8
A row on page 774351 was accessed that has an illegal length of 0 in database 'THWG'.

How do you determine which row in which has the invalid length?

FROM OURWAY2.THWG.dbo.oelin_r oel
LEFT JOIN OURWAY2.THWG.dbo.oehdr_r oeh ON oeh.ord_ctrl_num = oel.ord_ctrl_num
LEFT JOIN OURWAY2.THWG.dbo.xoehdr_r xoeh ON xoeh.ord_ctrl_num = oel.ord_ctrl_num
LEFT JOIN OURWAY2.THWG.dbo.xoelin_r xoel ON xoel.ord_ctrl_num = oel.ord_ctrl_num AND
xoel.sequence_id = oel.sequence_id
WHERE oeh.category_code = 'SAMPLE' AND
oeh.status_code = 'CLOSED' AND
xoel.shipment_status_time BETWEEN
@begDate AND @endDate
 
Thanks Terry, I appreciate your reply.

DBCC CHECKDB uses a lot of resources against the system. I'm wondering if there is a way to target a specific table.

Cenie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top