English 中文(简体)
进出口数据集
原标题:SQL Server Importing Excel data ..Confusion in selecting the Datatype in Import and Export Wizard
  • 时间:2011-11-03 20:45:32
  •  标签:
  • sql-server

The question is regarding SQL Server 2010 Import and Export Wizard. I am in a strange situation.

I am trying to import Excel data into my database. One of the columns in Excel is Part Number which can have values like (418138031, A1801354B).

现在,Import and Export Wizard -> at ∗ E/CN.6/2009/1。 第......栏中的数据类型,只有<代码>A1801354B等值进口到我的数据库。 如果我选择<代码>float,则像4181 38031这样的数值只输入我的数据库。

What should I do if I want to retrieve both types of values i.e. 418138031, A1801354B.

请帮助我。

Thanks, Vanu

问题回答

This is an issue with the crappy excel (Jet) driver. My recommendation would be to save the file as a csv and use the flat-file source instead. Otherwise you have to wrestle with what the excel driver heuristics decide is the data type, and get the behavior you ve described...





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签