SQL Changeset setup
bhopenw
Posts: 39
Hello,
Is there a way to automatically setup/register workspaces in SQL Changeset.
Ideally, we would like to save a project (.scp) file that compares a Dev DB to the Latest Scripts folder. Add this to soruce control, then when a Dev a has a change he/she can just open of the project and way he/she goes. If the workspace and code is not local it would create it.
While I believe this is not possible, I would like to have a script that I could run that would update the ChangeSet registry, then that Dev could open up the project. This way a dev would only have to run my script to set up the workspace for the project and not have going in SQL Changeset.
Basically, I am looking for a way to have some consentance for Developers, and avoid them have to setup in SQL Changeset all the time. I understand it is a one time thing but for some reason people are have issue with this set up.
Thanks,
BJHop
Is there a way to automatically setup/register workspaces in SQL Changeset.
Ideally, we would like to save a project (.scp) file that compares a Dev DB to the Latest Scripts folder. Add this to soruce control, then when a Dev a has a change he/she can just open of the project and way he/she goes. If the workspace and code is not local it would create it.
While I believe this is not possible, I would like to have a script that I could run that would update the ChangeSet registry, then that Dev could open up the project. This way a dev would only have to run my script to set up the workspace for the project and not have going in SQL Changeset.
Basically, I am looking for a way to have some consentance for Developers, and avoid them have to setup in SQL Changeset all the time. I understand it is a one time thing but for some reason people are have issue with this set up.
Thanks,
BJHop
Comments
It looks this is possible and it shouldn't be all that difficult using powershell.
We use SQL Changeset (SQLCS) to connect to TFS 2005 sp1
When SQL Changeset first starts up it adds some elements to the users local Application Data folder (C:\Documents and Settings\bhopenw\Local Settings\Application Data\Red Gate\SQL Changeset). In this directory, there is a xml file named configuration.xml, this is the file use by SQLCS to registery the TFS/SCCI workspaces.
With that fact found it is truly a simple powershell script to get this working. below is the workflow, I have not finished up the script yet but when I do I will post it.
* Ensure SQLCS has been started at least once, need to have local app Data section set, if not start it. * Ensure SQLCS is not running, if it is prompt to stop or kill it * Create workspace with mappings set from parameters/config file * Add <PairOfScProviderOpenProjectInfo> node to configuration.xml * start SQLCS
Where I see this working is we are going to have a common SCP and this script will set up the local environment (workspace) for the developers.
Thanks,
BJHop
here is the powershell code I created to get the job done
It will update sql changeset with a new workspace to poll
I believe it will help us enfore local standards to help work with a local scp file
This script got a bit more complex than I first thought but I think it works well
enjoy
Please let me know if you have any comments or questions