Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Default Value

Author  Topic 

manojkumarfbd
Starting Member

4 Posts

Posted - 2009-05-11 : 05:27:47
Hi

I want to update the current date on each updation in a column.

is there any way to update this column without using trriger?

thanks
Manoj kumar

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-05-11 : 06:15:14
Try this

update table1 set c1='a',c2='b',... c10=getdate() where id=1


Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-05-11 : 11:08:41
quote:
Originally posted by manojkumarfbd

Hi

I want to update the current date on each updation in a column.

is there any way to update this column without using trriger?

thanks
Manoj kumar


nope. for updates to pick up date automatically you need to use trigger.
Go to Top of Page

manojkumarfbd
Starting Member

4 Posts

Posted - 2009-05-12 : 00:43:02

I wanted to update the value automatically

Thanks for your prompt reply.
Manoj Kumar
Go to Top of Page
   

- Advertisement -