Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Check Existance of User Defined Datatypes

Author  Topic 

ganeshkumar08
Posting Yak Master

187 Posts

Posted - 2009-01-03 : 03:54:42
Hi All,

I have a problem in checking the existance of already created User Defined datatype. How to check whether the user defined Data type is already created.

Thanks
Ganesh

Solutions are easy. Understanding the problem, now, that's the hard part

ganeshkumar08
Posting Yak Master

187 Posts

Posted - 2009-01-03 : 06:23:58
i got the answer
-- Where SSN is User Defined Data Type name
If Exists (select * from dbo.systypes Where Name = 'SSN')
Print 'UDT Exists'
Else
Print 'UDT Not Exists'


Solutions are easy. Understanding the problem, now, that's the hard part
Go to Top of Page
   

- Advertisement -