Hi,I am testing R2RML mapping functionality on MS SQL Server 12. One of the columns I am mapping is of type 'datetime' (length 8, precision 23, scale 3).
I have DB viewers using MS SQL Server Management Studio and Java Client application SQuirreL. Both render me the data as "2012-10-24 06:50:00.000" (on my windows laptop).
But when running a virtual import (on server) I get this error message on Windows Server 2012Unparseable date: "Oct 24 2012 6:50AM"
Any clues as to why it works differently on Stardog.
--Thx & regardsNatan
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
Hi,I am testing R2RML mapping functionality on MS SQL Server 12. One of the columns I am mapping is of type 'datetime' (length 8, precision 23, scale 3).This is a little confusing. I wasn't aware that datetime took a length, precision or scale. I believe that datetime2 data type takes a single parameter of scale. Are you sure it's not datetime2 or some other type?
I have DB viewers using MS SQL Server Management Studio and Java Client application SQuirreL. Both render me the data as "2012-10-24 06:50:00.000" (on my windows laptop).Not sure what you mean by "render". What exact query are you sending that you say works?
But when running a virtual import (on server) I get this error message on Windows Server 2012Unparseable date: "Oct 24 2012 6:50AM"Is there anything else in the logs? Can you include them or the query that's failing? Is there anything in the Stardog logs and if there is can you send it?Can you send the mappings and db schema you're using?
Any clues as to why it works differently on Stardog.You might want to try a convert() on the datetime field in your mapping query to convert it to an ANSI SQL datetime format and see how that works.
On Friday, November 27, 2015 at 1:21:30 AM UTC+1, Zachary Whitley wrote:Hi,I am testing R2RML mapping functionality on MS SQL Server 12. One of the columns I am mapping is of type 'datetime' (length 8, precision 23, scale 3).This is a little confusing. I wasn't aware that datetime took a length, precision or scale. I believe that datetime2 data type takes a single parameter of scale. Are you sure it's not datetime2 or some other type?I was incorrect. The field is of type "datetimeoffset" cfr https://msdn.microsoft.com/en-us/library/bb630289.aspx.Note: I have zero control over column types in the database.I have DB viewers using MS SQL Server Management Studio and Java Client application SQuirreL. Both render me the data as "2012-10-24 06:50:00.000" (on my windows laptop).Not sure what you mean by "render". What exact query are you sending that you say works?They are just viewers to view the database content. So you do not really see what queries are executed but they seem pretty standard (like select all columns and display them in a grid).But for all intents and purposes the output is quite ok compared parsing of "Oct 24 2012 6:50AM".But when running a virtual import (on server) I get this error message on Windows Server 2012Unparseable date: "Oct 24 2012 6:50AM"Is there anything else in the logs? Can you include them or the query that's failing? Is there anything in the Stardog logs and if there is can you send it?Can you send the mappings and db schema you're using?Yes. Will do as soon as I am at the client again (next week).
Unparseable date: "Mar 15 2014 1:27AM"
"2009-11-19T00:00:00""2012-08-12T05:40:21Z""2009-11-19T00:00:00+06:00"
"2011-02-02 12:55:38"
CONVERT(NVARCHAR(MAX), IncidentDate, 120)
cast('2011-02-02 12:55:38' as datetime)
cast(CONVERT(NVARCHAR(MAX), IncidentDate, 120) as datetime)