 




<?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/"
		>
<channel>
	<title>Comments on: Change the size of a column and then reorganize the rows in SQL tables</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 19:50:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: hispi</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/#comment-79904</link>
		<dc:creator>hispi</dc:creator>
		<pubDate>Mon, 02 Aug 2010 09:39:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-79904</guid>
		<description><![CDATA[Finally, i could not make work this. I had to do it throught csharp inside of my application. 

Thank you anyway.]]></description>
		<content:encoded><![CDATA[<p>Finally, i could not make work this. I had to do it throught csharp inside of my application. </p>
<p>Thank you anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hispi</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/#comment-79782</link>
		<dc:creator>hispi</dc:creator>
		<pubDate>Thu, 29 Jul 2010 07:38:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-79782</guid>
		<description><![CDATA[Its Oracle 11g but we also work with sqlserver, but If you can help me with the Oracle one I may can fix the sqlserver.

I have googled for ALLOCATE(),this is what,from my eyes, would fix what I need but I havent find usefull information. My sqldeveloper regonize that instruction but I dont know how use it.  If you could teach me plz.

Thanks for answering]]></description>
		<content:encoded><![CDATA[<p>Its Oracle 11g but we also work with sqlserver, but If you can help me with the Oracle one I may can fix the sqlserver.</p>
<p>I have googled for ALLOCATE(),this is what,from my eyes, would fix what I need but I havent find usefull information. My sqldeveloper regonize that instruction but I dont know how use it.  If you could teach me plz.</p>
<p>Thanks for answering</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rickmartinez</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/#comment-79760</link>
		<dc:creator>rickmartinez</dc:creator>
		<pubDate>Wed, 28 Jul 2010 20:26:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-79760</guid>
		<description><![CDATA[is this sql server?]]></description>
		<content:encoded><![CDATA[<p>is this sql server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/change-the-size-of-a-column-and-then-reorganize-the-rows/#comment-79721</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 28 Jul 2010 01:26:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-79721</guid>
		<description><![CDATA[What database (DBMS) are you using?

For the actual change, I might run something like:&lt;pre&gt;
ALTER TABLE PHOTO_DETAIL ALTER COLUMN PHOTO_LINE
   SET DATA TYPE VARCHAR ( 1024 BYTE)&lt;/pre&gt;
Depending on the number of rows, I might add an ALLOCATE() clause that fits the distribution of data.

I might also run:&lt;pre&gt;
UPDATE PHOTO_DETAIL SET PHOTO_LINE = trim(PHOTO_LINE)&lt;/pre&gt;
...just to get variable length values into all existing rows.

For your INSERT, it&#039;s unclear whether DE.NUM_LINEA is CHAR or VARCHAR or what its values might look like. I thought maybe you could do TRIM(DE.NUM_LINEA) rather than the direct value, but it could depend on the data.

Tom]]></description>
		<content:encoded><![CDATA[<p>What database (DBMS) are you using?</p>
<p>For the actual change, I might run something like:
<pre>
ALTER TABLE PHOTO_DETAIL ALTER COLUMN PHOTO_LINE
   SET DATA TYPE VARCHAR ( 1024 BYTE)</pre>
<p>Depending on the number of rows, I might add an ALLOCATE() clause that fits the distribution of data.</p>
<p>I might also run:
<pre>
UPDATE PHOTO_DETAIL SET PHOTO_LINE = trim(PHOTO_LINE)</pre>
<p>&#8230;just to get variable length values into all existing rows.</p>
<p>For your INSERT, it&#8217;s unclear whether DE.NUM_LINEA is CHAR or VARCHAR or what its values might look like. I thought maybe you could do TRIM(DE.NUM_LINEA) rather than the direct value, but it could depend on the data.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.042 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 23:07:11 -->