How to save a TimeStamp value

  • I am trying to save a timestamp to a Binary(8) column and converting it to Binary(8), withno luck updating the table where I am tring to save it. This is an example of what I am trying

    UPDATE [TS].[dbo].[MPPS Data Vault]

    SET [LastBarcodeTimeStamp] = (SELECT CONVERT(varbinary(max), MAX(timestamp), 1) as TS From [TS].[dbo].[Barcodes])

    WHERE RowCounter = 1

    Any ideas?

  • Duplicate post. Please post replies here.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply