if exists(select 1 from sysobjects where id=object_id('[dbo].[A]') and xtype='U')
drop table [dbo].[A]
go
select * into [dbo].[A] from openrowset('Microsoft.Jet.oledb.4.0','excel 8.0;database=c:\data51532.xls','select * from [Sheet1$]')
select * from [dbo].[A]
drop table [dbo].[A]
go
select * into [dbo].[A] from openrowset('Microsoft.Jet.oledb.4.0','excel 8.0;database=c:\data51532.xls','select * from [Sheet1$]')
select * from [dbo].[A]
解决方案 »
- 请问一个简单的联表问题
- 数据库查询思路
- [Microsoft][ODBC SQL Server Driver]逾時終止
- 如何统计新闻总数?
- 怎么在 Sql server 2005 report services 的 report 中 get 到登陆用户的认证信息
- 有关Sql IIF()函数的问题,大家来帮忙的说.
- 怎么办?
- Cannot resolve collation conflict for equal to operation.
- 急问查询结果列名和内容合并问题!!!
- 不用游标写过程, 比较难
- 储存过程中的一个标记看不懂
- 每一次用到动态SQL语句,写成这样,不出错,也没有得到数据集?请高手指点!
或者给个例子?