How can we help you today? How can we help you today?
Jon Kirkwood
Hi SergeyK for providing your solution.  Your solution does makes sense, as the DDL trigger could indeed be interfering with the clone creation process.  Here are some possible reasons why: Triggers and Permissions: DDL triggers can perform actions like logging schema changes, and in some cases, these actions can require additional permissions or affect the state of the database. If the trigger is set to log schema changes to another database, it could be trying to access resources or log data that isn't available or correctly mapped in the cloned environment. Backup Creation Process: When creating a clone, Redgate SQL Clone effectively takes a snapshot of the database. If a DDL trigger is active, it might attempt to execute additional operations that can interfere with the cloning process, especially if it tries to reference external resources or databases that the clone might not have access to at that moment. Disabling the Trigger: Disabling the DDL trigger before taking the backup makes sense because it prevents any additional operations from being triggered during the clone creation, ensuring that the backup is clean and doesn't have any external dependencies. To summarize: The issue likely arose because the DDL trigger was executing and possibly trying to log changes to an external database, leading to conflicts or missing mappings. Disabling or removing the trigger resolves this issue, as it prevents those additional operations from interfering with the clone creation. Glad that you have resolved your concern, and this information may come in useful in the future for someone else getting the same error. / comments Official comment
Hi SergeyK for providing your solution. Your solution does makes sense, as the DDL trigger could indeed be interfering with the clone creation process. Here are some possible reasons why: Triggers...
0 votes
Hi NSRjecross    Thank you for reaching out on the Redgate forums regarding your odd SQL Prompt behaviour. That initially sounds like SQL Prompt’s Find Invalid Objects feature is getting confused due to name caching or some kind of indexing issue, leading to incorrect object names in the script preview. Here are some possible suggestions to clear this variance: Force Refresh SQL Prompt's Cache In SSMS, go to SQL Prompt → Refresh Suggestions (or Ctrl + Shift + D ). This should clear cached object names and reload them. Manually Verify the Views Run: SELECT name FROM sys.views WHERE name LIKE '%Vein%'; Check if any unexpected naming inconsistencies exist at the database level. Check for Ghost Entries in sys.sql_modules If the objects were renamed recently, stale metadata could be an issue. Run: SELECT object_id, definition FROM sys.sql_modules WHERE object_id IN (SELECT object_id FROM sys.views); See if any unexpected names appear. Try SSMS’s Built-in Scripting InsteadIf SQL Prompt's Find Invalid Objects is unreliable, use SSMS: Right-click the invalid view → Script as ALTER Compare with what SQL Prompt generates. Check SQL Prompt’s Log File for Errors Logs are usually in %LOCALAPPDATA%\Red Gate\SQL Prompt\Log\ . Look for errors or inconsistencies. Test with a New SSMS Session Restart SSMS and load Find Invalid Objects again. If possible, test on another machine to rule out local corruption. / comments Official comment
Hi NSRjecross  Thank you for reaching out on the Redgate forums regarding your odd SQL Prompt behaviour.That initially sounds like SQL Prompt’s Find Invalid Objects feature is getting confused due ...
0 votes