Click here to Skip to main content
16,022,538 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
when I outward letter to other person that time the current date is automatically save in the SQL server database table.
plz some one help me.
Posted
Updated 4-Jul-12 4:01am
v2
Comments
[no name] 4-Jul-12 10:06am    
I am not sure what "plz" means as there is no such word in the English language. The rest of your "question" does not make any sense at all. But to get the current date in SQL Server you would use the getdate() function.

Use GETDATE()

Refer: MSDN: GETDATE (Transact-SQL)[^]
 
Share this answer
 
MSDN: CURRENT_TIMESTAMP[^]

is another to use. This one is the ansi version of GETDATE()
 
Share this answer
 

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