MS SQL Explicit conversion from data type ntext to float is not allowed.
When running some conversion in SQL like
cast(dbo.tablename.ntextfield as float)
You get the 'Explicit conversion from data type ntext to float is not allowed' error
To resolve this problem use something like
cast(cast(dbo.tablename.mtextfield as nvarchar(10)) as float)
cast(dbo.tablename.ntextfield as float)
You get the 'Explicit conversion from data type ntext to float is not allowed' error
To resolve this problem use something like
cast(cast(dbo.tablename.mtextfield as nvarchar(10)) as float)
Comments