<?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>creacog &#187; MS Access</title>
	<atom:link href="http://blog.creacog.co.uk/category/microsoft/ms-access/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 16:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ms access more syntax error issues that aren&#8217;t</title>
		<link>http://blog.creacog.co.uk/2007/07/20/ms-access-more-syntax-error-issues-that-arent/</link>
		<comments>http://blog.creacog.co.uk/2007/07/20/ms-access-more-syntax-error-issues-that-arent/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 13:50:05 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[MS Access]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/07/20/ms-access-more-syntax-error-issues-that-arent/</guid>
		<description><![CDATA[Continuing from yesterday&#8217;s strangeness&#8230; Yesterday, my hosting provider found that the mdb file&#8217;s &#8220;write and modify permissions were missing&#8221;. Very odd! but since that was fixed my ASP scripts could now INSERT. Today I have almost a repeat of the same symptoms, except this time I can still INSERT but cannot UPDATE. The error given [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing from yesterday&#8217;s strangeness&#8230;</p>
<p>Yesterday, my hosting provider found that the mdb file&#8217;s &#8220;write and modify permissions were missing&#8221;. Very odd! but since that was fixed my ASP scripts could now INSERT.</p>
<p>Today I have almost a repeat of the same symptoms, except this time I can still INSERT but cannot UPDATE. The error given is the same as yesterday i.e. a syntax error in the sql. The sql works fine when executed within the access application. The error number was the same as yesterday&#8230;</p>
<blockquote><p> -2147217900, Syntax error in UPDATE statement</p></blockquote>
<p>I followed the advice <a href="http://forums.databasejournal.com/archive/index.php/t-30699.html" title="Database Journal Foums">on this forum entry</a> to switch the connection string from an OLE DB connection string to a basic Microsoft Access Driver string. i.e.</p>
<blockquote><p>&#8220;Driver={Microsoft Access Driver (*.mdb)};<br />
DBQ=D:\wwwroot\domain.com\database\database.mdb&#8221;</p></blockquote>
<p>And this fixed it! I have a load of old sites out there still working happily with OLE DB connection strings to access databases. I&#8217;m not sure why this one has been so difficult.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/07/20/ms-access-more-syntax-error-issues-that-arent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>when is a syntax error not a syntax error</title>
		<link>http://blog.creacog.co.uk/2007/07/19/when-is-a-syntax-error-not-a-syntax-error/</link>
		<comments>http://blog.creacog.co.uk/2007/07/19/when-is-a-syntax-error-not-a-syntax-error/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 16:41:38 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[MS Access]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/07/19/when-is-a-syntax-error-not-a-syntax-error/</guid>
		<description><![CDATA[Answer: When you are doing an INSERT INTO on an Access database which is read-only. I&#8217;ve just been doing a bit of classic ASP with MS Access back-end database. I traditionally use the RecordSet object and AddNew to insert records. But thought I&#8217;d be good on this occasion and use Jet SQL and the Command [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Answer: </strong>When you are doing an INSERT INTO on an Access database which is read-only.</p>
<p>I&#8217;ve just been doing a bit of classic ASP with MS Access back-end database. I traditionally use the RecordSet object and AddNew to insert records. But thought I&#8217;d be good on this occasion and use Jet SQL and the Command Object. Unfortuantely the script broke with error:</p>
<blockquote><p> Microsoft JET Database Engine error &#8217;80040e14&#8242;<br />
Syntax error in INSERT INTO statement.</p></blockquote>
<p>80040e14 is a fairly generic error code, with lots of possible causes. Just give it a google!</p>
<p>I checked and double-checked my SQL syntax, which looked fine. Even entering it directly into the Access application showed no problem. I then wrapped the code with the On Error Next, and an error trap which reported the following variation:</p>
<blockquote><p>Error: -2147217900 Syntax error in INSERT INTO statement.</p></blockquote>
<p>Same description, but googling the error number revealed just a few results, <a href="http://www.programmingtalk.com/showthread.php?t=2241" title="Programming talk">this amongst them suggesting a permissions problem</a>. Which I didn&#8217;t quite believe at first, why would the hosting provider cause the mdb file to be read-only? It is in a folder outside the webroot, if I ask them for a SQLServer account, I&#8217;m sure it will allow me to insert records!</p>
<p>Replacing my code with my more traditional RecordSet object, AddNew and Update commands revealed and confirmed the error&#8230;</p>
<blockquote><p>Microsoft JET Database Engine error &#8217;80040e09&#8242;<br />
Cannot update. Database or object is read-only.</p></blockquote>
<p>If I&#8217;d stuck with my old way of doing things I&#8217;d have saved a whole load of time spent looking in the wrong places.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/07/19/when-is-a-syntax-error-not-a-syntax-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

