Solved

NEWBIE: TSQL to increase width of column?

Posted on 2006-10-31
3
503 Views
Last Modified: 2008-02-26
Dear Experts,

How do I increase the width of an existing field using TSQL?

Thanks,
BrianMc1958
0
Comment
Question by:BrianMc1958
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 17841854
alter table yourtable alter yourcolumn varchar(newsize)
0
 
LVL 14

Assisted Solution

by:mherchl
mherchl earned 25 total points
ID: 17841877
ALTER TABLE yourtable ALTER COLUMN yourcolumn varchar(newsize)
0
 

Author Comment

by:BrianMc1958
ID: 17841896
Thanks, folks.
--BrianMc1958
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question