Type conversion in expression
(CONVERT(nvarchar(23),[soh].[SalesOrderID],0)) may affect
"CardinalityEstimate" in query plan choice
Since you are not aware about this warning message.It is important to point other example where this warning message MATTER.
When there is data type mismatch between 2 Join condition then also you get this error.
In such case it greatly impact the performance.
So you make the data type similar.
CREATE TABLE myTable (ID INT, Col VARCHAR(100))
GO
INSERT INTO myTable (ID, Col)
SELECT 1, 'X'
UNION ALL
SELECT 2, 'Y'
UNION ALL
SELECT 3, 'Z'
GO
GO
--Check the execution Plan
SELECT *
FROM myTable
WHERE ID = N'1' AND Col = N'X'
GO
Here N'1' (NVarchar) is converted to int.
NVarchar precedence is lower then INT.
Data type of lower precedance is converted to data type of higher precedence.
So if there afe millions of rows involve and you are getting same Warning ,that means CONVERT will happen for each rows in resultset. It will affect Cardianility estimate.
Data Type Precedence