We help IT Professionals succeed at work.
Get Started

sql Invalid precision value

Last Modified: 2012-05-09
We recently (days) migrated from dev servers to new production servers.  Everything is supposed to be duplicated.  I am getting errors that I was not getting on the dev servers.  on the following query I am getting "invalid precision value";

<cfquery name="QGetTMData" datasource="TelemateTulsa" result="query">
      INNER JOIN History ON CallData.ID_VirtualResource = History.ID_CommResource AND CallData.SessionDateTime BETWEEN History.StartDate AND History.EndDate
      INNER JOIN CommResource DISA ON CallData.ID_VirtualResource = DISA.ID_CommResource
      INNER JOIN CommResource EXTN ON CallData.ID_CommResource = EXTN.ID_CommResource
      INNER JOIN Owner ON History.ID_Owner = Owner.ID_Owner
      INNER JOIN Department ON History.ID_Department = Department.ID_Department
      INNER JOIN Division ON History.ID_Division = Division.ID_Division
      INNER JOIN Company ON History.ID_Company = Company.ID_Company
      WHERE  SessionDateTime >= <cfqueryparam value="#beginDay#" cfsqltype="cf_sql_timestamp">
     AND SessionDateTime < <cfqueryparam value="#DateAdd("d", 1, beginDay)#" cfsqltype="cf_sql_timestamp">

As usual, SQL error reporting is too general to pinpoint the actual cause, but the point is that this was not an issue prior to migration.  What should I be looking for?
Watch Question
Top Expert 2011
This problem has been solved!
Unlock 2 Answers and 18 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE