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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Alteriing a column length on an msde database?

Author  Topic 

Gopher
Yak Posting Veteran

83 Posts

Posted - 2007-04-03 : 10:53:14
Hi all

I 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)



KH

Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-04-03 : 12:46:38
cross post


http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81590

And I like Nigel's Article about why ALTER is not a good idea

http://www.mindsdoor.net/SQLAdmin/AlterTableProblems.html

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -