Dear all

I have written a windows service that connects to an Oracle 9 database on
start up. I use a DataTable to hold a set of near static data.

Recently there have been some overnight external batch updates to this table
and my DataTable needs to be refreshed. Since this change of circumstances I
have been restarting my service in the morning. I need to find a way to
fresh my data object without restarting the windows service. I would be
grateful for any pointers.

Regards,
Wazir

Re: Refreshing database cache by Miha

Miha
Thu Feb 19 08:20:41 CST 2004

Hi,

Hmm - clear datatable and redo the select?

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"MW" <mwazir77_ns@hotmail.com> wrote in message
news:%23NMNpCv9DHA.2028@TK2MSFTNGP10.phx.gbl...
> Dear all
>
> I have written a windows service that connects to an Oracle 9 database on
> start up. I use a DataTable to hold a set of near static data.
>
> Recently there have been some overnight external batch updates to this
table
> and my DataTable needs to be refreshed. Since this change of circumstances
I
> have been restarting my service in the morning. I need to find a way to
> fresh my data object without restarting the windows service. I would be
> grateful for any pointers.
>
> Regards,
> Wazir
>
>



Re: Refreshing database cache by MW

MW
Thu Feb 19 09:51:54 CST 2004

The updates to the table happen external to my service and thus I dont know
when to redo the select.
Is there any set mechanism to expire the object say every 24 hours and
reload the contents?

"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:%23prtMOv9DHA.2756@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Hmm - clear datatable and redo the select?
>
> --



Re: Refreshing database cache by Miha

Miha
Thu Feb 19 10:59:13 CST 2004

Hi,

"MW" <mwazir77_ns@hotmail.com> wrote in message
news:%23jsRSBw9DHA.328@tk2msftngp13.phx.gbl...
> The updates to the table happen external to my service and thus I dont
know
> when to redo the select.
> Is there any set mechanism to expire the object say every 24 hours and
> reload the contents?

System.Timers.Timer?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com