Update SQLserver Database Table Column.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Miquash
    New Member
    • Mar 2011
    • 2

    Update SQLserver Database Table Column.

    Dear Sir,

    I'm maintaining a Table in SQLserver, the Table contains Transaction of Cash IN(Debit) and Cash OUT(Credit) as follows:
    Table Name : "BankLedger "
    Code:
    DATE...DETAILS........DEBIT...CREDIT...BALANCE
    1/1/11.Opening Balance.................5000
    1/1/11.Rent payment...........2500.....
    2/1/11.Mobile Bill.............500.....
    3/1/11.Monthly Share...5000............
    6/1/11.Emp Salary.............3000.....
    Now my requirement is how to update the Balance column respectively same as "Running Total" method???
    Code:
    DATE....DETAILS........DEBIT...CREDIT..BALANCE
    1/1/11..Opening Balance................5000
    1/1/11..Rent payment...........2500....2500
    2/1/11..Mobile Bill.............500....2000
    3/1/11..Monthly Share...5000...........7000
    6/1/11..Emp Salary.............3000....4000
    My application in Visual Basic 2010 and Database SQLserver 2008.

    Expecting your answer with sample codes....

    Thanks in advance.
  • BlackLibrary
    New Member
    • Jan 2010
    • 16

    #2
    Hard to understand what you want...except that you are overdemanding in tone.

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      I agreee with BlackLibrary.

      Anyway, why don't you ask google about the SLQClient library?
      You might be interested in:
      Opening an SqlConnection,
      Filling a DataSet using an SqlDataAdapter
      Updating your info with an SqlCommandBuild er

      Comment

      • VijaySofist
        New Member
        • Jun 2007
        • 107

        #4
        Hi,

        Check this URL below. This may be helpful to you



        Regards
        Vijay.R
        Last edited by VijaySofist; Mar 30 '11, 10:18 AM. Reason: Not a Code. Solution Link

        Comment

        Working...