Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Configuration FunctionsRSS Feeds

@@DBTS - DBTS Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2414

This article explains about @@DBTS function in sql server with examples.

@@DBTS function is used to get current timestamp data type for current database. 


Syntax of @@DBTS Function :

@@DBTS

Return type of @@DBTS function is varbinary.



Examples of @@DBTS Function :

Example 1 : Use of @@DBTS function in select clause

SELECT @@DBTS

Output
0x00000000000007D0

Above example returns current timestamp for current database of sql server. A new timestamp value is generated when a row with a timestamp column is inserted or updated.
  
Share: 


Didn't find what you were looking for? Find more on @@DBTS - DBTS Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of @@DBTS - DBTS Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!