Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 12th, 2007, 01:35 AM
Registered User
 
Join Date: Sep 2006
Location: Delhi, Delhi, India.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to insert value in two table of two database

how to insert value in two table of two database

Reply With Quote
  #2 (permalink)  
Old April 12th, 2007, 02:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you explain that to help better?

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old April 12th, 2007, 10:37 AM
Authorized User
 
Join Date: Oct 2005
Location: , , .
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want to insert values into two tables, regardless whether the tables are in the same database or on two different database, you have to issue 2 separate INSERT statements for each table. If you want to issue just 1 INSERT statement, then the table where you are inserting the data must have a trigger that will insert into the second table.

SQL Server Helper
How well do you know SQL? Find out with the free test assessment from SQL Server Helper!!!
http://www.sql-server-helper.com/free-test/default.aspx

Got a SQL Server Question? Ask us here: http://www.sql-server-helper.com/forums/default.asp
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert table records into another table. hewstone999 Access VBA 2 March 5th, 2008 11:01 AM
how do I insert a toolbar in a table Hylsan PHP How-To 1 January 5th, 2007 05:16 AM
Can't INSERT into database's table ! kanenas.net SQL Language 2 August 10th, 2006 07:37 AM
How I insert the button into table oatza Visual Studio 2005 1 April 23rd, 2006 05:35 AM
insert into new table from recordset bleutiger Classic ASP Databases 4 February 23rd, 2005 05:07 AM



All times are GMT -4. The time now is 07:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.