0">
select d.name tablename,a.name fieldname,b.name typename,a.length length,a.isnullable is_null into #t
110
111
from syscolumns a, systypes b,sysobjects d
112
113
where a.xtype=b.xusertype and a.id=d.id and d.xtype='u'
114
115
116
117
declare read_cursor cursor
118
119
for select tablename,fieldname from #t
120
121
122
123
select top 1 '_tablename ' tablename,
124
125
&n