House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion 9 running on MS-SQL 2008 breaks query

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Wally Randall
07/18/2012 09:53 AM

This simple query works fine on MS 2005 database but fails on an MS 2008 server: 1. First test: select suite from house_final_drawings where suite in (100,200) Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Conversion failed when converting the nvarchar value 'dddd' to data type int. 2. Second Test: If single quotes are put around the 'IN' list items the query works on SQL 2008. select suite from house_final_drawings where suite in ('100','200') Any ideas why this behavior change in SQL 2008? The querys both work when run directly in SQL Studio.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Larry Lyons
07/18/2012 10:45 AM

You may want to check the data type, when whomever updated the database may have defaulted the suite column to varchar or other text. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference