Results 1 to 8 of 8

Thread: [RESOLVED] What is the Best Approach for this Request

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Resolved [RESOLVED] What is the Best Approach for this Request

    Good Day

    Application Design


    My application is a web application that works on databases. Meaning that there is a login page that has list of Database. A user logs into the database and do whatever on that database. Now a user can create a new Database from the front end and login to it and do whatever the application does, The new Database is created from a Master Database, this simply means that when a user creates a new Database, i do the following.
    Create a new Database--> Restore the Master Database over the newly created database. Now this is fine but i have a challenge. My Challenge is that a user can 10 Databases and i will have Different clients from Different geographic places and if i find a bug in a stored procedure or if i want to change on stored procedure , that means i have to go to each client and update every database. i use Redgate to Script the Master Database.

    Challenge

    I am looking for a Way to Update all the Databases for each SQl instance in a client centrally without connection to a client and do that manually. if the clients are many it takes too much time.

    Thanks

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: What is the Best Approach for this Request

    the logic here sounds wrong to me... i think you can achieve the same thing using single database and using its tables.
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  3. #3

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Re: What is the Best Approach for this Request

    The application is doing something complicated and its good if the databases differ. and it is carrying a lot of data , Millions of records , so combining all databases will be a nightmare, i will experience the dead end of SQL

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: What is the Best Approach for this Request

    Will running a script take that time?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Re: What is the Best Approach for this Request

    It depends when i run the Script, i tried to run the script before the user logs in.

    but if i can get a way to update a list of Databases from a remote location it will be cool

  6. #6
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: What is the Best Approach for this Request

    You can script the process at each client but you will still have to do it per client since other factors will have to be considered; per client backup and recovery, per client audit related requirements, per client regression testing, per client downtime (unless patch be applied while DB is online), etc... if clients require support during update then turn-around time and other delays (scheduling) will also have to be considered. I doubt clients would appreciate you connecting to their databases remotely and doing an update without giving them chance first to do whatever they need to do at their end.

    Alternative would be similar to patching and migration... patching would involve proving clients with scripts they can run (they can do their own backups before applying your patch)... for migration clients download new app and DB, then give them option to migrate data from old database when creating new DB. That way you can sync version control of front-end modules with their back-end counterparts since a break in backward compatibility is inevitable. Comparable would be Oracle technology (9i, 10g, 11g versions for front-end tech and DB)

  7. #7
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: What is the Best Approach for this Request

    I'm not exactly sure what you are doing but you can hit all the databases on a server via sp_msforeachdb. It's an undocumented stored procedure but there is plenty of information on it via Google.

  8. #8

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Re: What is the Best Approach for this Request

    Thank you guys for your advice.

    I have decided to write something that will Connect to an Existing VPN and accept a Script and it should run on the remote Server and Update the Databases. The reply from you guys gave me an idea thank you. i think
    TysonLPrice's advice is cool, i will test it and tell you a feedback about this .


    Kind regards

    Vuyiswa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width