system date format is "yy-mm-dd"
"select getdate()" ----> 2009-01-24 20:03:28.513
if i write "select dateadd(dd,2,getdate())
".it returns "2009-01-26 19:59:38.340"...my question is dat
could it be possible to retrive da date in da format "26
jan 2009 ...."??

Answer Posted / senthil kumar.m

select convert(varchar,getdate(),106)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create an execution plan?

485


What is Command line parameters in PLSQL.?

576


How many types of local tables are there in sql server?

501


What are key constraints?

507


Where do we use trace frag?

561






List all types of constraints in sql server?

509


What are “lost updates”?

606


Do you know what are the steps to process a single select statement?

526


What is sql server locking?

544


How to generate random numbers with the rand() function in ms sql server?

559


How to delete multiple rows with one delete statement in ms sql server?

509


How to transfer data from a cursor to variables with a "fetch" statement?

579


What are the High-Availability solutions in SQL Server and differentiate them briefly?

692


Explain how to integrate the ssrs reports in application?

516


Which are new data types introduced in sql server 2008?

594