Hi there,
I've got a website that has been duplicated on a server into three different folders, and each of the websites uses a database to recal and store data. However I want each of the different websites to store data to different databases, also which are duplicated. The reason I want to do this is because I want one person to save some details under one website, but for it to not change any of the values under the other websites.
I've created the three sites no probs, and also created three databases no problem, and recalling data isn't a problem, I've checked it through and each each site takes it's data from the correct database.
However when I try and save data to the databases it always stores the data to the origional of the threee databasses regardless of the website used, this is because the stored procedures all point to the origional DB.
Is there a function I can run to change all the stored procedures to point to the correctDB that they are stored in, perhaps by using a rename function? or will I have to go through each stored procedure one by one and rename them all?
thanks in advance!
I've got a website that has been duplicated on a server into three different folders, and each of the websites uses a database to recal and store data. However I want each of the different websites to store data to different databases, also which are duplicated. The reason I want to do this is because I want one person to save some details under one website, but for it to not change any of the values under the other websites.
I've created the three sites no probs, and also created three databases no problem, and recalling data isn't a problem, I've checked it through and each each site takes it's data from the correct database.
However when I try and save data to the databases it always stores the data to the origional of the threee databasses regardless of the website used, this is because the stored procedures all point to the origional DB.
Is there a function I can run to change all the stored procedures to point to the correctDB that they are stored in, perhaps by using a rename function? or will I have to go through each stored procedure one by one and rename them all?
thanks in advance!