Showing posts with label inserted. Show all posts
Showing posts with label inserted. Show all posts

Wednesday, March 7, 2012

CheckPoint Pages/Sec counter

In EM, changed the checkpoint interval to 1. I monitored the CheckPoint
Pages/Sec counter and inserted 3000 records and waiting 10 minutes, I have
not seen any activity on this counter.
SQL 2000 SP4
Thanks,
Don
I'm trying to solve a problem where during the CheckPoint Pages/Sec that SQL
initates, i see in the Profiler: EventClass- "Batch Completed" has long
Duration times and impacts customers, i.e., their data that is expected to be
retrieved in a timely fashion is many, many times longer. I'm trying to gain
control of the CheckPoint interval.
Note that the frequency of checkpoints in a database does not depend on any
time-based measure. Rather, it depends on the amount of data modifications
that have been made and SQL Server's estimate of how long it may take to
rollforward these changes. If in its estimate it would take the 'recovery
interval" number of minutes (when the recovery interval is not set to 0), it
issues a checkpoint.
So in your case, one potential explanation is that you have not made enough
changes for SQL Server to think it needs one minute to rollforward the
changes, thus no checkpoint is necessary.
Linchi
"donsql22222" wrote:

> In EM, changed the checkpoint interval to 1. I monitored the CheckPoint
> Pages/Sec counter and inserted 3000 records and waiting 10 minutes, I have
> not seen any activity on this counter.
> SQL 2000 SP4
> Thanks,
> Don
> I'm trying to solve a problem where during the CheckPoint Pages/Sec that SQL
> initates, i see in the Profiler: EventClass- "Batch Completed" has long
> Duration times and impacts customers, i.e., their data that is expected to be
> retrieved in a timely fashion is many, many times longer. I'm trying to gain
> control of the CheckPoint interval.

Sunday, February 19, 2012

Checking last user Identity on remote server

Is it possible to get the latest inserted Identity value on a remote server?
(The following gives a NULL result:
select ident_current('[my_linked_server].thedatabase.dbo.thetable')
)@.@.IDENTITY (assuming you mean server wide irrespective of the user\ connections etc).

HTH|||Beg your pardon - @.@.Identity is specific to session - sorry - didn't read every last line of BoL before hitting Submit.|||@.@.IDENTITY (assuming you mean server wide irrespective of the user\ connections etc).
HTH

Are you sure? I think that's what I tried first. Doesn't
it give the latest Id value used in the server where
you are (so to speak), not the remote server?|||Finally, I understood this is the way to do it. Just as feedback.

DECLARE @.return_status int
EXEC @.return_status = MyLinkedServer.the_database.dbo.a_stored_procedure
SELECT 'Return Status' = @.return_stat

The SP "a_stored_procedure" is stored on the linked server. It returns
Ident_Current for the appropriate table, using RETURN, simply.