making two databases work together

  • Hi,

    I would like to know if it is possible to make it work with 2 twin databases within SQL Server 2000. Thus, one database will have all data sent by the application and the other will have certain data as long as it is the twin of the first database in structure. Is this possible and how?

    Thanks.

  • Why do you want to do something like this?

  • I want to develope a new application with the second database but also I need most of the data in the first database and I would like to update the second database online. Do you have a solution for this problem? Online updating a database by getting certain data from other database.

  • Why can't you use the same database for the 2nd application?

    How will you use the first database?

  • I am just searching a better solution in order not to make the new application sort all the millions and millions of data to find a hundered. So you have a solution?

  • You can use the data of database B when you are in database A, so I definitly wouldn't copy all the data (especially if you have millions of rows).

  • Ok. thanks for your concern. But I still want to know if it is possible or not to make the databases be work online together? Maybe with triggers or procedures?

  • try this :

    use pubs

    go

    Select * from northwind.dbo.Categories

    It works, but I don't know enough about your design to make a final statement.

  • The problems comes from the fact that I don't know what application needs to do with the data, and where that data is sitting. The server, and the applications can certainly have more than 1 databases running at the same time.

  • Not sure if I completely understand what you want to do, but if you want to copy a portion of data from databaseA to databaseB then you could use DTS or a stored procedure to - select top 100 * into databaseB.dbo.tableA from databaseA.dbo.tableA for each table you want.

    If you are wanting the total set of data and automated updated of databaseA to databaseB have a look at 'Replication' in Books Online.

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply