dbTalk Databases Forums  

Excel Source Field Name not Copied to SQL destination

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Excel Source Field Name not Copied to SQL destination in the microsoft.public.sqlserver.dts forum.



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

Default Excel Source Field Name not Copied to SQL destination - 12-04-2003 , 05:17 AM






Hi,

I'm importing Excel file into SQL sever.
At the Column Mappign and Transformation screen, I see
that the Destination Field Name didn't follow the Excel
Column Names at all.

Also the data type is nvarchar and size is 255 despite
Excel column width being changed to less than 255.


Does anyone know if there's a solution to the Field
Name ,Data Type and Size issue ?



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Excel Source Field Name not Copied to SQL destination - 12-04-2003 , 05:49 AM






When you "Define" the destination you can change the definition.
nvarchar(255) is the default.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"El" <elmoemail (AT) yahoo (DOT) com.sg> wrote

Quote:
Hi,

I'm importing Excel file into SQL sever.
At the Column Mappign and Transformation screen, I see
that the Destination Field Name didn't follow the Excel
Column Names at all.

Also the data type is nvarchar and size is 255 despite
Excel column width being changed to less than 255.


Does anyone know if there's a solution to the Field
Name ,Data Type and Size issue ?





Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: Excel Source Field Name not Copied to SQL destination - 12-04-2003 , 07:51 PM



Thks Allan..

but I like to konw is this the only way (meaning manually
change each of the fields in the table..there could be
many fields in a table) ?



Quote:
-----Original Message-----
When you "Define" the destination you can change the
definition.
nvarchar(255) is the default.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"El" <elmoemail (AT) yahoo (DOT) com.sg> wrote in message
news:0a6001c3ba58$3f0c3980$a101280a (AT) phx (DOT) gbl...
Hi,

I'm importing Excel file into SQL sever.
At the Column Mappign and Transformation screen, I see
that the Destination Field Name didn't follow the Excel
Column Names at all.

Also the data type is nvarchar and size is 255 despite
Excel column width being changed to less than 255.


Does anyone know if there's a solution to the Field
Name ,Data Type and Size issue ?




.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Excel Source Field Name not Copied to SQL destination - 12-05-2003 , 03:13 AM



In general cells in an Excel Spreadsheet are formatted as General. If you
format the cells to the datatypes you require then the driver is a lot
better at picking a better datatype for the destination


also look at

Excel Inserts Null Values
(http://www.sqldts.com/default.aspx?254)

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

<anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thks Allan..

but I like to konw is this the only way (meaning manually
change each of the fields in the table..there could be
many fields in a table) ?



-----Original Message-----
When you "Define" the destination you can change the
definition.
nvarchar(255) is the default.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"El" <elmoemail (AT) yahoo (DOT) com.sg> wrote in message
news:0a6001c3ba58$3f0c3980$a101280a (AT) phx (DOT) gbl...
Hi,

I'm importing Excel file into SQL sever.
At the Column Mappign and Transformation screen, I see
that the Destination Field Name didn't follow the Excel
Column Names at all.

Also the data type is nvarchar and size is 255 despite
Excel column width being changed to less than 255.


Does anyone know if there's a solution to the Field
Name ,Data Type and Size issue ?




.




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.