Comments
Sort by recent activity
David,
You are right on when you say:
Do you need a mechanism to parameterise these database names and replace with values on synchronization, depending on what the target database is?
That is what I am looking for, I know I can write this pretty easily in powershell using a config xml that holds the linked servers for each test region. Currently, we exclude any stored proc that uses a linked server, this scares me b/c if any of these procs need to be changed it will be a manual action in each test region. (FYI we have 7 test regions here) Ideally, there should not be a need for manual actions once our automation is set up.
By the way I am very impressed with power of the cmd-line for SQLCompare, combo it with powershell and you got a very powerful Database migration automation platform.
I believe I will start coding up the search and replace pre-deployment scripts b/c I think this will be best way to achieve my goal of total automation.
I am still open to any and all ideas out there please don't be shy
BJHop / comments
David,
You are right on when you say:
Do you need a mechanism to parameterise these database names and replace with values on synchronization, depending on what the target database is?
That is w...
I am unaware of the articles you talk about but I would believe that the easiest way to call SQL Compare via MSBuild would be to use the <EXEC> task (http://msdn.microsoft.com/en-us/library/x8zx72cd.aspx) to call the SQLCompare.exe (need SQL Compare Pro). Furthermore, I would utilize the arguments xml (http://www.red-gate.com/supportcenter/Content.aspx?p=SQL%20Compare&c=SQL_Compare/help/7.0/sc_cl_usingxmltospecifyclarguments.htm&toc=SQL_Compare/help/7.0/toc356448.htm) when calling SQLCompare.exe
With that said, I would take it one step further and call powershell via EXEC task to make the call to SQLCompare.exe, this way you have power of powershell to basically do what ever you want. Powerhsell and MSBuild work great together and are much quicker to get working than using the ITask class via C# to write a custom task. Plus your scripts are not coupled with MSBuild when using powershell as they are when using C# and ITask.
Let me know if this help or if you have any other questions
I can even post the powershell script I use to call SQLCompare.exe
BJHop
MCTS-TFS / comments
I am unaware of the articles you talk about but I would believe that the easiest way to call SQL Compare via MSBuild would be to use the <EXEC> task (http://msdn.microsoft.com/en-us/library/x8zx72c...
Eddie,
Thank you for your response
I guess I forgot to mention that we looked into the registry at all the keys for both Red Gate, MSSCCI and TFS All seemed to correct including the below path you gave me in you
Keys we looked at were
HKEY_LOCAL_MACHINE\software\SourceCodeControlProvider {RoboSource Control 3, Microsoft Team Foundation Server MSSCCI Provider}
HKEY_LOCAL_MACHINE\software\Red Gate\Downloads
HKEY_LOCAL_MACHINE\software\Red Gate\Licensing
HKEY_LOCAL_MACHINE\software\Red Gate\SQL Backup
HKEY_LOCAL_MACHINE\software\Red Gate\SQL Changeset
HKEY_LOCAL_MACHINE\software\Red Gate\Update
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\EA500
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\Microsoft Visual Basic
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\Microsoft Visual C++
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\Microsoft Visual FoxPro
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\PowerBuilder
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\Quest Team Coding
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\VsScc
HKEY_LOCAL_MACHINE\software\Microsoft\Team Foundation Server MSSCCI Provider\settings\VssProvider / comments
Eddie,
Thank you for your response
I guess I forgot to mention that we looked into the registry at all the keys for both Red Gate, MSSCCI and TFS All seemed to correct including the below path you ...
1. Is the registry key for RoboSource Control in HKEY_LOCAL_MACHINE\software\SourceCodeControlProvider pointing to a valid key? Yes
2. Does your user have permissions set to access the registry? User is local Admin of Box
I appreciate all the help and do want to resolve this issue but this is only PC that we are having issues with from about 10 that we have installed it on. We do plan on installing on many more machines (40+) but that work is a couple weeks off. With that said I am willing to right this off as local to this particular server and that it is not a Red Gate issue but some configuration issue.
Thanks for you help I will continue to work to see if I can fix if I do i will post the fix.
bjhop / comments
1. Is the registry key for RoboSource Control in HKEY_LOCAL_MACHINE\software\SourceCodeControlProvider pointing to a valid key? Yes
2. Does your user have permissions set to access the registry? U...
I just wanted to let everyone know that Version 7.1 of SQL Compare Pro does indeed fix the issue we were having with our Stored Proc
The only catch we had was that all of the files were added to TFVC meaning spName.sql, spName1.sql, and so forth. Which caused the compare to fail b/c of multiple stored Proc w/ same name where found. Once we deleted the dups from TFVC all was well.
Thanks,
BJHop / comments
I just wanted to let everyone know that Version 7.1 of SQL Compare Pro does indeed fix the issue we were having with our Stored Proc
The only catch we had was that all of the files were added to TF...
FYI
Below is the response I got back from RedGate after they examined the Stored Proc in question.
Brian,
I’ve had a look at the stored proc michelle sent me, and it seems the parser within SQL Compare does not like variables as the last clause of a CONTAINSTABLE expression, which this stored procedure has several examples of. This will be fixed in version 7.1, which will be released within the next couple of weeks.
Simon Cooper
/ comments
FYI
Below is the response I got back from RedGate after they examined the Stored Proc in question.
Brian,
I’ve had a look at the stored proc michelle sent me, and it seems the parser within SQL ...
Michelle,
The Syntax checked out w/o error.
This stored proc is our largest by far, some 600 lines, furthermore, it is our only proc that uses Full text search.
I do not believe that these would have anything to do with it but I thought I throw it out there nonetheless.
Thanks,
BJHop / comments
Michelle,
The Syntax checked out w/o error.
This stored proc is our largest by far, some 600 lines, furthermore, it is our only proc that uses Full text search.
I do not believe that these would ha...
Michelle
Thanks for you reply and I am sorry it have taken me so long to respond I was on a vacation, last week I.
I will have my DBA guys look at the Syntax, today. Hopefully they find something, if not I will send you the file.
Thanks a million
BJHop / comments
Michelle
Thanks for you reply and I am sorry it have taken me so long to respond I was on a vacation, last week I.
I will have my DBA guys look at the Syntax, today. Hopefully they find something,...
Okay
Question:
Will SQL Compare be able to view this source as a Scripts Folder? I see a RedGate.scc file where with SQLCompre/SQLChangeSet its RedGateDatabaseInfo.xml.
Meaning, can I call SQL Compare from the cmd line after the source has been downloaded to a local workspace?
thanks,
BJHop / comments
Okay
Question:
Will SQL Compare be able to view this source as a Scripts Folder? I see a RedGate.scc file where with SQLCompre/SQLChangeSet its RedGateDatabaseInfo.xml.
Meaning, can I call SQL Comp...