Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What will happen if a column containing char type data is changed to the nchar data type?

1103


How to insert multiple rows with a subquery?

1132


What is always encrypted?

995


role of sql sever 2005 in database rather than any other database

1940


Is truncate autocommit?

938


How to modify existing triggers using "alter trigger"?

1017


Explain what are the different index configurations a table can have?

1110


What is nonclustered index with included columns ?

967


Explain the steps needed to create a scheduled job?

933


List layers of abstraction microsoft architectured to provide relational db through cloud platform ?

183


What action plan is preferred if sql server is not responding?

1104


Will sql server 2005 allow you to reduce the size of a column?

992


What is logon trigger?

1096


What is difference between getdate and sysdatetime in sql server 2008?

1047


What is the difference between ‘having’ clause and a ‘where’ clause?

1040