I am saving a TimeSpan (from .NET) value in my db as BIGINT in SQL Server (saving the Ticks property). I want to know how to convert this BIG
TimeSpan
BIGINT
BIG
You should be able to use the CAST function built into SQL Server.
SELECT(CAST(CAST(CAST ('02/02/10' AS datetime) AS BIGINT) AS datetime))
you get 2010-02-02 00:00:00.000