Moves
Rapid Spin allows Sandshrew to aid its teammates by removing hazards. Earthquake is Sandshrew's STAB move of choice, hitting a lot of Pokemon quite hard. Knock Off is a great utility option, hitting Ghost-types that try to spinblock, notably Pumpkaboo, a Pokemon that Drilbur cannot heavily damage. It also removes opposing Eviolites, Choice Scarves, and Berry Juices, making walls and sweepers easier to deal with. Stealth Rock is a fantastic move; Sandshrew's more offensive teammates can benefit from foes being weakened by it. Rock Slide can be used over Stealth Rock if your team already has a hazard setter, allowing Sandshrew to hit Larvesta, Flying-types, and Ice-types.
Set Details
The EVs provide Sandshrew with lots of bulk, hitting 23 / 18 / 10 before Eviolite, with the remaining EVs being invested in Attack and Speed, hitting 16 Attack and 11 Speed, to let Sandshrew outspeed Pokemon such as Timburr and Pumpkaboo. Eviolite boosts Sandshrew's bulk and works well with the EVs, which make Sandshrew's Defense and Special Defense even numbers. Sandshrew's abilities rather contradict its role, but if the opponent uses a sand team, Sandshrew becomes blisteringly fast thanks to Sand Rush.
Usage Tips
Sandshrew's impressive Defense stat allows it to switch into a majority of non-super effective physical moves; take advantage of this by setting up Stealth Rock or removing hazards with Rapid Spin while the foe switches out. If Stealth Rock is used over Rock Slide, be wary of Fletchling, as it is immune to Earthquake and lacks an item, weakening Knock Off's power. Although Stealth Rock and Rapid Spin are great moves, they make Sandshrew rather predictable, as it'll either lead or switch in shortly after the opponent sets hazards; be sure to play smartly with Sandshrew, for example nailing the obvious Pumpkaboo switch-in with a Knock Off as opposed to simply using Rapid Spin.
Team Options
Sandshrew pairs well with Fire-, Flying-, and Bug-types, as it can remove Stealth Rock from the field. Spikes users, such as Trubbish and Ferroseed, can partner with Sandshrew to form an effective hazard-setting core. Ferroseed, in particular, can handle the Water- and Grass-type attacks aimed at Sandshrew. Pumpkaboo can spinblock, keeping Sandshrew's Stealth Rock on the field; it also resists Water- and Grass-types attacks aimed at Sandshrew. Pawniard deters Defog users, as its ability, Defiant, gives it a large Attack boost when hit by Defog. Clerics such as Spritzee and Lickitung can compensate for Sandshrew's lack of recovery, providing it with Wish and Heal Bell / Aromatherapy support. RestTalk Munchlax can handle Foongus and special Water-types, all while absorbing status, particularly burn, that Sandshrew doesn't appreciate.