Help Again: Find out the data-type of a column

Pho3nix

The Legend
Joined
Jul 31, 2009
Messages
32,885
Reaction score
3,057
Location
On the toilet
Need to convert a nText column in SQL but dont know which column it is..well what I'm trying to convert is a view.. Could that be the problem? Any help would be appreciated.
 
Tried the standard stuff like this?

select st.*,sc.* from sysobjects so
inner join syscolumns sc
on sc.id = so.id
inner join systypes st
on st.xtype = sc.xtype
and st.xusertype = sc.xusertype
where so.name = 'YOUR VIEW/TABLE/OBJECT'
 
Last edited:
SP_HELP 'your table name'
will give you the column names and type within that table
 
Top
Sign up to the MyBroadband newsletter
X