Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Change Datatype Values

$
0
0

I am running Microsoft SQL Server 2012.

I had created a database named "Company-Data" that contains a table named "tblStock". This table contains several columns such asID, Product, Quantity. The datatype for the column "Quantity" isINT.

I had entered 100 records to the table, now I want to change the datatype for the column "Quantity" fromINT to MONEY.

How can we do this without loosing the data that has been entered the the column previously. Can someone provide me a query so I could understand it in a better way, thanks.


Viewing all articles
Browse latest Browse all 7129

Trending Articles