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 / aravazhi

select month(getdate()) Curr_Mon,Year(getdate())
Curr_Year,day(getdate()) as Curr_day

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many levels of sp nesting are possible?

975


How to use linked server?

1123


How to handle error or exception in sql?

952


Which data type columns are the best candidates for full-text indexing?

936


Do you know what are the restrictions that views have to follow?

1038


In what version of sql server were synonyms released?

922


Mention the differences between substr and charindex in sql server.

1002


What is the difference between dropping a database and taking a database offline?

1135


How to recompile stored procedure at run time?

1030


Explain raiserror in sql server?

976


Mention the differences between local and global temporary tables.

972


Are null values the same as that of zero or a blank space?

1002


How to use "if ... Else if ... Else ..." Statement structures in ms sql server?

1024


What is isnull() operator?

999


What is mean by candidate key?

965