Connecting Tech Pros Worldwide Forums | Help | Site Map

how do I INSERT data into multiple tables at once?

Newbie
 
Join Date: Aug 2008
Posts: 19
#1: Oct 11 '08
Hai to one and all... I am using The VB.Net 2005 and SQL server2000 .. I need to insert the Data into multiple tables at once.

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Oct 12 '08

re: how do I INSERT data into multiple tables at once?


It depends on what you mean by "at once". Consecutive queries are likely to lead to fewer errors and better error handling, in one block of code. Otherwise try running in one stored procedure.
shweta123's Avatar
Expert
 
Join Date: Nov 2006
Location: India,Pune
Posts: 686
#3: Oct 12 '08

re: how do I INSERT data into multiple tables at once?


Hi,

Please specify more details about your problem.
Please refer This Article which explains how to insert data into multiple tables.
Newbie
 
Join Date: Oct 2008
Location: India
Posts: 1
#4: Oct 12 '08

re: how do I INSERT data into multiple tables at once?


Hey !

You can simply write a stored procedure which will help you to insert data into multiple tables at single point on time. If this is not what you are expecting then please be more elaborative in your question.
Reply