Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Import excel to Sql server - Datatype Changes

Author  Topic 

thiyasoft
Starting Member

1 Post

Posted - 2006-07-12 : 01:26:28
Hi,

I exported the sql server database to excel file .xls.

when I tried to import the xls file to sql server, i found that datatype are changed. For example if oruiginal datatype is binary it automatically changed to nvarchar.

How do i fix this problem. Help needed..

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2006-07-12 : 08:53:37
Why did you output to Excel?!?

binary isn't a type in Excel, so you will need to convert the data. Look up CONVERT and CAST in Books Online..
Go to Top of Page
   

- Advertisement -