Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting info into diffrent tables in diffrent databses 1

Status
Not open for further replies.
Apr 3, 2003
180
US
I am writing an application that requires me to insert information from a text box into 2 diffrent tables. Very easy! The problem I am having is that these two tables are in diffret databases, on the same SQL Server. I will ask this question in the SQL section also in case this can be done with a stored procedure. Any help would be greatly appreciated.
 
If you use three level naming when refering to your tables, you can access different databases on the same server:

Database1.dbo.Table1
Database2.dbo.Table2

Hope this helps



Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top