Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Hi allI have a problem with a user who had a sql db on a laptop, basically they have a column(street) in a table(houses) which needs its length changing from Varchar(10) to a varchar(15).Does anyone know how to do this via a script of some kind, the msde DB does not have query analyser but can you do it via the comand prompt?Cheers in advance!Gopher
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2007-04-03 : 10:55:46
use isql to do it
alter table houses alter column street varchar(15)