How can we help you today? How can we help you today?
jela

Activity overview

Latest activity by jela

Hi Robert, thanks for the quick update on this topic. I'm looking forward to hearing from you with a solution as we currently would have to properly check every deployment script. Kind regards, jela / comments
Hi Robert, thanks for the quick update on this topic. I'm looking forward to hearing from you with a solution as we currently would have to properly check every deployment script. Kind regards, jela
0 votes
DROP INDEX entry when using option 'Ignore Indexes'
Hi All, today I stumbled across an issue when comparing tables. I knew from the start, that the source table would have some additional columns compared to the target. As the source is the producti...
2 followers 3 comments 0 votes
Error: Have no proxy for engine object
Hi all, we just tried to use SQL Dependency Tracker 2 on a SQL Server 2012 database. For the object which we chose (a stored procedure in our case) we changed the options to "Add objects that the s...
2 followers 2 comments 0 votes
SQL Differences pane - inconsistent results at first glance
Hello Red Gate team, earlier today I did a compare of two databases and wondered about the results shown in the SQL Differences pane. So for example in line 50 of the target table a column is liste...
2 followers 2 comments 0 votes
Hi Aaron, thanks for the reply and looking into things. MERGE INTO TableB AS dest USING TableA AS src ON dest.Col1 = src.Col1 AND dest.Col2 = src.Col2 WHEN MATCHED THEN UPDATE SET Col3 = src.Col3 , Col4 = src.Col4 WHEN NOT MATCHED BY TARGET THEN INSERT ( Col1 , Col2 , Col3 , Col3 ) VALUES ( SomeValue1 , SomeVlaue2 , SomeValue3 , SomeValue4 ); The above is an example statement, which unfortunately isn't 100% formatted as it is in SSMS. Anyway, I'll try to explain, what looks a bit odd. USING, ON, WHEN MATCHED, WHEN NOT MATCHED are indented, whereas I would understand them to be part of the MERGE statement itself. The keywords THEN UPDATE SET and THEN INSERT are each on a new line - I understand, that it comes down to personal preferences here, but I would see UPDATE SET and INSERT as actions, whereas THEN would belong to the WHEN clause itself. The openening bracket after VALUES is on a new line, whereas the opening bracket after INSERT is on the same line as the keyword. Maybe it becomes more clear, if I try to show, what I have in mind: MERGE INTO ... USING ... ON ... = ... AND ... = ... WHEN MATCHED THEN UPDATE SET ... WHEN NOT MATCHED BY TARGET THEN INSERT ( ... , ... ) VALUES ( ... , ... ) WHEN NOT MATCHED BY SOURCE THEN DELETE ; If there already is a way to achieve a formatting similar to this, I would appreciate some hints on how to accomplish this. Thanks again for your help. Kind regards, Jens. / comments
Hi Aaron, thanks for the reply and looking into things.MERGE INTO TableB AS dest USING TableA AS src ON dest.Col1 = src.Col1 AND dest.Col2 = src.Col2 WHEN MATCHED THEN UPDATE SET...
0 votes
Format MERGE statements
Hi, while searching the forum regarding format options for MERGE statements I only came across an entry for SQL Prompt 5:http://www.red-gate.com/MessageBoard/vi ... ompt+merge Are there any news re...
2 followers 5 comments 0 votes