Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 share inventory between two databases
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

United Kingdom
1 Posts

Posted - 07/02/2013 :  07:51:59  Show Profile  Reply with Quote
I have common product table in db1 and db2. now i want to make it one table because it have one inventory (stock of products) what is the best solution to share product table among two different database.

I have few thoughts
1) writing trigger on update/delete/insert one table and update another same time.
2) creating view on product table and used in second db (i dont know how)

3) replication (i dont know how)

can you guide me on this please. any of the solution or any alternative or best way of doing this ?

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/02/2013 :  07:57:27  Show Profile  Reply with Quote
if you want this to be a ongoing task and always keep tables synchronised i would suggest replication.

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000