Results 1 to 4 of 4

Thread: Need help to update database field periodically

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Location
    Dhaka, Bangladesh
    Posts
    102

    Need help to update database field periodically

    Dear Friends,

    I have a problem in my hand...

    I am describing a scenario as my problem here...

    Lets think I have an field in my database(MS SQL Server) as joining date and also another field that contains service length( in no. of hours).

    I want to update this service length every hour automatically in my database.

    How I can do that ?

    Pls Help me with necessary codes if possible.

    --Rajib

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Need help to update database field periodically

    What if you would just calculate the timespan when you need it?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Location
    Dhaka, Bangladesh
    Posts
    102

    Re: Need help to update database field periodically

    Thanks for ur quick response.

    But my system add some values to the peoples on their service length in every hours. I can run a process every hour manually from front-end. By I want to reduce my work. So i am wishing to update those values autoimatically from my database.

    if u asked me why i am using service length field in database, i will say no need. but i need to calculate the service length at least when the database will update value automatically.

    can anyone help me?

    if trigger and procedure is needed pls write details. I am not so strong in this things. Pls give some references for further study on those if necessary.

    I am waiting for ur response.

    Best Regards,

    Rajib

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Need help to update database field periodically

    Please avoid crossposting. I just replied to this in another thread you posted elsewhere.

    Try looking up SQL Server jobs.

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