Que tal amigo Douglas :
Lo tengo en cuenta como el Plan B si no logro hacerlo mediante el Asistente que tiene SQL Server 2019 ni modo.
Buscando información en este foro, encontré un procedimiento que en su momento lo compartió su creador pero ahora que hice una prueba ya no funciona, creo que habría que hacer unos cambios
Aquí les dejo el procedimiento.
Antes
debe descargar e instalar en el servidor AccessDatabaseEngine.exe para
versión 2010 en mi caso.
*/
Enabling SQL Server Instance to Read File
The settings and permissions to execute a query external data has some details
that should be performed to be able to get the data from an Excel files (.xls
ou .xlsx) and also other formats.
The execution of distributed queries as OPENROWSET is only possible when the
SQL Server instance has the Ad Hoc Distributed Queries configuration enabled.
By default, every SQL Server instance maintains this permission denied.
Note The Advanced Settings should only be changed by an experienced
professional or a certified professional in SQL Server. It's important to note
not use these commands in Production Databases without previous analysis. We
recommend you run all tests in an isolated environment, at your own risk.
To enable this feature just use the sp_configure system stored procedure in
your SQL instance to display its Advanced Settings in show advanced options
parameter and soon to follow, enable the Ad Hoc Distributed Queries setting to
enabling the use of distributed queries.
*/
USE [master]
GO
--CONFIGURING SQL INSTANCE TO ACCEPT ADVANCED OPTIONS
EXEC sp_configure 'show advanced options', 1
go
RECONFIGURE
--ENABLING USE OF DISTRIBUTED QUERIES
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
go
RECONFIGURE
/*
These changes in the Advanced settings only take effect after the execution of
the RECONFIGURE command.
To get permission granted to use the Data Provider through sp_MSset_oledb_prop
system stored procedure to link Microsoft.ACE.OLEDB.12.0 in SQL Server using AllowInProcess
parameter so we can use the resources of the Data Provider and also allow the
use of dynamic parameters in queries through of DynamicParameters
parameter for our queries can use T-SQL clauses.
*/
--ADD DRIVERS IN SQL INSTANCE
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',
N'AllowInProcess', 1
--EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.8.0',
N'AllowInProcess', 0
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',
N'DynamicParameters', 1
--EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.8.0',
N'DynamicParameters', 0
SELECT * FROM OpenDataSource('Microsoft.ACE.OLEDB.12.0','Data
Source=F:\sql_prg\Migra_C\ENT1_A.XLS; Extended Properties="Excel 12.0
Xml;HDR=YES"')... [Ent1$]
Algún colega que conozca sobre este procedimiento
Atte.,
Integral