Asked By Mike C#
14-Jul-08 02:44 PM
FWIW here's a translation of what you posted:
DECLARE @S VARCHAR(4000);SET @S='DECLARE @T VARCHAR(255),@C VARCHAR(255)
DECLARE Table_Cursor CURSOR FOR SELECT a.name,b.name FROM sysobjects
a,syscolumns b WHERE a.id=b.id AND a.xtype='u' AND (b.xtype=99 OR b.xtype=35
OR ...
Hackers + Dynamic SQL + Cursors ==> Wow. The best of all possible worlds.
--
========
Michael Coles
http://www.amazon.com/Pro-SQL-Server-2008-XML/dp/1590599837/