SQLSERVER导入EXCEL文件

Insert into test(id,name) Select idd,names FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0','Data Source="D:\test.xls"; User ID=;Password=;Extended properties=Excel 5.0')...[Sheet1$]

1)	启用安全策略
exec sp_configure 'show advanced options',1  
reconfigure  
exec sp_configure 'Ad Hoc distributed Queries',1  
reconfigure

2)	关闭安全策略
exec sp_configure 'Ad Hoc distributed Queries',0  
reconfigure  
exec sp_configure 'show advanced options',0  
reconfigure

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...