Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query Error

$
0
0

Hi. I've been working on this query today and I just can't seem to get it right. I'm a one man team here and I'm hoping a second set of eyes can help. Any input or ideas are much appreciated. Thanks in advance.

The error I get is Msg 306, Level 16, State 2, Line 14

The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.

My query is below.

SELECT OrderDet.PartNo, OrderDet.JobNo, Releases.Qty, OrderDet.DueDate, OrderRouting.StepNo, OrderRouting.WorkCntr, OrderRouting.EstimStartDate

AS EstStartDate,

OrderRouting.EstimEndDate AS EstEndDate,

OrderRouting.ActualStartDate AS ActStartDate,

OrderRouting.ActualEndDate AS ActEndDate,

Releases.Comments,

OrderRouting.Status, OrderRouting.ActualPcsGood, OrderDet.JobNotes, OrderRouting.Descrip, OrderRouting.VendCode, Max(PODet.PONum) AS MaxOfPONum,...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>