SQL Server Script Generator CAST datetime values from hex -


i need generate insert script sql server , when using sql server script generator cast datetime values hex e.g.

cast(xxxxxxxxxxxxx datetime) 

how can avoid ? want actual value in script

unfortunatly not possible , sql server internally produce hex value datetime value.

this hex value logically divided 2 group 1 date & other time.

e.g. 0x00009cef00a25634 - hex value.

date part :- 0x00009cef (decimal 40175)

time part :- 00a25634 (decimal 10638900)

if select hex value like,

select cast (0x00009cef00a25634 datetime) 

it return, 2009-12-30 09:51:03.000

i hope answer helpful you.

thanks.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -