cancel
Showing results for 
Search instead for 
Did you mean: 

IDT datetime2(7) and date parse error

Former Member
0 Kudos

I'm getting a parse error with datetime2(7) and date data types. The data foundation is displaying the columns as 'AB' (varchar).

I'm using SQL Server 2008. Anyone else experiences this / have a solution?

This is a real issue for me as Data Services creates all columns as datatime2(7) by default.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have resolved this by:

  • Repairing SQL Server Native Client via Add/Remove Programs (local machine)
  • Recreating the ODBC entry used by the Connection in System DNS (local machine)
  • Refreshing the structure in the Data Foundation in IDT

Answers (2)

Answers (2)

Former Member
0 Kudos

Use datetime instead of datetime2 unless you particularly need ten thosandths of a second.

Seems a totally useless data format for normal life from what I've looked at. Obviously there will be exceptions like working with phantom cameras (super slow motion cameras) but for standard transactions, three decimal places of a second seems perfectly adequate.

Former Member
0 Kudos

I totally agree Mark. My problem is that when selecting datetime as a datatype in Data Services and creating the table via Data Services, the datatype for the column that gets created in the database is datetime2.

I think my only option at present is to update all the date columns manually after Data Services creates them and reimport them.

Once the tables are established in the DW there will be no problem but right now I'm building the DW from scratch.

nscheaffer
Active Contributor
0 Kudos

Could you remove the date column that is being converted incorrectly to varchar and then insert a calculated column to force the conversion to the data type you want?

Does that help?

Noel

Former Member
0 Kudos

Thanks for you response. Although your suggestion is an option I'm looking for something that is not a workaround.