(I have written on this subject before, but because my LJ won't let me browse my archives without booting me out, you'll have to take my word for it.)
That and which--a challenge to writers everywhere. Reading submissions these last two months has really driven the fact home for me. I have only read TWO submissions this entire two month submission period that were not that/which challenged. So, after a long absence from these pages, I give you:
THE BOGWITCHY GUIDE TO THAT AND WHICH
THAT is a restrictive clause, part of a sentence you can't get rid of without changing the meaning, because it RESTRICTS some other part of the sentence. For example:
Mice that don't like cheese will never fit in with mouse society.
It doesn't matter whether or not this statement is true; what does matter is the THAT DON'T LIKE CHEESE cannot be taken out of the sentence without losing all meaning. It's a restrictive clause. Without that clause, the sentence says that no mice will ever fit into mouse society. WITH the clause, it's only those unfavorably disposed to cheese that won't.
WHICH is a non-restrictive clause, part of a sentence that can be left out (not which can be left out!) without changing the meaning. Non-restrictive clauses require a comma, or commas. It's an easy indicator. Restrictive clauses don't usually require commas.
The building, which stood on the corner of 1st and Grandview, was demolished in the Great Mouse Rebellion.
WHICH STOOD ON THE CORNER OF 1ST AND GRANDVIEW is the non-restrictive clause. It is an added bit of information that can be removed without actually changing the meaning of the sentence. And there is your biggest clue--if you can take out the clause without changing the general meaning of the sentence, use which.
The above is an example of a non-restrictive clause plonked down in the middle of a sentence. The ones tagged on to the end get a little trickier.
The building was demolished in the Great Mouse Rebellion, which was not a happy event for anyone.
With the comma + which, the above sentence says that the building was destroyed, and that its destruction was not a happy event for anyone.
Take out the comma in the above example, and now you need THAT:
The building was demolished in the Great Mouse Rebellion that was not a happy event for anyone.
--and the meaning of the sentence changes. It says that the Great Mouse Rebellion was the unhappy event.
See the difference?
The most insidious that/which challenge I have seen so often used lately is a misguided comma followed by an equally misguided WHICH.
They sat on the swing near the fountain, which stood surrounded by tall trees, like a miniature forest in the city center.
Why is WHICH wrong in this sentence? There are commas! But if you take out that clause, the sentence says that the swing near the fountain was like a miniature forest in the city center, not the tall trees. The sentence doesn't make sense. The sentence can indeed be rearranged to make that clause non-restrictive:
They sat on the swing near the fountain, which stood surrounded by tall trees like a miniature forest in the city center.
Or it could be written as a restrictive clause:
They sat on the swing near the fountain that stood surrounded by tall trees like a miniature forest in the city center.
Meh--I don't like either sentence. Each one gives a slightly different meaning, but clear enough and close enough to evoke the same image. Each is grammatically correct, but wordy. And that brings me to my last point--that and which tend to be filler words. I don't like filler words. They're the ones I end up delete-delete-deleting when I edit. They're words we lean on when connecting thought to image, image to thought. Even when used correctly, paragraph after paragraph of that and which bog a story down.
Like adverbs, I prefer to use that and which (especially which--it always sounds awkward to my inner-ear)sparingly. They're necessary. They're beneficial. They can do the job when called for; just be aware of how often you do the calling.
That and which--a challenge to writers everywhere. Reading submissions these last two months has really driven the fact home for me. I have only read TWO submissions this entire two month submission period that were not that/which challenged. So, after a long absence from these pages, I give you:
THE BOGWITCHY GUIDE TO THAT AND WHICH
THAT is a restrictive clause, part of a sentence you can't get rid of without changing the meaning, because it RESTRICTS some other part of the sentence. For example:
Mice that don't like cheese will never fit in with mouse society.
It doesn't matter whether or not this statement is true; what does matter is the THAT DON'T LIKE CHEESE cannot be taken out of the sentence without losing all meaning. It's a restrictive clause. Without that clause, the sentence says that no mice will ever fit into mouse society. WITH the clause, it's only those unfavorably disposed to cheese that won't.
WHICH is a non-restrictive clause, part of a sentence that can be left out (not which can be left out!) without changing the meaning. Non-restrictive clauses require a comma, or commas. It's an easy indicator. Restrictive clauses don't usually require commas.
The building, which stood on the corner of 1st and Grandview, was demolished in the Great Mouse Rebellion.
WHICH STOOD ON THE CORNER OF 1ST AND GRANDVIEW is the non-restrictive clause. It is an added bit of information that can be removed without actually changing the meaning of the sentence. And there is your biggest clue--if you can take out the clause without changing the general meaning of the sentence, use which.
The above is an example of a non-restrictive clause plonked down in the middle of a sentence. The ones tagged on to the end get a little trickier.
The building was demolished in the Great Mouse Rebellion, which was not a happy event for anyone.
With the comma + which, the above sentence says that the building was destroyed, and that its destruction was not a happy event for anyone.
Take out the comma in the above example, and now you need THAT:
The building was demolished in the Great Mouse Rebellion that was not a happy event for anyone.
--and the meaning of the sentence changes. It says that the Great Mouse Rebellion was the unhappy event.
See the difference?
The most insidious that/which challenge I have seen so often used lately is a misguided comma followed by an equally misguided WHICH.
They sat on the swing near the fountain, which stood surrounded by tall trees, like a miniature forest in the city center.
Why is WHICH wrong in this sentence? There are commas! But if you take out that clause, the sentence says that the swing near the fountain was like a miniature forest in the city center, not the tall trees. The sentence doesn't make sense. The sentence can indeed be rearranged to make that clause non-restrictive:
They sat on the swing near the fountain, which stood surrounded by tall trees like a miniature forest in the city center.
Or it could be written as a restrictive clause:
They sat on the swing near the fountain that stood surrounded by tall trees like a miniature forest in the city center.
Meh--I don't like either sentence. Each one gives a slightly different meaning, but clear enough and close enough to evoke the same image. Each is grammatically correct, but wordy. And that brings me to my last point--that and which tend to be filler words. I don't like filler words. They're the ones I end up delete-delete-deleting when I edit. They're words we lean on when connecting thought to image, image to thought. Even when used correctly, paragraph after paragraph of that and which bog a story down.
Like adverbs, I prefer to use that and which (especially which--it always sounds awkward to my inner-ear)sparingly. They're necessary. They're beneficial. They can do the job when called for; just be aware of how often you do the calling.

