Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 How to convert bigint into timestamp ?

Author  Topic 

wawansur
Starting Member

44 Posts

Posted - 2009-09-03 : 23:53:55
I have table which have coulumn with name FSeqTime
The data type for this coulumn is timestamp

I convert that data type like this.

select FSeqTime from stckmsk
select convert(numeric(20,0), FSeqTime + 0) from stckmsk


FSeqtime
0x000000000003837D
0x0000000000038476
0x00000000000384BA
0x00000000000384BE
0x00000000000384CE

select convert(numeric(20,0), FSeqTime + 0) from stckmsk
230269
230518
230586
230590
230606



how to convert back that data so i get result like first

I'm nothing just gonna being

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-09-04 : 00:52:52
try like this
select cast((230269) as timestamp)
select convert(timestamp ,(230269))
Go to Top of Page

wawansur
Starting Member

44 Posts

Posted - 2009-09-04 : 02:13:55
thx bro


Rgds,
Wawan

I'm nothing just gonna being
Go to Top of Page

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-09-04 : 03:47:09
welcome
Go to Top of Page
   

- Advertisement -