Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to pass Getdate using store procedure

please help me.

Rgds,
Narasiman P.
Posted
Comments
ArunRajendra 24-Jun-13 0:14am    
Do you want to pass current date from C# to stored procedure?
Karthik Harve 24-Jun-13 0:38am    
do you want to get the GETDATE value from stored procedure ?

Hi Narasiman,
You can use getdate funcation in SQL also, No need to pass through C# Code.
Please explain your query in Detail..
 
Share this answer
 
Hello Narasiman, yes you can directly use getdate() function in SQL Store procedure.

but we want to pass getdate() through pass through parameters, then first u make select query like

select getdate() as date1 ,

and store this value in any datetime variable and use this where u want.
 
Share this answer
 
Hi
You can use getdate() in your query (in back end) itself for insert, delete or update. You need not to call it from Front end.

or improve your question with your code block.
 
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