Results 1 to 2 of 2

Thread: Stored Procedure

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Posts
    49

    Stored Procedure

    I am attempting to create a stored procedure for a database that will take a time value, such as "12:00:00 PM" and subtract another value from it, such as "0:01:23" and then input the answer into a record in the format of the first value, in this case "11:58:37 AM" would be the hopeful outcome. I am new to stored procedures, so I am not exactly sure where to begin. If anyone knows of any links that could help me find a solution to this or if anyone has a solution, I would appreciate the info.

    Thanks!

  2. #2
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    Look up the functions DateAdd and DatePart in Books Online. These should do what you need.
    The liver is bad. It must be punished.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width