Comments
Sort by recent activity
Sure, attached. ( Edit:I can't see my attempted attachement anywhere, so here it is on pastebin https://pastebin.com/P5Ds6A11 ) I think some of the problems with trying to set up formatting probably come up because there are two different formatting "regimes" in a SQL statement. The first is the formatting for SQL clauses themselves.. select, from, where, and so on, the names of the relations being queried, joins, etc. But a second regime exists, which is a formatting regime for expressions. That might mean case statements, but it might also mean logical constructs used in where clauses, or inside the join, or function calls for column value expressions, and things like that. While SQL prompt does recognize case statements as an independently format-able construct in their own right, it doesn't seem to make that more general distinction between scalar-value-returning-expressions vs SQL clauses. For instance, the construct inside a where clause (or a join) is actually a scalar expression returning a boolean, and should fall under an "expression formatting regime" as opposed to a "clause formatting regime". You can think of the where clause as creating a sort of attachment point where an expression is about to go, and I should be able to set the "cursor start position" for that expression via SQL prompt, after which expression formatting should take over and act as if that chosen position was the left edge of the screen, so to speak. / comments
Sure, attached.( Edit:I can't see my attempted attachement anywhere, so here it is on pastebin https://pastebin.com/P5Ds6A11 )I think some of the problems with trying to set up formatting probably...
I wasn't expecting redgate to have an "answer" to these questions as such since it's not really a question about SQL source control, it's more a question to the community who have used it or are using it, and have gone through or attempted to go through this process. Nice bonus to hear that you do have a support team for this kind of thing. / comments
I wasn't expecting redgate to have an "answer" to these questions as such since it's not really a question about SQL source control, it's more a question to the community who have used it or are us...
Thanks for your reply.
As far as the general branching structure, sure, I agree that it's not the role of SQL SC to define this. I included that part of the question just in case anyone had successfully constructed a similar pattern with the inclusion of SQL SC. Let's pass over that one.
But I think the second part of the question is a canonical requirement of a source control system. Particularly the part where we need to think about how code under revision control is synched to code that has been built and is running in an environment. With SQL, deployment *is* building. SQL Compare must run against an actual environment, which leaves different change paths for what is in source control vs what is deployed.
To put it another way: Even if it was possible to use SQL SC and SQL Compare to apply a cross-branch merge style change script within revision control (which it currently is not), a deployment would still require a second use of sql compare (this time between source and deployed environment).
An alternative approach might be to change the pattern: Instead of going from source branch 1 to source branch 2 to deployment in environment 2, one could go from source branch 1 to enviornment 2 via sql compare, and then check in changes in environment 2 to synch source branch 2. But this significantly increases the amount of work when a developer has to do a merge... indeed, it means a lot of the time developers cannot do merges, since developers don't have the authority to deploy code outside their own environment. / comments
Thanks for your reply.
As far as the general branching structure, sure, I agree that it's not the role of SQL SC to define this. I included that part of the question just in case anyone had success...
Addendum:
Exploring this idea a little further, right now it seems that if I want to use SQL Compare to perform a merge of the database side of a project (leaving TFS to deal with application code only) during, for example, a reverse integration step, I would indeed have to run a comparison between:
source: Dev branch OR dev database
target: UAT/RC/Production database (not branch)
This has a few implications:
1) The UAT/RC environment must exist as an actual database. It can't just be code in source control. This is true even if there is no actual testing happening, just a reverse integration process. So I have to provision environments and resources to house a database that nobody may even be connecting to, just in order to do a revision control operation.
2) If there is no UAT branch, then the comparison must necessarily be between the dev database and the production database. This means either:
a) Developers must be granted the permissions required to perform comparisons against the producton database, OR
b) The DBA must take on the responsibility of resolving conflicts in the developers' code, OR
c) A third database be provisioned that is an exact, up to date replica of production, with the addition of the required developer permissions. / comments
Addendum:
Exploring this idea a little further, right now it seems that if I want to use SQL Compare to perform a merge of the database side of a project (leaving TFS to deal with application code ...
Thanks for the reply.
I have restarted the remote registry service on N1.
If I remote desktop to the server hosting SQL Monitor Base, log in using the SQL Monitor Base domain account, run regedit and connect network registry, I can successfully connect to both N1 and N2.
If I "retry connection" from within the monitored servers list it changes to "monitoring, connected" for about 2 seconds, then goes back to "unreachale", same underlying error. / comments
Thanks for the reply.
I have restarted the remote registry service on N1.
If I remote desktop to the server hosting SQL Monitor Base, log in using the SQL Monitor Base domain account, run regedit a...
This is the same pattern I would ideally use. It does, of course, work very well for application code. But I can't find a way of getting the database side integrated.
Without this ability it seems I would need to separate the application side from the database side, making life much more complex and time consuming for the devs, and for overall project management. Alternatively, I could abandon branching entirely. I'm not willing to adopt either option, which basically means the database is once again left out of source control. / comments
This is the same pattern I would ideally use. It does, of course, work very well for application code. But I can't find a way of getting the database side integrated.
Without this ability it seems ...
GearBahx wrote:
Hi,
I am also experiencing similar issues that I thought were originally my hardware. Now I have a brand new fresh i5 Windows 7 Ultimate x64 unit with 8 Gb or RAM. Lots of hard disk space, no garbage software. I am running SSMS 2008 R2 and SQL Prompt v5.1.6.
I also have slowdown in SQL Prompt 5.1.6.35 on a pretty decent rig. I am also seeing the thread aborted exception.
The slowdown can be quite severe (10-30 seconds of application hang time).
It's more common when working on a file with a lot of text, but sometimes occurs on smaller files as well. It doesn't seem to be based on any particular patterns in the code. I haven't been able to figure out the first hint as to what might be causing it, it's just... random. / comments
GearBahx wrote:
Hi,
I am also experiencing similar issues that I thought were originally my hardware. Now I have a brand new fresh i5 Windows 7 Ultimate x64 unit with 8 Gb or RAM. Lots of hard d...