Groups | Blog | Home
all groups > sql server dts > may 2006 >

sql server dts : DTS truncates Column names to 64


MDPILWL
5/31/2006 2:21:02 PM
I was told the max column name length for SQL 2000 was 128.
I am trying to create a DTS package to create a table and import data from
an excel spreadsheet where some of the column names are over 64 but under 100
in length but when finished creating the table and importing the data, I look
at the table and it has column names truncated to 64 charaters.
Is there a setting I need to make to use the max 128 limit?

TIA
MDPILWL
6/4/2006 10:10:02 PM
Thanx Allan,
but as I stated in my question below the problem is that I created a simple
DTS that imports some tables from an excell spreadsheet that have column
names between 80 and 100. It should alow those and not truncate them, correct?

Is there some setting in SQL or the DTS package itself that will allow those
names to at least go as high as the 128 limit?

Thank you
Jeff


[quoted text, click to view]
Allan Mitchell
6/4/2006 11:07:31 PM
Hello MDPILWL,

You are right the length cannot be greater than 128

CREATE TABLE T (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
int)


Msg 103, Level 15, State 4, Line 3
The identifier that starts with 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
is too long. Maximum length is 128.


And what is the definition of the destination table?

Allan



[quoted text, click to view]

Allan Mitchell
6/5/2006 7:21:45 AM
Hello MDPILWL,

And as I stated, the length of the column names will be being defined by
the CREATE TABLE statement. The column names should be being created as
they are in the XL Spreadsheet. I know of no setting in the XL driver that
would limit the name this way and I certainly know of no setting in DTS that
would do this.

Have you thought about creating the tables ahead of the import? That way
you KNOW what you will be getting.

If you want to use the wizard then make sure to have a look at the CREATE
TABLE statement being issued to SQL Server.

Allan

[quoted text, click to view]

MDPILWL
6/7/2006 11:32:44 AM
Hi Allan

The problem is the names of the columns are not always known and there are
many of them and the idea is to automate the creation of these tables. If I
were to edit or create the CREATE TABLE statement each time it would defeat
the purposs of using the DTS wizard and cost much time.

There surely must be a way to set the default to the max allowed!?!?!

Thanx
Jeff




[quoted text, click to view]
AddThis Social Bookmark Button