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
 General SQL Server Forums
 New to SQL Server Programming
 how to alter sp_addtype

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2007-03-21 : 11:57:12
hi fys,
I have created a user defined datatype using the following commands
sp_addtype 'balance_qty','int','null'

it was successfully created

just now i want to modity the datatype to numeric(28,3).if make a drop
sp_droptype 'balance_qty'
it throws a error:
Cannot drop type 'balance_qty' because it is currently in use.

can u pls suggest how to ovecome the above solution:
i need balance_qty numeric(28,2)

X002548
Not Just a Number

15586 Posts

Posted - 2007-03-21 : 12:05:29
change the data type in the table?


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -