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)

Comments

Popular posts from this blog

System.Net.Http dll version problems

SharePoint Survey Back Button

How to set up AD FS for a development machine