?
Solved

NEWBIE: TSQL to increase width of column?

Posted on 2006-10-31
3
Medium Priority
?
517 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 400 total points
ID: 17841854
alter table yourtable alter yourcolumn varchar(newsize)
0
 
LVL 14

Assisted Solution

by:mherchl
mherchl earned 100 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

830 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