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.
| Author |
Topic |
|
cwtriguns2002
Constraint Violating Yak Guru
272 Posts |
Posted - 2008-02-06 : 22:43:50
|
| hi everyone...how could i execute this query if the hrsrate is not yet altered to money. The original datatype is numeric(9,2)Alter table hrEmpLeaveMonetize alter column hrsrate moneythanksRON________________________________________________________________________________________________"I won't last a day without SQL" |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-02-06 : 22:51:19
|
| IF (SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='hrEmpLeaveMonetize' AND COLUMN_NAME='hrsrate')<>'money'Alter table hrEmpLeaveMonetize alter column hrsrate money |
 |
|
|
|
|
|