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

Write a sql query to get zero records from a table having n number of records?

1181


What are the benefits of normalization?

1112


What type of Index will get created after executing the above statement?

1103


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

961


What is exclusive locks?

964


How can we determine what objects a user-defined function depends upon?

1019


What are acid properties of transaction?

951


Which is faster statement or preparedstatement?

957


How can we call UDF(User Define Function) using C# code in ASP.net ?

6893


What you can do to delete a table without the delete trigger firing?

974


Where cross join is used?

969


What is the difference between update lock and exclusive lock?

983


Tell me what is the order in which the sql query is executed?

957


what is the primary use of the model database? : Sql server administration

1055


Do you know what is sql injection?

1004