Thursday, August 13, 2009

Converting DateTime to Date

Converting Datetime to date in a table

Updating all the bookdate in a table from datatime to date
For example tablename = t1

update t1 bookdate = convert(varchar(10),bookdate,101)


converting datetime to date

convert(varchar(10),getdate(),101)

1 comment:

  1. I have heard about another way of exchange recovery toolbox. Besides, you can visit my blogs at: http://daspeac.livejournal.com/ or http://daspeac.blogspot.com/ where I’m trying to share my experience with regard to data corruption issues.

    ReplyDelete