Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exiting a stored procedure 1

Status
Not open for further replies.

aaronjonmartin

Technical User
Jul 9, 2002
475
GB
This may be easier than I realise but if anybody could help me with this I would appreciate it.

I want to build a stored procedure which takes a date and some details about a user. I want it to compare the date with the current date/time and if it is not passes the current date/time insert the details of the user into a table, if it is passed the current date/time I want to exit the stored procedure without inserting anything.

Is this possible? How can this be done?

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
SQLDenis your solution looks like its what im after, i will give it a try. Thankyou

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
One simple question: What do you mean with "Current Date/Time"? Is this includes seconds?

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
 
yes it includes seconds

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top