Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 27th, 2005, 10:29 PM
melaos melaos is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 melaos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 32 sec
Reputation Power: 0
Automated procedure calling

I'm working on a database where i currently have a table with active and inactive product and i wish to move all the inactive products to a new inactive product table.

But i want to add the flexibility of whenever the status change for a product, that product will be moved automatically to the proper table without any manual execution.

I want to ask here how many ways is there for me to do the above and how do i do it?

For example, do i setup a trigger to capture the status change?

Thanks in advance

Reply With Quote
  #2  
Old March 28th, 2005, 02:56 AM
Sony Sony is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Bangalore,India
Posts: 180 Sony User rank is Sergeant (500 - 2000 Reputation Level)Sony User rank is Sergeant (500 - 2000 Reputation Level)Sony User rank is Sergeant (500 - 2000 Reputation Level)Sony User rank is Sergeant (500 - 2000 Reputation Level)Sony User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 18 h 54 m 28 sec
Reputation Power: 15
When there is status change of product
during insert or update check the status of the product and update ur desired table...
That means calling the function

hope i am clear
Sony

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Automated procedure calling


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT