Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
Questionhow to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:01
attalurisubbu18-Oct-07 2:01 
AnswerRe: how to capture count of records from stored procedrure Pin
Illegal Operation18-Oct-07 2:03
Illegal Operation18-Oct-07 2:03 
GeneralRe: how to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:06
attalurisubbu18-Oct-07 2:06 
AnswerRe: how to capture count of records from stored procedrure Pin
pmarfleet18-Oct-07 2:05
pmarfleet18-Oct-07 2:05 
GeneralRe: how to capture count of records from stored procedrure Pin
attalurisubbu18-Oct-07 2:15
attalurisubbu18-Oct-07 2:15 
GeneralRe: how to capture count of records from stored procedrure Pin
pmarfleet18-Oct-07 2:23
pmarfleet18-Oct-07 2:23 
AnswerRe: how to capture count of records from stored procedrure Pin
neeraj_indianic19-Oct-07 21:12
neeraj_indianic19-Oct-07 21:12 
QuestionAutomatic Add and Update Pin
Sarfaraj Ahmed18-Oct-07 1:36
Sarfaraj Ahmed18-Oct-07 1:36 
Hello Everybody

I am new in SQL SERVER 2005 and ASP.NET 2.0 , Im doing a Online Library Management Project, I know you are expert and please help me.

On Borrower Table
MemberID, ItemID, DateTaken, Duedate, SubmitDate, Delay

On Penalty Table
MemberID, ItemID, Fine, Paid, DatePaid

(B as Borrower and P as Penalty) and a Member borrow a Item and Borrower below

B.MemberID = SCOM1001
B.ItemID=EBEG100302
B.DateTaken = 14/10/2007
B.DueDate= 16/10/2007
B.Submitdate= NULL
B.Delay=NULL

right now CurrentDate is 18/10/2007 and M.MemberID = SCOM1001 did not return ItemID = EBEG100302 .

Per day penalty is 1.500 and Member already delayed 2 days and Tomorrow it will be 3 days then 4 days then 5 days............

Just think Penalty Table is Empty, If you delay 1 day then Penalty Table will automatic add MemberID, ItemID, Fine

P.MemberID=SCOM1001
P.ItemID = EBEG100302
P.Fine=1.500
P.Paid=NO
P.PaidDate=NULL

Dealy day 2
Penalty Table will automati update P.Fine, Value will be 3.000

Delay day 3, day4....................... UpdateP.Fine

My Question is it possible to write some code inside my SQL SERVER datbase, Which will automatic check the B.DateDue column and (add or update Penaly Table where necessary)
I can write some function inside ASP.NET which will create a report for my needs but It will be taken more time.

I want my DataBase will check column status and put value to other table or same table where necessary.

Please tell me how can I do it? Any instruction will be really helpful.

Thanks
Sarfaraj Ahmed


Sarfarj Ahmed

AnswerRe: Automatic Add and Update Pin
pmarfleet18-Oct-07 2:04
pmarfleet18-Oct-07 2:04 
GeneralRe: Automatic Add and Update Pin
Sarfaraj Ahmed18-Oct-07 2:26
Sarfaraj Ahmed18-Oct-07 2:26 
GeneralRe: Automatic Add and Update Pin
pmarfleet18-Oct-07 2:42
pmarfleet18-Oct-07 2:42 
Questionproblem in javascript Pin
Arihant rathi18-Oct-07 0:49
Arihant rathi18-Oct-07 0:49 
AnswerRe: problem in javascript Pin
pmarfleet18-Oct-07 1:57
pmarfleet18-Oct-07 1:57 
Questionquery Pin
venky45617-Oct-07 23:51
venky45617-Oct-07 23:51 
AnswerRe: query Pin
Imran Khan Pathan18-Oct-07 0:19
Imran Khan Pathan18-Oct-07 0:19 
QuestionData Encryption and Decryption in sql server/2005 Pin
nhss17-Oct-07 21:51
nhss17-Oct-07 21:51 
QuestionImporting Data From Excel Pin
Syed Mujtaba Hassan17-Oct-07 18:45
Syed Mujtaba Hassan17-Oct-07 18:45 
AnswerRe: Importing Data From Excel Pin
Sathesh Sakthivel17-Oct-07 20:01
Sathesh Sakthivel17-Oct-07 20:01 
GeneralRe: Importing Data From Excel Pin
Syed Mujtaba Hassan17-Oct-07 20:30
Syed Mujtaba Hassan17-Oct-07 20:30 
QuestionProblem with row concatenation [modified] Pin
Payal_e_m17-Oct-07 16:52
Payal_e_m17-Oct-07 16:52 
AnswerRe: Problem with row concatenation Pin
Colin Angus Mackay17-Oct-07 17:39
Colin Angus Mackay17-Oct-07 17:39 
GeneralRe: Problem with row concatenation Pin
Payal_e_m17-Oct-07 18:06
Payal_e_m17-Oct-07 18:06 
GeneralRe: Problem with row concatenation Pin
pmarfleet17-Oct-07 20:15
pmarfleet17-Oct-07 20:15 
AnswerRe: Problem with row concatenation Pin
manojm3917-Oct-07 20:18
manojm3917-Oct-07 20:18 
GeneralRe: Problem with row concatenation Pin
Payal_e_m18-Oct-07 16:28
Payal_e_m18-Oct-07 16:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.