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

We can get date, month and year seperately from the
current date like

select DATEPART(d, getdate()) to get current date
select DATEPART(mm, getdate()) to get current month
select DATEPART(yy, getdate()) to get current year

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I view a trc file?

978


How do I schedule a sql server profiler trace?

1028


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

170


How can you ensure that the database and sql server based application perform well?

1126


What do you understand by the analysis services in sql server?

981


List the different normalization forms?

1023


Should you normalize audio?

1008


Explain different backup plans?

1007


What are indexers?

1134


What are key, name and value columns of an attribute? : sql server analysis services, ssas

1066


Types of Authentications in Sql Server? How user gets authenticated through windows authentication?

1100


What do you mean by 'normalization'?

1123


Does the unique constraint create an index?

1136


How retrieve field names from the table in SQL through JAVA code?

1959


How you provide security to cube? : sql server analysis services, ssas

1010