<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The World Of Gavin &#187; sqlstate</title>
	<atom:link href="http://www.gavinwillingham.com/tag/sqlstate/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gavinwillingham.com</link>
	<description>My opinions on things I have opinions on</description>
	<lastBuildDate>Fri, 28 Jan 2011 17:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>DB2 Error Codes</title>
		<link>http://www.gavinwillingham.com/db2-error-codes.html</link>
		<comments>http://www.gavinwillingham.com/db2-error-codes.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 13:19:55 +0000</pubDate>
		<dc:creator>gavin</dc:creator>
				<category><![CDATA[Content]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[db2javit]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[sqlcode]]></category>
		<category><![CDATA[sqlstate]]></category>

		<guid isPermaLink="false">http://www.gavinwillingham.com/?p=91</guid>
		<description><![CDATA[Errors when running Control Centre If you encounter an error dialog stating db2javit : rc - 9505 when starting the control centre, it&#8217;s possible you&#8217;re running Windows Vista/Windows 7. If so, this might be a permissions problem. Run the control centre as administrator, by right-clicking the icon and selecting Run as administrator SQL errors SQLCODE [...]]]></description>
			<content:encoded><![CDATA[<h2>Errors when running Control Centre</h2>
<p>If you encounter an error dialog stating <code>db2javit : rc - 9505</code> when starting the control centre, it&#8217;s possible you&#8217;re running Windows Vista/Windows 7. If so, this might be a permissions problem.</p>
<p>Run the control centre as administrator, by right-clicking the icon and selecting <code>Run as administrator</code></p>
<h2>SQL errors</h2>
<table border="0">
<tbody>
<tr>
<th>SQLCODE</th>
<th>SQLSTATE</th>
<th>Cause</th>
</tr>
<tr>
<td>-7</td>
<td>42601</td>
<td>Special characters, e.g. <code>\n</code> or <code>&amp;</code> in SQL</td>
</tr>
<tr>
<td>-180</td>
<td>22007</td>
<td>Date/Time/Timestamp in invalid format</td>
</tr>
<tr>
<td>-104</td>
<td>42601</td>
<td>I had this when a field was missing a value, e.g <code>field=</code></td>
</tr>
<tr>
<td>-204</td>
<td>42704</td>
<td>Invalid table name</td>
</tr>
<tr>
<td>-206</td>
<td>42703</td>
<td>Invalid field name</td>
</tr>
<tr>
<td>-408</td>
<td>42821</td>
<td>Bad use of quotes in <code>field=</code>. E.g <code>field='1'</code> for integer (example of <strong>incorrect</strong> style.</td>
</tr>
<tr>
<td>-530</td>
<td>23503</td>
<td>Broken specified constraint. The constraint will probably have an entirely unrecognisable name, such as <code>DB2ADMIN.VISIT.CC1253444571125</code>. I got this error when I had a foreign key, and tried to insert a row with a value that wasn&#8217;t in the foreign table.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.gavinwillingham.com/db2-error-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

