Forum Replies Created

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

  • RE: Generating Unique ID on Server

    Jeff,

    THe date approach as suggested above also takes SPID into consideration, which is suppose to be unique for any number of concurrent connected users to the database. Hence at any...

  • RE: Generating Unique ID on Server

    Following sample generates uniqueid but does not store in a table.

    DECLARE @IntTransactionID bigint, --Set @IntTransactionID@dteCurrentDate datetime 

    SET @dteCurrentDate = GETDATE()

    --Genreate unique transaction id

    SET @IntTransactionID = CAST(CAST(@@SPID AS VARCHAR(10)) +...

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