Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a Column Size/Type

Status
Not open for further replies.

mdr2271

Programmer
Sep 14, 2005
42
US
Is it possible to directly change a column's type or size in a SQL table once it has been created?
 
Yup, with

ALTER TABLE myTable ALTER COLUMN myColumn datatype(size)...

... assuming conversion over existing column data is possible without errors.

------
[small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top