on 09-05-2013 1:22 PM
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.
I have resolved this by:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.