Skip to content
Advertisement

CONVERT issue in sqlserver with Msg 529 error

This statement is giving me a error

VALUE column Datatype is TEXT in the RESULTS table.

How can i overcome the above problem. please help !

Advertisement

Answer

You can’t convert from text to datetime

You must apply two convert operations.

The first: From text to varchar

The second: From varchar to datetime

So your query will become:

Plus: text datatype is deprecated for new versions of Sql Server, so I strongly advice you to change (if you can) your datatype text into varchar(max).

The DDL code to apply your change is:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement