You are here: Synchronous Bulk-Copy into two table « MsSQL Server « IT news, forums, messages
Synchronous Bulk-Copy into two table

Posted by Khafancoder on 05/24/07 02:03

Hi guys,
in my db i have these three tables

1.Stores 2.Products 3.Parts


their structure is something like :


Stores ----> Products ----> Parts


Stores
----------------
StoreId, StoreName


Products
----------------
ProductId, StoreId, ProductName


Parts
----------------
PartId, ProductId, PartName



now, in my application i wanna to implement a bulk-copy operation so
user can copy products from one store to another one and when a
product copied to new store;

all of it's parts should copy too.
in fact i need a method to insert a Product item in Products table and
synchronously copy it's parts into Parts table and repeat this steps
until all of proucts copied.

how can i do that without cursors or loops ?


Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация