CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Other Databases (http://www.codingforums.com/forumdisplay.php?f=38)
-   -   Ms Sql Server Store Procedure (http://www.codingforums.com/showthread.php?t=115639)

cloudy 06-05-2007 05:57 AM

Ms Sql Server Store Procedure
 
hi, i dont know this is the right place to let me ask the problem about the database script or not.
if wrong, plz inform me.
i wan to write a store procedure to check the balance leave of the user when end of year.
if end of year then
if balanceleave>4days then
newbalance=totalannual+4days
else
newbalance=totalannual+balanceleave(old)
end if
i have one table is store the user
totalannualleave, balanceanual leave, empid, leaverecordid (PK)
i m first time user to use the store proc,so i duno how to start it.the store proc will run when the date is 31/12 every year(midnite)
can u all guide me?
thank you.

Brandoe85 06-05-2007 05:33 PM

Moving to MSSQL forum.


All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.