Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Searching SQL DB for Updates with another DB

  • 22-02-2009 3:23am
    #1
    Registered Users, Registered Users 2 Posts: 325 ✭✭


    Hi

    I'm using Visual Studio 2005, C# and SQL Server

    I have 3 forms, each with their own DB so the structre is this:

    Form = CRM, DB = CRMDB

    Form = OurPlatform, DB = PlatformDB

    Form = Accounting, DB = AccountDB

    A user inserts data to the CRMDB through CRM but I than want OurPlatform to look through the CRMDB and any new information that has been put into CRMDB to be added to the PlatformDB

    What command could I use to achieve this?


Comments

  • Registered Users, Registered Users 2 Posts: 610 ✭✭✭nialo


    select * from server.database.schema.table

    then what ever logic you need to add to compare things.


  • Registered Users, Registered Users 2 Posts: 2,781 ✭✭✭amen


    hmm as nialo says the simplest is just to select but what happens if existing data is modified or even removed?

    or if the data gets to CRMDB but never gets to PlatformDB?

    Could you use a linked server and use and so to insert to both dbs?

    Would one unified DB be better and let each form point to a different table/view?


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    If its rare, you can use something like SQL Compare, but i think a unified db with different views would work better


  • Registered Users, Registered Users 2 Posts: 325 ✭✭doyler442


    Hi

    Thanks for the replies

    The reason I can't use one unified DB is that the idea is we can bring OurPlatform to a company and install it without having to replace their current DBs with our own.

    We just want to be able to extract information from their DB onto ours and than pass it onto another DB.


  • Registered Users, Registered Users 2 Posts: 2,781 ✭✭✭amen


    We just want to be able to extract information from their DB onto ours and than pass it onto another DB

    Is the data transfer a once off or daily task?
    what happens if the data is modified in PlatformDB and CRMDB?
    how will you know which data is correct?
    what happens if there is a schema change in CRMDB which isn't catered for in PlatformDB


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    amen wrote: »
    Is the data transfer a once off or daily task?
    what happens if the data is modified in PlatformDB and CRMDB?
    how will you know which data is correct?
    what happens if there is a schema change in CRMDB which isn't catered for in PlatformDB

    Or in short thats one big can of worms


Advertisement