 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
[SA 9.0.0144 Pro BETA] - Datetimeoffset column issue |
|
SA fails to properly display result columns (in SQL Server) with datetimeoffset type. There's only a red background cell without any data in the grid.
|
|
Fri Sep 23, 2016 8:24 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
I think this issue with display of datetimeoffset values has been fixed in 9.0.151. I'm not completely sure though.
Please download the latest beta build, and give ti a try.
|
|
Tue Sep 27, 2016 12:32 am |
|
 |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
|
|
Improvements have been made but it's not working properly yet. I copy-pasted the example from msdn.microsoft.com
 |
 |
DECLARE @datetimeoffset datetimeoffset(4) = '12-10-25 12:32:10.1237 +01:0';
DECLARE @time time(3) = @datetimeoffset;
SELECT @datetimeoffset AS '@datetimeoffset ', @time AS 'time';
|
This returns the following in SSMS:
 |
 |
@datetimeoffset time
2025-12-10 12:32:10.1237 +01:00 12:32:10.124
|
and the following in SQL Editor:
 |
 |
@datetimeoffset time
2025-12-10 12:32:10 12:32:10
|
Both the offset and the fraction second data are missing.
|
|
Tue Sep 27, 2016 3:19 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|