1
I’m having a problem executing a query in the SQL Server, where I try to bring a column with a conversion of done in a column like DATE
and another column with an HTML code mounted.
Follow the query below:
select convert(varchar, R.Data, 121) , '</td><td>' + C.No + '</td><td>' + C.Nome
+ '</td><td>' + V.IdVendedor + '</td><td>' + V.Vendnm + '</td></tr>'
From dbo.Reclamacoes R
Inner Join dbo.PHC_CLIENTES_SAMSYS C On R.IdCliente = C.Id
Inner Join dbo.PHC_VENDEDORES_SAMSYS V on R.IdVendedor = V.IdVendedor
The error below is displayed
Converting data type error varchar to Numeric Msg 8114, Level 16, State 5, Line 1
Can someone help me?
Inform the full message so we can help you
– Sorack
Type convection error , according to a survey, see this "Convert" ...
– Motta
"Converting data type error varchar to Numeric" appears in the first line of the code.
– Miguel Meireles
@Sorack, Miguel sent me an e-mail( Img1, Img2 ) asking for help on your problem, by asking a few questions for it, I was able to help you via Hangouts, however, I thought it was nice to bring the case to Sopt in case someone has the same problem Msg 8114 in SQL Server this post serves as the solution. If you find it valid to reopen this question, I will post my answer that I used to solve his problem.
– RXSD
@Andréfilipe I think valid yes, I have even written an answer, but it is necessary that more people vote to reopen
– Sorack
Tranquil @Sorack, I made an issue of his question explaining your case better. I thank the feedback.
– RXSD
@Andréfilipe thanks for the edition. I am new to sql, and I just want to learn as soon as possible, but I am not good at explaining myself and I apologize for that.
– Miguel Meireles