Je suis en cours d'exécution commande suivanteSélectionner les fichiers du dossier mulitple datent de SQL Server
DECLARE @sql varchar(MAX);
DECLARE @path varchar(255);
SET @path = 'E:\BILL PRINT\RAVI\'
SET @sql = 'SELECT * FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',
''Excel 12.0; Database='[email protected]+''+'*.xlsx;'+' HDR=YES; IMEX=1'',
''SELECT * FROM [sheet1$]'')';
SELECT @sql
EXEC (@sql)
Mais je reçois cette erreur:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "The Microsoft Access database engine could not find the object 'E:\BILL PRINT\RAVI*.xlsx'. Make sure the object exists and that you spell its name and the path name correctly. If 'E:\BILL PRINT\RAVI*.xlsx' is not a local object, check your network connection or contact the server administrator.".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
Est-ce possible d'importer des données à partir des fichiers Excel spécifiés?
S'il vous plaît aidez-moi
oui c'est possible, et je suppose que vous devriez supprimer * char du chemin. –
pas encore de problème exsist – user8205502