Solved

NEWBIE: TSQL to increase width of column?

Posted on 2006-10-31
3
501 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 142

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to select a spread of rows in SQL 8 54
ASP.NET 5 Templates 2 65
datetime in sql 6 25
What query can i write to find where a function is 4 21
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now