How can we help you today? How can we help you today?
kalo
No i don't think you can synonym a system object but you could encapsulate that reference in your own view. When your developer changed wanted to change the particular dataset he was referencing locally he could then amend the local view only rather than the procedure : therefore code comparison of the procedure would show only the code differences you wanted to focus on.  I now try and adhere to the rule of not explicitly referencing a separate database from my codebase - especially now that SQL Prompt code analysis flags when i do - and always make cross database references via synonyms.  So in your example if your production code in the first place didn't have the cross db reference  ( MyStaging.sys.tables ) but instead referenced your own view (MyStagingSysTables as select * from mystaging.sys.tables) then when the developer wanted to repoint locally they wouldn't change the proc they would change the view (of course, this would mean all other objects referencing the view would be repointed too, but this would be only on their local db) This doesn't solve the exact issue you want to in ignoring specific text, but does alleviate the need to, so your code comparison just flags up the changes you want to focus on. Also means when you approve the changes the developer doesn't need to then amend all their bastardised/personalized object references. Like i say, just the way I navigate round your issue. / comments
No i don't think you can synonym a system object but you could encapsulate that reference in your own view. When your developer changed wanted to change the particular dataset he was referencing...
0 votes
if you have same table name on different schemas then you cannot use the match whole words for the table-name as you need to include the schema, and then the search will return only the results for the single specified schema / comments
if you have same table name on different schemas then you cannot use the match whole words for the table-name as you need to include the schema, and then the search will return only the results for...
0 votes
update: having tried several times to compare 2 databases and getting the same error , i then tried comparing 2 script folders. This worked, and having got it to work and then trying other database comparisons the error went away. I then went back to my original database comparisons and these are now working too. So i've somehow flushed out whatever was causing the error without knowing what it was. Log full of  "Failed to resolve..." errors then the error message that popped up in the UI  11:06:01.360|Warn   |SQL Compare Engine  |27 |DBOResolver: Failed to resolve Table, View-.obj 11:06:01.361|Warn   |SQL Compare Engine  |27 |DBOResolver: Failed to resolve Table, View-.xrow 11:06:01.368|Warn   |SQL Compare Engine  |27 |DBOResolver: Failed to resolve Table, View-.src 11:06:01.368|Warn   |SQL Compare Engine  |27 |DBOResolver: Failed to resolve Table, View-.src 11:06:01.379|Info   |SQL Compare         |10 |Sending 1 event: [   {     "eventType": "database.comparison.failed",     "headers": {       "productId": "sql-compare",       "productVersion": "13.3.8.6436",       "eventUuid": "0636cfcf-bf5b-4ebc-9ac1-a21324760dce",       "usageUserId": "c579cc5b-7b4d-4ef7-8da2-b52893bdc234",       "sessionUuid": "8d660b73-2233-4aba-b411-d06ec93d1035",       "createdTimeUtc": "2018-06-12T10:06:01Z"     },     "payload": {       "exception": {         "type": "NullReferenceException",         "message": "Object reference not set to an instance of an object."       }     }   } ] 11:06:01.439|Info   |SQL Compare         |10 |Usage reporting request made to https://featureusage.red-gate.com/v1/usageevents   Number of submitted usage events = 1   HTTP status code = 204 NoContent   Response body = 11:06:15.877|Error  |Engine Service      |1  |Comparison failed System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object Any idea what would cause this - seems like a blip post-frequent-update ? / comments
update: having tried several times to compare 2 databases and getting the same error , i then tried comparing 2 script folders. This worked, and having got it to work and then trying other database...
0 votes
Hi Richard, Thanks for your prompt reply I'm on V3.1.5 so i will look to update over the weekend and get the benefit of this change. / comments
Hi Richard, Thanks for your prompt replyI'm on V3.1.5 so i will look to update over the weekend and get the benefit of this change.
0 votes