jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I am in the process of inserting data from an Access table into an SQL table. I have imported the relevant tables into Access. It has converted certain fields into nvarchar. I need to convert these fields into real datatype.
I wrote the following SQL to accomplish this:
UPDATE ADOPT1
SET [Chainage] = CONVERT(real, [Chainage])
However, upon execution I get the following error:
Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type nvarchar to real.
Is there anyway of making this error message more useful, such as telling me exactly which value it cannot convert, so I can address the problem?
Is there an alternative?? James Goodman
I wrote the following SQL to accomplish this:
UPDATE ADOPT1
SET [Chainage] = CONVERT(real, [Chainage])
However, upon execution I get the following error:
Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type nvarchar to real.
Is there anyway of making this error message more useful, such as telling me exactly which value it cannot convert, so I can address the problem?
Is there an alternative?? James Goodman