Invalid Cast Specification (22005) error

This is a discussion on Invalid Cast Specification (22005) error within the Clarion forums in Programming Languages category; 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 ...

Go Back   Application Development Forum > Programming Languages > Clarion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-14-2008, 07:22 AM
Kevin
Guest
 
Default Invalid Cast Specification (22005) error

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.

Any help would be appreciated,

Kevin
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:41 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.