Solved

incompatible type in OLEDB

Posted on 2002-03-18
2
188 Views
Last Modified: 2013-12-24
Hi all,

   My problem is really weird. Actually, my Client_id is exactly 174795 on my cfm form. So i don't understant why OLEDB converts it to 174795.000000 while building the insert query ? please get me a solution ...thanx a lot guys

here an error example :

Data Source = "myOLEDB"

SQL = "INSERT INTO Demande ( `CLIENT_ID` , `DATE_DEMANDE` , `NCIC` , `Observation_Demande` , `TEMPS_ATTENTE` , `TYPECAS_ID` ) VALUES ( 174795.000000,'{ts ''2002-03-18 11:12:00''}',1,'ytjyhj',0.000000,15.000000)"

0
Comment
Question by:Danny_H
2 Comments
 
LVL 11

Expert Comment

by:jimmy282
Comment Utility
What is the datatype of the field in DB?
It should be Number(MsAccess) or Int(SQlServer)
You must have Double or Real as of now.

Jimmy
0
 

Accepted Solution

by:
manonng earned 50 total points
Comment Utility
hi

You can use #val(client_id)# to cast the client_id as an integer.

manon
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now