Question : Error:Arithmetic overflow error converting varchar to data type numeric.

Hello experts.
In my previous question :http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_26203717.html

i have a solution to get a mark (-) if there is no value like this:
<cfquery name="WADAdboartikel" datasource="#request.dsn#">
SELECT RTRIM(LTRIM(ISNULL(a.RZOLL_ID,'-')))RZOLL_ID
FROM dbo.artikel  a
</cfquery>

Now i needed to change the data type of the column to numeric with one scale and i get the error:
Error:Arithmetic overflow error converting varchar to data type numeric.
How can i solve this?

Answer : Error:Arithmetic overflow error converting varchar to data type numeric.

Thank you.  

This should work. The results are:  "- ,33"



1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<cfset sep2 = "">
<cfoutput query="WADAdboartikel">
	<cfset newRZOLL_ID = trim(RZOLL_ID)>
	<cfif not len(newRZOLL_ID)>
		<cfset newRZOLL_ID = "-">
	</cfif>
	<cfset mylist = newRZOLL_ID &","& arter_ID>
	<cfset arr = listToArray(mylist, ",", true)>
	<cfdump var="#arr#" label="Elements before the loop">
	<cfloop index="myfield2" array="#arr#">
	  <cfif len(trim(myfield2))>
         #sep2##ltrim(myfield2)#<cfset sep2=",">
	  </cfif>    
	</cfloop>
</cfoutput>
Random Solutions  
 
programming4us programming4us