hi, may i know what is the command to get abstract the
current month, current year and current day from a given
date.i want these three in a isolated way..seperatedly is
that any way in sql server 2000

Answer Posted / dharmendra k. dixit

We can do that by writing our query in this way..

Select datename(dd, getdate()) for Date
Select datename(mm, getdate()) for Month
Select datename(yy, getdate()) for Year

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get all stored procedures in sql server?

686


How to move database physical files in ms sql server?

691


How to include text values in sql statements?

761


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

752


How to send a ssrs report from ssis?

151






How many types of functions are there in sql server?

609


What is role playing dimension with two examples? : sql server analysis services, ssas

775


What is the difference in accessing db between sql server vs sql azure?

166


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

719


How to skip remaining statements in a loop block using continue statements?

746


Name some of the open source software that you can use in alternative to SSR?

134


Tell about MOM Tool(Microsoft Operator Manager)?

1596


What is the difference between mysql and sql server?

653


How to find the service pack installed? : sql server database administration

773


Write a query to include a constraint, to check whether the employee salary is greater than 5000?

1348