Invoke-DlmDatabaseSchemaValidation: how to debug Incorrect Syntax errors?
turbopocky
Posts: 5 New member
I'm trying to use the schema validation from the command line but for some reason it's spitting out a bunch of errors. Unfortunately nothing useful is there to give me any context about where this is coming from:
Any suggestions?
Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'.<br>Incorrect syntax near '-'Where? What's it trying to do? Where is the script it's trying to run? Where is the log file? I'm running -verbose and -debug and it's still not telling me anything I can use to figure out what to fix.
Any suggestions?
Tagged:
Best Answer
-
Sergio R Posts: 610 Rose Gold 5Hi,
To troubleshoot Invoke-DlmDatabaseSchemaValidation errors I recommend using SQL Compare, and do a comparison between your scripts folder and an empty database.
You can then generate a deployment script which will hopefully provide you more insight on the error.Sergio
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools
Answers