Welcome to Clarion Community Sign in | Join | Faq

Databases and Drivers

Started by Keverson at 08-14-2008 4:30 AM. Topic has 1 replies.

Print Search
Sort Posts:    
   08-14-2008, 4:30 AM
Keverson is not online. Last active: 11/7/2008 4:56:24 PM Keverson

Top 150 Posts
Joined on 03-26-2008
Posts 4
SQL Server error - Invalid Cast Specification (22005)
Reply Quote
Hi,

I am having a problem with a Clarion program that has SQL server
database connectivity. Within the dictionary I have a Personnel table, which has a unique identifier 'Reference', which is set to CSTRING(256).

In the SQL Server database, this displays as a VARCHAR(255) which is
what I expect.

However, when I try to update a record within the program it is throwing an 'Invalid Cast Specification' error.

I have checked the sql trace log and it displays the following: "CHAR(NTS) as INTEGER" - this is relating to the Reference field. Somehow it's recognising the reference field as an integer, which it clearly isn't.

Is there any way to fix this error, I have tried dropping the table and recreating it, but I'm still getting the same problem. This problem doesn't occur on any other tables which are set up similar to the Personnel table.

Any help would be appreciated,

Kevin
   Report 
   09-22-2008, 6:28 AM
Keverson is not online. Last active: 11/7/2008 4:56:24 PM Keverson

Top 150 Posts
Joined on 03-26-2008
Posts 4
Re: SQL Server error - Invalid Cast Specification (22005)
Reply Quote
Fixed by adding a new renamed field and deleting the reference field.
   Report 
Clarion Communi... » Clarion » Databases and D... » SQL Server error - Invalid Cast Specification (22005)

Powered by Community Server, by Telligent Systems