dbTalk Databases Forums  

char vs varchar?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss char vs varchar? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick
 
Posts: n/a

Default char vs varchar? - 07-19-2005 , 10:09 PM






I have a big cube the I cannot put too much aggregations, otherwise I will
get memory erro: server run low on memory.... I know all dimension data will
be read in memory.

However, I found one of the table (200 rows) have a lot of columns, which
are used for levels of dimension, use char(100), char(50) as data type. The
actual strings in these columns are usually far less then the number defined.
If it's possible to use less memory by changing the char to varchar? I am not
sure if SQL Server will automatically save space when reading char(xxx) into
memory.

There are other dimension table that has thousands rows, but it already use
varchar.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.