﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Compact Edition  / Additional space inserted with column values / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 09:34:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Additional space inserted with column values</title><link>http://www.sqlservercentral.com/Forums/Topic1207383-323-1.aspx</link><description>If the column holds numeric data only the best way to deal with it is to use a numeric data type.Based on what I know the engine (even with Compact Edition although I'm not an expert) should trim any trailing spaces when doing a comparison.  Are you doing the comparison with SQL or in .NET once you've loaded the data?</description><pubDate>Mon, 09 Jan 2012 14:28:35 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: Additional space inserted with column values</title><link>http://www.sqlservercentral.com/Forums/Topic1207383-323-1.aspx</link><description>It may happened due to migration. but the reason is still weird. you may go with Trim() function as a immediate solution. and try to insert new records and check still the col. gets extra spaces.</description><pubDate>Mon, 09 Jan 2012 02:55:23 GMT</pubDate><dc:creator>MyKS</dc:creator></item><item><title>Additional space inserted with column values</title><link>http://www.sqlservercentral.com/Forums/Topic1207383-323-1.aspx</link><description>I have been using .net 2 with sql compact edition 3. When I changed to windows 7 with .net 3.5mdf created with column values (fields) inserted with additional spalces. Eg. Field Employee code will have number 101 but with additional space so that when I search for emp code where empcode =101 it will not return any values. Can someone help</description><pubDate>Thu, 17 Nov 2011 04:43:40 GMT</pubDate><dc:creator>Rajesh Menon-461740</dc:creator></item></channel></rss>