<p>What is the equivalent of the extended procedure 'xp_dirscan' in SQL Server 2005?</p>

```
xp_dirscan
```
seems to be an extended stored proc that performs a recursive directory search. If you have access to the DLL you could register it as an extended stored proc in SQL 2005.
Alternatively, you could code something that performs the same action using
```
xp_cmdshell
```
or a managed extended stored proc.