Really the code has evolved to a point that it is hard for a homeowner (even with advice from yahoo answers) to be able to be aware of all the intricacies of the code (grounding, gfci, afci, 4 wire range circuits). But...
If you are not modifying the wire between the switchbox and the light you do not need to add a ground to that connection. All circuit conductors (black and white) must be spliced in a box, you can use the existing switch box, but you may not need to worry about the switches, often lights are wired hot from fixture to fixture, the switches will be connected to a "switch loop", which is just a hot from the ceiling and switchleg back up to the light.
If you are trying to extend a 2 wire circuit with 3 wire the National Electrical Code (issued by the National Fire Protection Association) Says:
250.130 Equipment Grounding Conductor Connections. ...
(C) Nongrounding Receptacle Replacement or Branch Circuit Extensions. The equipment grounding conductor of a grounding-type receptacle or a branch-circuit extension shall be permitted to be connected to any of the following:
(1) Any accessible point on the grounding electrode system as described in 250.50
(2) Any accessible point on the grounding electrode conductor
(3) The equipment grounding terminal bar within the enclosure where the branch circuit for the receptacle or branch circuit originates
(4) For grounded systems, the grounded service conductor within the service equipment enclosure
So to interpret those 4 points into normal english, you have to connect it to either (1)building steel, ground rod or water pipe within 5 feet of entering the building (2) the wire going to the first point, which elsewhere says need to be irreversible (crimped), (3)(4) Back to the ground point in the electrical panel. Nowhere does the code allow a separate ground rod not connected to the grounding electrode system.
If you are just replacing receptacles on a 2 wire circuit the code says:
NEC 406.3(D)(3) Where attachment to an equipment grounding conductor does not exist in the receptacle enclosure, the installation shall comply with (a),(b), or (c)
(a) A non-grounding-type receptacle(s) shall be permitted to be replaced with another non-grounding type receptalce(s)
(b) A non-grounding-type receptacle(s) shall be permitted to be replaced with a GFCI type of receptacle(s). The receptacles shall be marked "No Equipment Ground"....
(c) A non-grounding-type receptacle(s) shall be permitted to be replaced with a grounding-type receptacle(s) where supplied through a GFCI....shall be marked "GFCI Protected" and "No Equipment Ground"....