Comments
Thanks for sharing, Terri :)
Although... are you sure we can't just say "Mouses wot doesn't like cheese will never..." ? ;)
I like your way bestest wot, wot!
But yay! Glad you liked it!
that/which really just pisses me off.
Oh, no offense to you.
The building was demolished in the Great Mouse Rebellion,
which was not a happy event for anyone.
We have two antecedents there,
and my inclination is to assume that immediacy is meaningful;
that is, I see the nearest antecedent as the one being referenced,
regardless of any explanation of how "which" ought to be used,
and what is to be inferred from that proper use.
I'm a firm believer in avoiding structural ambiguity.
The building's demolition, not a happy event for anyone,
occurred during the Great Mouse Rebellion.
There can be no misunderstanding of that.
People were explaining this rule before either of us were born;
if it still requires explanation, it's a crappy rule
and ought to be abandoned.
BTW...what do you have against mice? :P
Tweeting this!
(I've got a fire in my belly, as you may have heard)
Mice that don't like cheese will never fit in with mouse society.
Wouldn't it be better to say
Those mice who don't like cheese will never fit in with mouse society.
?
They sat on the swing near the fountain, which stood surrounded by tall trees like a miniature forest in the city center.
Would work much better as
They sat on the swing, near the fountain, surrounded by tall trees, like a miniature forest in the city center.
because the structure itself minimizes the potential for ambiguity.
One would have to be an inveterate grammarian
to argue that anyone would infer that
They were sitting like a miniature forest,
or that either the swing or the fountain
resembled a forest in some mystical way.
Anyway, it's not you I'm mad at, really;
you're just an innocent pawn of the verbal oppressors
who used rules like this to justify demeaning
the pragmatic speakers of a less erudite English.
If you're advocating the eradication of WHICH in this usage, I'm behind that! I seriously find it jarring and/or wordy/telly whenever I come across it.
And this is one of those rules that can and should be bent for fictional purposes. If my main character is a talking cat named Snowy, I'd use who. If my main character was a dragon, I'd use who. If my main character was an Ent, I'd use who.
To me, a sentient character gets a who, no matter if it's human, cat, or wood.
Glad you found this helpful!