Rx_
Nothing In Moderation
- Local time
- Today, 11:00
- Joined
- Oct 22, 2009
- Messages
- 2,803
Any ideas of how to call a Table Based Function from MSAccess on SQLServer when there is an ALTER?
In SQL Server - there is a table based function that must be run every time the base table data changes to update a couple of dozen views.
These views are connected by Linked Tables to MSAccess.
While a SP can be run on SQL Server from MSAccess
it appears that SQL Server no longer allows Access to call a remote ALTER.
These records in the views are tiny (under 50,000 rows).
The objective is to run the ALTER VIEW before pulling the data from these views. MSAccess has a linked table to each of the two dozen business views.
This should be of interest to Azure users as well.
<for each Org in>
select * from Capital.dbo.Organizations
where is_included = 1
ALTER VIEW [dbo].[VW_DBUploadBus]
-- select * from dbo.VW_DBUploadBus
AS
select * from dbo.tfn_DBUploadByOrg('Bus')
GO
..... (same alter view for each of couple dozen orgs e.g. 'Bus'
In SQL Server - there is a table based function that must be run every time the base table data changes to update a couple of dozen views.
These views are connected by Linked Tables to MSAccess.
While a SP can be run on SQL Server from MSAccess
it appears that SQL Server no longer allows Access to call a remote ALTER.
These records in the views are tiny (under 50,000 rows).
The objective is to run the ALTER VIEW before pulling the data from these views. MSAccess has a linked table to each of the two dozen business views.
This should be of interest to Azure users as well.
<for each Org in>
select * from Capital.dbo.Organizations
where is_included = 1
ALTER VIEW [dbo].[VW_DBUploadBus]
-- select * from dbo.VW_DBUploadBus
AS
select * from dbo.tfn_DBUploadByOrg('Bus')
GO
..... (same alter view for each of couple dozen orgs e.g. 'Bus'
Last edited: