<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forum — Overflow errors on dates]]></title>
		<link>https://forums.nbn.org.uk/viewtopic.php?id=751</link>
		<atom:link href="https://forums.nbn.org.uk/extern.php?action=feed&amp;tid=751&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Overflow errors on dates.]]></description>
		<lastBuildDate>Mon, 29 Sep 2008 20:45:46 +0000</lastBuildDate>
		<generator>PunBB 1.4.6</generator>
		<item>
			<title><![CDATA[Re: Overflow errors on dates]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=3371#p3371</link>
			<description><![CDATA[<p>I am not sure what type of date processing you are trying to do (I can&#039;t find the CountSurveyRecords report) but if your system contains dates prior to 1753 you will need to accommodate them. I believe the user defined functions developed for JNCC by Mike Weideli do, e.g. dbo.LCReturnVagueDateShort(VagueDateStart, VagueDateEnd, VagueDateType) - see his documentation for more details http://forums.nbn.org.uk/viewtopic.php?pid=3113#p3113. There was a useful write up on dates, including the 1753 issue, on the Wiki so I hope we will have access to that again soon.</p>]]></description>
			<author><![CDATA[null@example.com (sallyrankin)]]></author>
			<pubDate>Mon, 29 Sep 2008 20:45:46 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=3371#p3371</guid>
		</item>
		<item>
			<title><![CDATA[Re: Overflow errors on dates]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=3368#p3368</link>
			<description><![CDATA[<p>Hi Janet,</p><p>There is an issue in the reports in that the dates they&#039;re reporting are limited in value by SQL standard behaviour to between 1753-01-01 and 9999-12-31.&nbsp; &nbsp;Rather than changing all your data I&#039;d suggest the reports be modified to cope properly with historic dates.&nbsp; I&#039;ll recommend this.&nbsp; In the meantime I&#039;ve emailed you a version of the CountSurveyRecords report which copes with all dates plus it also returns organisations and not just individuals.&nbsp; The ProblemDeterminationDates would require a bit more tweaking to get it working for older dates.</p><p>Thanks,<br />Simon</p>]]></description>
			<author><![CDATA[null@example.com (SimonWood)]]></author>
			<pubDate>Mon, 29 Sep 2008 07:05:15 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=3368#p3368</guid>
		</item>
		<item>
			<title><![CDATA[Re: Overflow errors on dates]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=3367#p3367</link>
			<description><![CDATA[<p>Hi Simon,</p><p>Yes, quite right. All our surveys were set to allow records from 1650, and changing them to 1700 didn&#039;t help. The Count of Records made within Date Range report doesn&#039;t allow dates before 14/9/1752 so I tried changing all the surveys to allow from 1760. Now the CountSurveyRecords report runs, so that&#039;s progress, but it only includes surveys which are run by an individual and not those run by an organisation (such as the British Lichen Society or a Local Records Centre) so it&#039;s still not much use!</p><p>The other two reports still fail because we have a lot of records in our database with date ranges starting either 1700- or 1735- . Is 1752 a fundemental limit? If so I can make a global change to our database, but as there would be more than 100k taxon occurences affected, together with their events, samples and determinations, I would first like to be sure that there is no other way. A limit of 1752 would also give us on-going problems in handling the oldest lichen records, as there were several active recorders before that date.</p><p>Janet</p>]]></description>
			<author><![CDATA[null@example.com (Janet Simkin)]]></author>
			<pubDate>Sun, 28 Sep 2008 09:08:22 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=3367#p3367</guid>
		</item>
		<item>
			<title><![CDATA[Re: Overflow errors on dates]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=3365#p3365</link>
			<description><![CDATA[<p>Hi Janet,</p><p>The CountSurveyRecords report appears to have an issue if you have any surveys which have a &#039;Records Allowed From&#039; date from pre 1700 ish.<br />There&#039;s a similar issue with the ProblemDeterminationDates report but regarding determination &amp; sample dates.&nbsp; Does this sound right based on your data?</p><p>Thanks,</p>]]></description>
			<author><![CDATA[null@example.com (SimonWood)]]></author>
			<pubDate>Fri, 26 Sep 2008 14:57:28 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=3365#p3365</guid>
		</item>
		<item>
			<title><![CDATA[Re: Overflow errors on dates]]></title>
			<link>https://forums.nbn.org.uk/viewtopic.php?pid=3314#p3314</link>
			<description><![CDATA[<p>I&#039;m getting overflow errors in three of the new XML reports, all from the Statistics menu and all associated with dates. </p><p>Number of records in a survey (CountSurveyRecords) and Determination dates before sample date (ProblemDeterminationDates) both give the error message &quot;Adding a value to a &#039;datetime&#039; column caused overflow&quot;. </p><p>Count of records made within date range V07-12 gives the message &quot;arithmetic overflow error converting expression to data type &#039;datetime&#039;&quot;.</p><p>These reports are working for other people so could the problem be that I have some duff dates in my database somewhere? If so, any ideas on&nbsp; what I should be looking for?</p><p>Janet</p>]]></description>
			<author><![CDATA[null@example.com (Janet Simkin)]]></author>
			<pubDate>Mon, 15 Sep 2008 15:13:26 +0000</pubDate>
			<guid>https://forums.nbn.org.uk/viewtopic.php?pid=3314#p3314</guid>
		</item>
	</channel>
</rss>
