<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Difference and Explanation among DECIMAL, FLOAT and NUMERIC</title>
	<atom:link href="http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 21:45:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Pranshul Gupta</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-503917</link>
		<dc:creator><![CDATA[Pranshul Gupta]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 13:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-503917</guid>
		<description><![CDATA[Hi Rumtata,
He wrote correct. why do you think that it should be DECIMAL(4,2)? He wrote DECIMAL(2,4) &amp; that is correct. Because the corresponding value shown for that is 11.2222. Here precision is of 2 digits and scale is of 4.]]></description>
		<content:encoded><![CDATA[<p>Hi Rumtata,<br />
He wrote correct. why do you think that it should be DECIMAL(4,2)? He wrote DECIMAL(2,4) &amp; that is correct. Because the corresponding value shown for that is 11.2222. Here precision is of 2 digits and scale is of 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-453227</link>
		<dc:creator><![CDATA[Rebecca]]></dc:creator>
		<pubDate>Wed, 10 Apr 2013 16:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-453227</guid>
		<description><![CDATA[What do you mean by data-type reane?]]></description>
		<content:encoded><![CDATA[<p>What do you mean by data-type reane?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CoolArian</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-425064</link>
		<dc:creator><![CDATA[CoolArian]]></dc:creator>
		<pubDate>Thu, 21 Feb 2013 09:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-425064</guid>
		<description><![CDATA[Getting the following error, please advice. ValidStartDates is a table containing datetime objects in 2 columns i.e StartDate and EndDate
i.e.
           StartDate                                EndDate
8/12/2009 12:00:00.000 AM  &#124; 8/19/2009 12:00:00.000 AM
.
.
.
.
12/12/2012 12:00:00.000 AM &#124; 12/19/2012 12:00:00.000 AM

 [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting expression to data type float.(22003,8115)

drop table Factorials
go


with Dates(max_samples) as (SELECT count(*) from ValidStartDates),
	t(x, factorial) as (
select 0, cast(1.0 as float)
union all
select x+1, factorial*(x+1)
from t, Dates where x &lt;= max_samples)
select isnull(x, 0.0) as x, factorial
into Factorials
from t
option (maxrecursion 300)
go]]></description>
		<content:encoded><![CDATA[<p>Getting the following error, please advice. ValidStartDates is a table containing datetime objects in 2 columns i.e StartDate and EndDate<br />
i.e.<br />
           StartDate                                EndDate<br />
8/12/2009 12:00:00.000 AM  | 8/19/2009 12:00:00.000 AM<br />
.<br />
.<br />
.<br />
.<br />
12/12/2012 12:00:00.000 AM | 12/19/2012 12:00:00.000 AM</p>
<p> [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting expression to data type float.(22003,8115)</p>
<p>drop table Factorials<br />
go</p>
<p>with Dates(max_samples) as (SELECT count(*) from ValidStartDates),<br />
	t(x, factorial) as (<br />
select 0, cast(1.0 as float)<br />
union all<br />
select x+1, factorial*(x+1)<br />
from t, Dates where x &lt;= max_samples)<br />
select isnull(x, 0.0) as x, factorial<br />
into Factorials<br />
from t<br />
option (maxrecursion 300)<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shubham</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-418659</link>
		<dc:creator><![CDATA[shubham]]></dc:creator>
		<pubDate>Wed, 06 Feb 2013 16:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-418659</guid>
		<description><![CDATA[hello sir,
What datatype is used?
float, decimal or numeric for a financial transaction...
thanks]]></description>
		<content:encoded><![CDATA[<p>hello sir,<br />
What datatype is used?<br />
float, decimal or numeric for a financial transaction&#8230;<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya Suley</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-403525</link>
		<dc:creator><![CDATA[Aditya Suley]]></dc:creator>
		<pubDate>Fri, 04 Jan 2013 09:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-403525</guid>
		<description><![CDATA[Hi,
I need an urgent help on conversion.
I am doing BCP in a value 1,698,920.971 in a column of float datatype having length 8 and Precession 53 and Scale Null.

But when i see the imported value in Database i see it like 1,698,920.97 but it should look like 1,698,920.971. Any Idea???????]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I need an urgent help on conversion.<br />
I am doing BCP in a value 1,698,920.971 in a column of float datatype having length 8 and Precession 53 and Scale Null.</p>
<p>But when i see the imported value in Database i see it like 1,698,920.97 but it should look like 1,698,920.971. Any Idea???????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-401741</link>
		<dc:creator><![CDATA[Kumar]]></dc:creator>
		<pubDate>Mon, 31 Dec 2012 07:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-401741</guid>
		<description><![CDATA[it worked..tnx]]></description>
		<content:encoded><![CDATA[<p>it worked..tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramees</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-374916</link>
		<dc:creator><![CDATA[Ramees]]></dc:creator>
		<pubDate>Fri, 16 Nov 2012 11:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-374916</guid>
		<description><![CDATA[SELECT CONVERT(INT,ROUND(10.56,0))]]></description>
		<content:encoded><![CDATA[<p>SELECT CONVERT(INT,ROUND(10.56,0))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SonDurak</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-371258</link>
		<dc:creator><![CDATA[SonDurak]]></dc:creator>
		<pubDate>Thu, 08 Nov 2012 12:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-371258</guid>
		<description><![CDATA[microsoft says it must be follow the rule that:
0 &lt;= s &lt;= p &lt;= 38]]></description>
		<content:encoded><![CDATA[<p>microsoft says it must be follow the rule that:<br />
0 &lt;= s &lt;= p &lt;= 38</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Knight</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-353957</link>
		<dc:creator><![CDATA[John Knight]]></dc:creator>
		<pubDate>Fri, 28 Sep 2012 14:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-353957</guid>
		<description><![CDATA[Hi,

Why can&#039;t a variable be used to create the scale when using cast as numeric?:

declare @Scale as integer

set @Scale = 2
select cast(234.56789 as numeric(5, @Scale)

This produces an error.

Yet if using Round the variable works:

declare @Scale as integer
set @Scale = 2
select ROUND(234.56789,@Scale)

Any ideas? Our decimal precision varies according to a value elsewhere in the database.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Why can&#8217;t a variable be used to create the scale when using cast as numeric?:</p>
<p>declare @Scale as integer</p>
<p>set @Scale = 2<br />
select cast(234.56789 as numeric(5, @Scale)</p>
<p>This produces an error.</p>
<p>Yet if using Round the variable works:</p>
<p>declare @Scale as integer<br />
set @Scale = 2<br />
select ROUND(234.56789,@Scale)</p>
<p>Any ideas? Our decimal precision varies according to a value elsewhere in the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parvej Solkar</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-351250</link>
		<dc:creator><![CDATA[Parvej Solkar]]></dc:creator>
		<pubDate>Thu, 20 Sep 2012 09:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-351250</guid>
		<description><![CDATA[Converting from decimal or numeric to float or real can cause some loss of precision

Why ????]]></description>
		<content:encoded><![CDATA[<p>Converting from decimal or numeric to float or real can cause some loss of precision</p>
<p>Why ????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SubhaN</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-341695</link>
		<dc:creator><![CDATA[SubhaN]]></dc:creator>
		<pubDate>Fri, 07 Sep 2012 06:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-341695</guid>
		<description><![CDATA[Decimal ftvalue;     
   double dblRate = Math.Round(Convert.ToDouble(ftvalue), 6); 

Eg: ftvalue = 123.123456789

dblrate = 123.123456]]></description>
		<content:encoded><![CDATA[<p>Decimal ftvalue;<br />
   double dblRate = Math.Round(Convert.ToDouble(ftvalue), 6); </p>
<p>Eg: ftvalue = 123.123456789</p>
<p>dblrate = 123.123456</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL12</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-338843</link>
		<dc:creator><![CDATA[SQL12]]></dc:creator>
		<pubDate>Wed, 29 Aug 2012 16:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-338843</guid>
		<description><![CDATA[* 100 and then round the reasult will give you right number]]></description>
		<content:encoded><![CDATA[<p>* 100 and then round the reasult will give you right number</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ny_giants_12</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-314368</link>
		<dc:creator><![CDATA[ny_giants_12]]></dc:creator>
		<pubDate>Tue, 17 Jul 2012 04:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-314368</guid>
		<description><![CDATA[Hey how can I convert 0.0934 to 9.34 % and eventually round it off to 9 % .
Can anyone guide me please ?]]></description>
		<content:encoded><![CDATA[<p>Hey how can I convert 0.0934 to 9.34 % and eventually round it off to 9 % .<br />
Can anyone guide me please ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-302745</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Jun 2012 09:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-302745</guid>
		<description><![CDATA[You can create a column with decimal datatype]]></description>
		<content:encoded><![CDATA[<p>You can create a column with decimal datatype</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin A</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-300263</link>
		<dc:creator><![CDATA[Ashwin A]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 06:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-300263</guid>
		<description><![CDATA[I want to create a table with a variable accepting decimal numbers that has the decimal part like ( .53 or .23689) . How will i do this???
Thanks  in advance :)]]></description>
		<content:encoded><![CDATA[<p>I want to create a table with a variable accepting decimal numbers that has the decimal part like ( .53 or .23689) . How will i do this???<br />
Thanks  in advance :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jyoshna</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287579</link>
		<dc:creator><![CDATA[Jyoshna]]></dc:creator>
		<pubDate>Wed, 23 May 2012 11:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287579</guid>
		<description><![CDATA[Actually its a variable number, according to our requirement we will store data accordingly. in that particular decimal value i have to find last number and have to add +1 to that?]]></description>
		<content:encoded><![CDATA[<p>Actually its a variable number, according to our requirement we will store data accordingly. in that particular decimal value i have to find last number and have to add +1 to that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287557</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 10:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287557</guid>
		<description><![CDATA[What does this value represent?]]></description>
		<content:encoded><![CDATA[<p>What does this value represent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287506</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 09:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287506</guid>
		<description><![CDATA[Why do you want tto store numbers this way? It is difficult for doing arithmetic calculations. You can use this technique
http://beyondrelational.com/modules/2/blogs/70/posts/14825/compare-numbers-stored-as-characters-seperated-by-space.aspx]]></description>
		<content:encoded><![CDATA[<p>Why do you want tto store numbers this way? It is difficult for doing arithmetic calculations. You can use this technique<br />
<a href="http://beyondrelational.com/modules/2/blogs/70/posts/14825/compare-numbers-stored-as-characters-seperated-by-space.aspx" rel="nofollow">http://beyondrelational.com/modules/2/blogs/70/posts/14825/compare-numbers-stored-as-characters-seperated-by-space.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jyoshna</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287042</link>
		<dc:creator><![CDATA[Jyoshna]]></dc:creator>
		<pubDate>Tue, 22 May 2012 05:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-287042</guid>
		<description><![CDATA[I have a value as 1533.1.1 i have to add +1 for this?
and aslo 1533.1.1.1 i have to add +1 
Result will be like 1533.1.2,1533.1.1.2.
How to write a query in sqlserver]]></description>
		<content:encoded><![CDATA[<p>I have a value as 1533.1.1 i have to add +1 for this?<br />
and aslo 1533.1.1.1 i have to add +1<br />
Result will be like 1533.1.2,1533.1.1.2.<br />
How to write a query in sqlserver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MS</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-284816</link>
		<dc:creator><![CDATA[MS]]></dc:creator>
		<pubDate>Tue, 15 May 2012 15:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-284816</guid>
		<description><![CDATA[Need help in converting float &quot;3538135420.163&quot; to datetime. PLEASE HELP!]]></description>
		<content:encoded><![CDATA[<p>Need help in converting float &#8220;3538135420.163&#8243; to datetime. PLEASE HELP!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhimanyu</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-275708</link>
		<dc:creator><![CDATA[Abhimanyu]]></dc:creator>
		<pubDate>Fri, 13 Apr 2012 10:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-275708</guid>
		<description><![CDATA[If we want field of the table use sp_help   in sql server query window.

if you want any procedure or want to see what is in particular store procedure than short cut for this is  sp_helptext  ]]></description>
		<content:encoded><![CDATA[<p>If we want field of the table use sp_help   in sql server query window.</p>
<p>if you want any procedure or want to see what is in particular store procedure than short cut for this is  sp_helptext  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel Damisa</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-261345</link>
		<dc:creator><![CDATA[Emmanuel Damisa]]></dc:creator>
		<pubDate>Sat, 10 Mar 2012 07:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-261345</guid>
		<description><![CDATA[I have a question. I am new to .net platform. I am designing a database with sql 2008 and vb 2010. I want to create staff numbers that will be 5 digits and divisible by 7. I would have loved to make this primary key and auto increment. how do I do this? PLS HELP ME.]]></description>
		<content:encoded><![CDATA[<p>I have a question. I am new to .net platform. I am designing a database with sql 2008 and vb 2010. I want to create staff numbers that will be 5 digits and divisible by 7. I would have loved to make this primary key and auto increment. how do I do this? PLS HELP ME.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Duchesne</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-242221</link>
		<dc:creator><![CDATA[Bryan Duchesne]]></dc:creator>
		<pubDate>Sun, 22 Jan 2012 13:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-242221</guid>
		<description><![CDATA[I have a SQL procedure using OPENROWSET to import MS Foxpro data into a SQL table.   When I run the procedure, I am getting errors on all my numeric field in the Foxpro table.    What appears to be happening is if the DBF integer field is defined as 6,0 and contains 6 digits, it errors out.  If less than 6 digits, it is fine.   I thought I read somewhere that this is caused by a difference in the way that SQL treats numeric data over the way Foxpro does.  Aside from physically changing the data definition in Foxpro (which I cannot do as the data I am importing is from a 3rd party program), is there any way to fix this problem?]]></description>
		<content:encoded><![CDATA[<p>I have a SQL procedure using OPENROWSET to import MS Foxpro data into a SQL table.   When I run the procedure, I am getting errors on all my numeric field in the Foxpro table.    What appears to be happening is if the DBF integer field is defined as 6,0 and contains 6 digits, it errors out.  If less than 6 digits, it is fine.   I thought I read somewhere that this is caused by a difference in the way that SQL treats numeric data over the way Foxpro does.  Aside from physically changing the data definition in Foxpro (which I cannot do as the data I am importing is from a 3rd party program), is there any way to fix this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-231912</link>
		<dc:creator><![CDATA[George]]></dc:creator>
		<pubDate>Thu, 05 Jan 2012 16:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-231912</guid>
		<description><![CDATA[Did you ever receive a reply on this?  Your problem is with your precision.  there are five digits of precision.  When you first divide by 1,000, you are moving the decimal point three positions to the left.  Then, working back five spots from this new position, you only have two of your original decimal points left for precision.  This would work correctly if you had decimal(38,8).

12345678910111213.14151 / 1000 ==&gt; 12345678910111.213141
when you multiply that by your 1000 again, the decimal moves those three spots back to the right.]]></description>
		<content:encoded><![CDATA[<p>Did you ever receive a reply on this?  Your problem is with your precision.  there are five digits of precision.  When you first divide by 1,000, you are moving the decimal point three positions to the left.  Then, working back five spots from this new position, you only have two of your original decimal points left for precision.  This would work correctly if you had decimal(38,8).</p>
<p>12345678910111213.14151 / 1000 ==&gt; 12345678910111.213141<br />
when you multiply that by your 1000 again, the decimal moves those three spots back to the right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khan</title>
		<link>http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-231207</link>
		<dc:creator><![CDATA[Khan]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 11:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/29/sql-server-difference-and-explanation-among-decimal-float-and-numeric/#comment-231207</guid>
		<description><![CDATA[Hi madhivanan,

the below scripts works well.

select distinct substring(expiry,1,charindex(&#039;,&#039;,expiry)-1),substring(expiry,charindex(&#039;,&#039;,expiry),len(expiry)) 
from Rec_Dtl where grn_number =27964 and m_code =&#039;M605&#039;

and results.

                                                              
------------------------------ ------------------------------ 
#3453453                       ,$21-12-2014
#S4345                           ,$4YRS

but i don&#039;t want comma infront of 2nd column, like ,$21-12-2014  i need only $21-12-2014    without comma

Thanks a lot for your support. May i have your email id please.

Regards,]]></description>
		<content:encoded><![CDATA[<p>Hi madhivanan,</p>
<p>the below scripts works well.</p>
<p>select distinct substring(expiry,1,charindex(&#8216;,&#8217;,expiry)-1),substring(expiry,charindex(&#8216;,&#8217;,expiry),len(expiry))<br />
from Rec_Dtl where grn_number =27964 and m_code =&#8217;M605&#8242;</p>
<p>and results.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
#3453453                       ,$21-12-2014<br />
#S4345                           ,$4YRS</p>
<p>but i don&#8217;t want comma infront of 2nd column, like ,$21-12-2014  i need only $21-12-2014    without comma</p>
<p>Thanks a lot for your support. May i have your email id please.</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
