If you were looking for a reason to dump DAAB, it looks like the good parts have already been folded into ADO.NET 2.0.
The ADO.NET data providers in .NET 2.0 provide factory and common ADO.NET classes that make it easy to keep your code independent from a particular ADO.NET data provider or database product.
In my case diddly squat….
Back in the Amiga days, SteveX was a name every programmer knew from his VirusX, ScreenX, PointerX applications. These days, he’s in the .NET world and has a cool link for string formatting in C#.
There’s just something about RegEx that makes my ears bleed. Fortunately other people get it. Here’s an example of how to filter text out of an expression, courtesy of Jeff Atwood’s Coding Horror….
For example, if the word fox was what I wanted to exclude, and the searched text was:
The quick brown fox jumped over the lazy dog.
… and I used a regular expression of [^”fox”] (which I know is incorrect) (why this doesn’t work I don’t understand; it would make life SO much easier), then the returned search results would be:
The quick brown jumped over the lazy dog.
Regular expressions are great at matching. It’s easy to formulate a regex using what you want to match. Stating a regex in terms of what you don’t want to match is a bit harder.
One easy way to exclude text from a match is negative lookbehind:
But not all regex flavors support negative lookbehind. And those that do typically have severe restrictions on the lookbehind, eg, it must be a simple fixed-length expression. To avoid incompatibility, we can restate our solution using negative lookahead: