In Oracle: 4000
In MSSQL (2000): 8000
in MSSQL (2005): MAX = 2GB
In all the databases, there is NO waste of space.
Main Topics
Browse All TopicsWhat is the maximum size of VARCHAR2(),
Is it 3000?
If yes,
If I create table with VARCHAR2(3000) is it wasting the memory or it will cover only what space I used?
For example,
Create table x (name VARCHAR2(3000));
and
Insert into x (name) values (‘SQL’);
I used only 3, Does this waste 2997 or not?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi javamate06,
performance is also affected by having to store the length of the data with the column...
but that's not usually a concern if your storing a lot of data...
a general rules of thumb from db2/udb
if its less than 30 bytes define it as char to its maximum value
if it generally varies by less than 10-20 bytes use char
hth
Cheers!
Business Accounts
Answer for Membership
by: mgh_mgharishPosted on 2006-07-16 at 00:42:15ID: 17116765
Hi javamate06, in which database ? Oracle ?
tax/dataty pes.html
If you use VARCHAR2, it won't waste any space.
http://www.ss64.com/orasyn
---
Harish