Click here to Skip to main content
15,915,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here i have my procedure and i my requirement is to display current date. in place of DIssolution date. i am already getting some data from dissolution column instead of that i want display current date. how to replace it with getdate() function.
Posted

Without looking at your stored procedure it is tough to answer. Here is what could help:

select [other columns], getdate() "dissolution" from [table name]
 
Share this answer
 
Instead of the DIssolution column use getdate() as [DIssolution] i.e. :
SQL
select col1,col2,col3,DIssolution from tablename

select col1.col2,col3, getdate() as [DIssolution] from tablename
 
Share this answer
 
Comments
raxhemanth 17-Apr-15 5:15am    
if i update it from front end will it update.
Mehdi Gholam 17-Apr-15 5:23am    
SELECT statements are for viewing data only, however since the column name matches the table column name the an UPDATE command will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900