Click here to Skip to main content
15,908,661 members
Please Sign up or sign in to vote.
1.36/5 (4 votes)
See more:
I am using store procedure. in that store procedure i want to use getdate.

for that how can i do in store procedure.

Regards,
Narasiman P.
Posted
Comments
Thanks7872 9-May-14 7:51am    
Where is the question?
Sanket Saxena 9-May-14 7:55am    
Question is clear OP wants to use GETDATE() in stored procedure.
Thanks7872 9-May-14 7:58am    
Let him respond. Such questions can easily be found out using simple google search.
Sanket Saxena 9-May-14 8:00am    
Correct thats why i didn't gave any solution till they have any doubt. Just replied your comment dont mind :)

1 solution

SQL
Create procedure pro_name
as 
begin
select getdate()
end
 
Share this answer
 
v3

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