SteveMac32
Programmer
Hi all
A rather simple problem but I have not touched SQL for 2 years and I am slowly getting back to it, so am a bit unsure of what could be simple problems.
I have a populated existing Money column in a table that now has to change to a datatype of Decimal(17,7)
Can I just do an Alter Table keeping the columns name and change the datatype? Will this have any affect on the data.
I am pretty sure this will be ok but am not 100% can anyone confirm this or have a better solution.
ALTER TABLE Account
ALTER COLUMN UnitPrice
Decimal(17, 7)
Thanks
Steve
Slowly getting back to sql
A rather simple problem but I have not touched SQL for 2 years and I am slowly getting back to it, so am a bit unsure of what could be simple problems.
I have a populated existing Money column in a table that now has to change to a datatype of Decimal(17,7)
Can I just do an Alter Table keeping the columns name and change the datatype? Will this have any affect on the data.
I am pretty sure this will be ok but am not 100% can anyone confirm this or have a better solution.
ALTER TABLE Account
ALTER COLUMN UnitPrice
Decimal(17, 7)
Thanks
Steve
Slowly getting back to sql