Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Find out number of times my Archive DB is getting hit through view.

$
0
0

Hi All,

I'm looking for a way to find out number of times my Archive DB is getting hit through view.

Here is the scenario. I have a view created with union all like below

Create View Myview
AS
Select ColumnA, ColumnB From ActiveDB..XYZ
UNION ALL
Select ColumnA, ColumnB From ArchiveDB..XYZ 

ActiveDB..XYZ table has 1 Year of Data

ArchiveDB..XYZ is having older than 1 Year Data.

If my user tried to access the old data which is older than 1 Year through view. Is there any way can we say that data accessed from Archive Database and how many times the archived is hit?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>