Solved

MSSQL Column Name Size

Posted on 2004-09-30
8
493 Views
Last Modified: 2012-06-21
Hi,
I'm looking fora way to increase the Column Name size in MSSQL which is currently limited to 128 char. I'm trying to auto create TABLE with variable column name in MSSQL. Thus the column name length will be more than 128. Is there a way?
Thanks
0
Comment
Question by:tuckkhai
8 Comments
 
LVL 3

Expert Comment

by:topazg
ID: 12188725
I am unsure, I know some other systems such as sybase have a 255 character field name limit, but I would have thought that whatever this limit is it would be unchangable.

Depending on what you are trying to do, it seems like a 128 character column name could prove extremely unwieldy whenever you try to get information back out - why exactly are you trying to achieve by doing this?
0
 

Author Comment

by:tuckkhai
ID: 12188768
I'm trying to transfer the data of OLAP cube into flat table. Thus, the column name will be the dimension unique name. I have to use unique name due to that the same name may occur in different level of the cube. So, i really hoping to get a solution for this. Thanks
0
 
LVL 12

Accepted Solution

by:
geotiger earned 100 total points
ID: 12189690
I really discourage you to use column names longer than 128 chars. You could use none-discriptive column names in tables and display the discriptions for columns in OLAP. You just need to create a meta data about your tables with description for each of your columns. I am not sure whether this can be done in mySQL, but I have done this using Brio's OnDemand server with Oracle.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 34

Expert Comment

by:arbert
ID: 12192301
I agree--anything that large is almost not usable by an end user or many reporting applications....If you really need something like this, create a cross reference table that references the "chopped" column name with the long OLAP column name.
0
 

Author Comment

by:tuckkhai
ID: 12196389
I'm interested in the Meta Data concept by geotiget. I'm not using MySQL but using Microsoft SQL Server(MSSQL). I'm had thaught about the cross reference table commented by arbert, but i'm looking at something better, something like the metadata concept proposed by geotiger.
Thanks
0
 
LVL 34

Assisted Solution

by:arbert
arbert earned 100 total points
ID: 12197172
The metadata that SQL Server supplies (at this point) is very good--you get descriptions that you add via an extended stored proc and that's about it.  That's why I suggested a cross reference table  this way you can also collect any of the additional information you require.

Good modeling tools also allow you to collect meta data.  There are also third party applications that specifically handle metadata.

But, at this point, I wouldn't rely on built in SQL Server functionality to handle meta data....
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes some very basic things about SQL Server filegroups.
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

19 Experts available now in Live!

Get 1:1 Help Now