Alternative way to DetDate() function?

Answer Posted / suraj

Selvaraj, You are wrong. I tested it.
Please, look at the output of these below queries.
'GetUTCDate' results in time difference which means it will
not give you the exact result as 'GETDATE()'.

SELECT GETUTCDATE()

-----------------------
2009-11-30 22:15:15.243


SELECT GETDATE()

-----------------------
2009-11-30 16:15:15.243


SELECT CURRENT_TIMESTAMP

-----------------------
2009-11-30 16:15:15.243

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a cache in ssrs?

110


What is data block and how to define data block size?

607


What is row-level compre?

549


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

632


How to get a list of columns using the "sys.columns" view in ms sql server?

562






How can you stop stored procedures from recompiling?

492


What are the essential components of sql server service broker?

570


What are the general features of sql server management studio? : sql server management studio

601


How to locate and take substrings with charindex() and substring() functions?

516


What is sql server database?

502


code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1758


Can we use having clause without group by?

556


What is default constraint in ms sql server?

540


How to convert a unicode strings to non-unicode strings?

565


Define normalisation?

678