Excel导入Sql Server数字导入问题解决

 

1.将单元格格式设置为 常规
2.导入的sql语句

use test
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
go
SELECT * INTO spacefield
FROM OpenDataSource
('Microsoft.Jet.OLEDB.4.0','Data Source="D:\导入\spacefield.xls";Extended properties="Excel 5.0;HDR=Yes;IMEX=1;"')...['spacefield$']

 

3.通过实验,数值,文本导入之后都没问题了。

相关文章:

  • 2021-04-21
  • 2021-08-17
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2021-09-20
  • 2021-12-04
  • 2021-07-05
猜你喜欢
  • 2021-08-12
  • 2021-07-09
  • 2021-06-20
  • 2021-12-28
  • 2021-12-27
  • 2021-06-29
  • 2021-12-08
相关资源
相似解决方案