June 2008 Blog Posts
I’m sure there’s more than one technique for doing this, but this works for me, so I thought I’d share it. Depending on how you count them, there are three or four steps to debugging a .net 2.0 console application by using the IDE: Set a breakpoint in an appropriate spot If your solution has more than one project, set your console project as the start-up Set...
Persons familiar with TOAD for Oracle know about the fairly elaborate search function that lets you search for particular text in procedures, functions, views, column names, triggers, pretty much anything. There’s a way to do that in SQL Server as well, though you kind of have to "do it yourself." Use the query below. Make sure that you are "in" the database that you mean to search before you run this query. select * from sysobjects o, syscomments c where o.id=c.id and c.text like '%your search text here%' You can also limit your search...
This is something that a friend brought to me out of a Java book. It’s an interesting question that appears subtle at first but it’s obvious (I think) when you think about what’s really going on in the context of OO. I’ve seen this question also on BrainBench tests. It may even come up in an interview – trust me. The question goes something like this. "The below will compile but will give a runtime casting error. Why? Assume that class MyDerived is derived from class MyBase." MyBase theBase = new MyBase(); ...