How can we help you today? How can we help you today?
Turambar
Good call on the Filters. I hadn't looked at those yet, and they seem to address my problems with the replication stored procedures and views. To answer your other question: I have an existing project that compares the scripts in the "C:\QDev\SQL Compare\Dev" directory to the live Production database. After making some changes in the Development database, I want to re-script the database to the scripts folder to compare to Production. If I choose "File > Export a Data Source" and point to the "C:\QDev\SQL Compare\Dev" folder, no files are overwritten. New files are created named "<objectname>1.sql". I could script to another directory, but then I would have to modify the project before I can re-use it for comparison. That's why I would like to delete the existing scripts before exporting a Data Source. David Atkinson wrote: When you compare a data source to a scripts folder you should be able to generate a SQL Script OR change the files directly. The latter is the correct way to update your scripts folder. Is this not working for you? Thanks for pointing that out. That does fix my problem! I had some trouble finding that option. It wasn't totally clear that I needed to choose "Synchronize using SQL Compare" in the Synchronization Wizard. Maybe you could add some help text or an explicit option "Synchronize Scripts Folder"? I found a small bug in the Wizard. When you go from "step 2 - Review Dependencies" to "step 3 - Review Script", you can see the Affected files. If you go back to step 2 and go to step 3 again, the files will be in the list twice. Thanks for the help! / comments
Good call on the Filters. I hadn't looked at those yet, and they seem to address my problems with the replication stored procedures and views. To answer your other question: I have an existing proj...
0 votes
I got the same error. It can be easily reproduced: - Go to the snippet editor - Do not select any snippet - Click inside the textbox below "code for selected snippet:" / comments
I got the same error. It can be easily reproduced: - Go to the snippet editor - Do not select any snippet - Click inside the textbox below "code for selected snippet:"
0 votes
I also got this error while clicking after selecting text with the mouse that was part of a comment. The part that was selected was the last part of a table name. The comment was on the end of the text in the window. I then clicked after the end of the text, and that is when the error occurred. The comment block looked like this (performance testing): /* Table 'Worktable'. Scan count 14891, logical reads 122736, physical reads 0, read-ahead reads 0. Table 'OpleggingLeerovereenkomst'. Scan count 14697, logical reads 60995, physical reads 167, read-ahead reads 449. met index leerovereenkomstid, iscredit, aanvang: Table 'OpleggingLeerovereenkomst'. Scan count 29601, logical reads 59846, physical reads 1, read-ahead reads 436. met index iscredit, leerovereenkomstid, aanvang: Table 'OpleggingLeerovereenkomst'. Scan count 29601, logical reads 59705, physical reads 1, read-ahead reads 436. na wat INDEX gehannes: Table 'OpleggingLeerovereenkomst'. Scan count 29601, logical reads 59400, physical reads 124, read-ahead reads 137. */ After it has happened once, more of the same errors will happen untill the text in the editor is edited. I cannot consistently reproduce it, although it happened on multiple separate occasions. Here are a few lines from the LoggingForm that may be of intrest: ScriptModel: Caret position: Line: 37; Column: 40 SqlPromptEngine: Setting caret position to: Line: 38; Column: 2 SqlPromptEngine: Script info before setting caret position ScriptModel: Current script information ScriptModel: Line count (from lines collection) = 39 ScriptModel: Line count (from script provider) = 39 ScriptModel: Script length = 1572 ScriptModel: End position (from script provider) = Line: 38; Column: 2 ScriptModel: Last line length (from lines collection) = 2 ScriptModel: Caret position: Line: 37; Column: 40 Specified argument was out of the range of valid values. Parameter name: ordinalPosition System.ArgumentOutOfRangeException at _40._1(Int32 , Int32 , Int32 , _39 ) at _40._1(Int32 ) at _24._1(Int32 , Int32 ) at _24._1(Element , Int32 ) at _24._1(Int32 ) at _24._1(CaretPosition ) at RedGate.SqlPrompt.Engine.SqlPromptEngine._11() at RedGate.SqlPrompt.Engine.SqlPromptEngine._2(Object , FitPropertyChangeEventArgs ) Specified argument was out of the range of valid values. Parameter name: ordinalPosition System.ArgumentOutOfRangeException at RedGate.Util.EventHandlerSet.Fire(Object eventKey, Object sender, EventArgs args) at RedGate.Util.EventHandlerSet._1.Fire(Object eventKey, Object sender, EventArgs args) at _43._1(CaretPosition , CaretPosition ) at _43.set_CaretPosition(CaretPosition value) at RedGate.SqlPrompt.Engine.SqlPromptEngine.set_CaretPosition(CaretPosition value) SqlPromptEngine: Setting caret position to: Line: 37; Column: 18 SqlPromptEngine: Script info before setting caret position ScriptModel: Current script information ScriptModel: Line count (from lines collection) = 39 ScriptModel: Line count (from script provider) = 39 ScriptModel: Script length = 1572 ScriptModel: End position (from script provider) = Line: 38; Column: 2 ScriptModel: Last line length (from lines collection) = 2 ScriptModel: Caret position: Line: 38; Column: 2 SqlPromptEngine: Script info after setting caret position ScriptModel: Current script information ScriptModel: Line count (from lines collection) = 39 ScriptModel: Line count (from script provider) = 39 ScriptModel: Script length = 1572 ScriptModel: End position (from script provider) = Line: 38; Column: 2 ScriptModel: Last line length (from lines collection) = 2 ScriptModel: Caret position: Line: 37; Column: 18 Here is the stack trace from the .NET Framework error box: ************** Exception Text ************** System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: ordinalPosition at RedGate.Util.EventHandlerSet.Fire(Object eventKey, Object sender, EventArgs args) at RedGate.Util.EventHandlerSet._1.Fire(Object eventKey, Object sender, EventArgs args) at _43._1(CaretPosition , CaretPosition ) at _43.set_CaretPosition(CaretPosition value) at RedGate.SqlPrompt.Engine.SqlPromptEngine.set_CaretPosition(CaretPosition value) at _12._4(Object , EventArgs ) at _10.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) Hope this helps. / comments
I also got this error while clicking after selecting text with the mouse that was part of a comment. The part that was selected was the last part of a table name. The comment was on the end of the ...
0 votes