Click here to Skip to main content
15,891,940 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hello ,

I am working on Asp.net website and SQL DB, For Security reasons we are keeping different database for each customer. Now problem is DB objects like Stored Procedures, Views is replicated for each database. If I want to alter any SP ,views or table then I have to do it in all DB's. Is there any way that If I integrate that objects in visual studio and If I change in visual studio it will effect in all DB's.
Posted
Comments
Kuthuparakkal 16-Feb-15 10:46am    
Have you looked at Replication ?
https://msdn.microsoft.com/en-us/library/ms146892.aspx

I had same kind of scenario.. But After doing this manually for 3-4 times, I developed an small win form application which will fetch list of databases from one centralized database and will execute scripts on each table... **Note: I created that application for my purpose.. I never gave it to my client of end client.
 
Share this answer
 
From my understanding you are in SAAS environment. Where I am working right now with have 70+ databases with the same schema, sp, tables... So what you should do is having one common project (cleintProject) and deploy your project against the different clients. So you will maintain only one version of your code that will be deployed on all your DB. If you have some specific code for a client you can still use create it in this solution knowing that it will be used only by this guy.

Hope it will help you.
 
Share this answer
 
I use ApexSql Diff to do this job.

It' really useful, maintain one and replicate to all.

ApexSql Diff
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900