Comments
Sort by recent activity
Hi,
I have not looked at the issue from this perspective. We will consider this in for future releases. Many thanks,
Andras / comments
Hi,
I have not looked at the issue from this perspective. We will consider this in for future releases. Many thanks,
Andras
fpw23 wrote:
I just used the beta for the first time and I love the UI and clear labels on everything but i did notice one thing. I compared two tables where I inserted a new column at position three. When i created the sync script, it just added the new column at the last position. I am pretty sure that the old version would preserve the column order. am I missing an option somewhere?
Thanks,
Frank
Hi Frank,
please use the "force column order" option. This is off by default both in the old and the new version.
Regards,
Andras / comments
fpw23 wrote:
I just used the beta for the first time and I love the UI and clear labels on everything but i did notice one thing. I compared two tables where I inserted a new column at position...
mikeATCompuware wrote:
There appears to be an issue when syncing objects where the underlying definition does not match the object name.
For instance, you have a view object named v_users and its definition is:
create view dbo.v_users
AS
select user_name, user_id from users
Now if you rename the view object to v_users2, the underlying view definition remains 'create view dbo.v_users AS...'
In addition to views, I think this issue applies to stored procedures and maybe other objects. Also, if the owner is changed, a similar issue will occur.
You are absolutely right. And unfortunately this is a sideeffect of sp_rename and of operations that change the owner of a stored procedure, view, function, etc. For this reason it is advised to avoid sp_rename (or to use it with extreme care). Basically this means that the database will be in a sort of inconsistent state (its stored procedure definition is not reflecting the statement that shoud be used to create it again). In the current version we do not support such inconsistent databases. The better way of renaming stored procedures is to drop them, and create them again.
Regards,
Andras / comments
mikeATCompuware wrote:
There appears to be an issue when syncing objects where the underlying definition does not match the object name.
For instance, you have a view object named v_users and it...
colinbo wrote:
I'm working on incorporating the command line version into our build process. I'd like to see a future release where we can exclude objects when making a snapshot. The reason behind it is that our development environment always contains a set of users which do not exist in our production environment (e.g. developers have db_owner access in development, but not in production). As a result when comparing changes to a database in production we never want to have users factor.
We save all schema information in our snapshots, regardless the options that are set (e.g. if one sets ignore triggers, we still save triggers into the snapshot, since in the future one may change the option). Among the reasons for saving everything is the complex dependencies that a database may contain.
One can of course use these options to control the synchronization later, but if you would like to have full flexibility and control over what objects are synchronized, I would recommend our toolkit. It allows you to filter objects/differences at a very fine grain from a .Net based application.
Regards,
Andras / comments
colinbo wrote:
I'm working on incorporating the command line version into our build process. I'd like to see a future release where we can exclude objects when making a snapshot. The reason be...
iposner wrote:
I think the answer given is very shoddy. If there is a problem with sp_rename not changing the syscomments definition, then it should be escalated to Microsoft to provide a fix.
I'm sure they will listen far more attentively to a major toolset vendor than to individuals.
Having said that, it is not beyond the capability of red gate to provide a cross-checking routine and modify scripts appropriately
Hi,
Microsoft is aware of the problem, but since the stored procedures work, Microsoft, AFAIK, is not planning any changes to sp_rename.
Concerning us modifying the scripts to ensure their consistency is something I now added to my to do list, but I'm afraid it will not be in our next release. Many thanks for the suggestion,
Regards,
Andras / comments
iposner wrote:
I think the answer given is very shoddy. If there is a problem with sp_rename not changing the syscomments definition, then it should be escalated to Microsoft to provide a fix.
I...
debeera wrote:
We renamed a stored proc called "a" to "b" on database 1. Compare detects that stored proc "b" is not in the database 2. The script of stored proc "b" however still shows the stored proc name as being "a" and when you sync, stored proc "a" gets created in database 2. Does anyone know why this is happening, is there a setting that we are missing? Thanks.
Hi,
In SQL Server stored procedures are stored as text. If you just use sp_rename, the definition of the stored procedure will still contain the original name. This basically means that the database is in an inconsistent state. You can get the stored procedure definition using the syscomments system table. Unfortunately this is a limitation of SQL Server's sp_rename and it does end the database in an inconsistent state.
Regards,
Andras / comments
debeera wrote:
We renamed a stored proc called "a" to "b" on database 1. Compare detects that stored proc "b" is not in the database 2. The script of stored proc "b" however still shows the stor...