Activity overview
Latest activity by npensa
squigley said:
Good Afternoon! Regex tends to be better at matching things versus not matching things. Given that, we believe that a negative lookahead would be the way to go. It would look something like which
will actually only match the first [ (which should cause the item to be included as there is a match) but it will only match that when that is NOT followed by dbo.].[Broadcast% (using the SQL wild card string to show what I mean rather than it actually being the percent sign) ^\[(?!dbo\]\.\[Broadcast.*)
[image] The second one is similar just having the .* before and after ist: ^\[(?!dbo\]\.\[.*ist.*)
[image]
Can you let me know if that helps you out? Thanks!
This is exactly what I was looking for! Thank you! / comments
squigley said:
Good Afternoon!Regex tends to be better at matching things versus not matching things. Given that, we believe that a negative lookahead would be the way to go.It would look som...
Help with regex to filter out tables
We're trying to filter out some tables from SQL Data compare using the command line in PowerShell and some regular expressions, and we keep getting syntax errors for them.We tried the one below, wh...
SQL Data Compare allowed us to trim down the backup time of one of our databases by only copying the different rows between them instead of migrating the whole database. / comments
SQL Data Compare allowed us to trim down the backup time of one of our databases by only copying the different rows between them instead of migrating the whole database.
How to limit a SQL Data Comparison based on the first character of the table name?
I'm creating a script to migrate the changes from one database to another one, but the database is very large. I'd like to limit the script based on the first character of the table name (Tables b...