Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

Procedimento armazenado do SQL Server de chamada do MS Access


A resposta certa encontrada, deve ser assim:
Dim qdef As DAO.QueryDef
Set qdef = CurrentDb.CreateQueryDef("")
qdef.Connect = CurrentDb.TableDefs("[ANY LINKED TABLE TO MS SQL SERVER]").Connect
qdef.SQL = "EXEC sp_CopyData"
qdef.ReturnsRecords = False  ''avoid 3065 error
qdef.Execute