on 02-11-2016 5:12 PM
I connected to a MSSQL database view, which has a column that is datetime2 type, but in crystal reports the field type is string. how do I change it to be date/time?
Which version of the following are you using:
Crystal (get the exact version number from Help>>About)
SQL Server
SQL Server client
Also, what type of connection are you using - ODBC or OleDB?
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The version of the SQL Server client that you're using, if it is indeed v6, is old and does not recognize the datetime2 data type. You need to install the SQL Server Native Client 10.0 and use that for your OleDB connection - at that point the field type should be correct in your report.
-Dell
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.