Mar 30, 2006 #1 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?
Mar 30, 2006 #2 vongrunt Programmer Mar 8, 2004 4,863 HR 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] Upvote 0 Downvote
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]