dbTalk Databases Forums  

Find columns of a particlar data type !

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Find columns of a particlar data type ! in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KKSMS
 
Posts: n/a

Default Find columns of a particlar data type ! - 08-26-2005 , 02:28 PM






I want to find the columns in a database which are of a particular user
defined data type.

Is the following query correct for this purpose?

SELECT SO.NAME, SC.NAME, ST.NAME
FROM SYSOBJECTS SO
INNER JOIN Syscolumns SC ON SC.ID = SO.ID
INNER JOIN Systypes ST ON ST.usertype = SC.usertype
where ST.NAME LIKE 'DROPDOWN'


Thanks in advance for your reply.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.