Automatically updating table

This is a discussion on "Automatically updating table" within the Databases section. This forum, and the thread "Automatically updating table are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 18th, 2006, 17:20
New Member
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Automatically updating table

Hello,

i am working on an application that will collect data in a table for one week and then it will automatically transfer that data into another table (has the same coloumns) then it will empty itself and start collecting again for the new week.

i am using a mssql 2003 database, any ideas how i could go about doing this, your help will truly be appreciated.
Reply With Quote

  #2 (permalink)  
Old Jan 19th, 2006, 13:21
New Member
Join Date: Jan 2006
Age: 32
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Automatically updating table

yes if you are using forms as a front end

you can have a date field in your table which keeps the date at which the data was transferrd into this table.

by using datediff (currentdate,yourcolumnvalue) =7 you can perform any action.
make sure that you apply your trigger on your main form load event
because i assume that your application would be using quite regularly
hope this helps
Reply With Quote
Reply

Tags
automatically, updating, table

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get RSS and create a post automatically? Emzi Other Programming Languages 3 May 23rd, 2008 08:57
Please help me. Self Updating Table Question. voultar Web Page Design 3 May 18th, 2008 15:23
How to automatically 'add column' to table? skuliaxe Databases 1 Jan 22nd, 2008 10:40
Text that changes/refreshes automatically azilaka PHP Forum 9 Jul 24th, 2007 06:30


All times are GMT. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43