Viewing 15 posts - 3,946 through 3,960 (of 5,103 total)
I would move the delay statement after the COMMIT otherwise you will be holding the lock for too long!
...
WHILE @x > 0
BEGIN
BEGIN TRAN
delete from events
where datediff(day, EVENT_DATE, getdate()) >...
April 14, 2005 at 9:31 am
OK,
To delete those rows just disable the triggers on that table (hopefully you have only the merge triggers in there
you should verify it! and...
April 14, 2005 at 9:23 am
What Hilary was implying is that you MUST setup a filter to solve the problem
Cheers
[Edit]: Oh and yes, SiteID seems like a good candidate for it
April 14, 2005 at 8:56 am
well this is a new one for me because if you have PK constraint violated seems like a serious flaw in the engine (which I don't believe such thing can...
April 14, 2005 at 8:51 am
what happen when you stop and re-start your merge agent?
are you sure you can see by name and by IP the subscriber from the publisher ?
April 14, 2005 at 8:45 am
Barbara,
I am sorry couldn't get back to you sooner.
What you can do is to schedule a job with sp_mergemetadataretentioncleanup if you need to run it continuous mode.
April 14, 2005 at 8:36 am
Ah... didn't read well that the string was missing the day part! ![]()
April 14, 2005 at 8:23 am
I would:
select
year(cast(field as datetime))
, month(cast(field as datetime))
, day(cast(field as datetime))
from <yourtable>
hth
April 14, 2005 at 8:05 am
I personally think a cursor is not necessary for this operation and the job can be performed entirely in the temp table. Once that's done is a matter of single insert...
April 13, 2005 at 3:14 pm
That's a nice try but:
April 13, 2005 at 2:53 pm
For Transactional:
Have a look at sp_browsereplcmds
For Merge thereis an script by Paul Ibison posted here
HTH
April 12, 2005 at 3:20 pm
Barbara,
I believe that where you are confused is on the sp. There are two sp.
1) sp_mergecleanupmetadata
2) sp_mergemetadataretentioncleanup
The First should be used for topologies with SQL Server 2000 SP1 or less...
April 12, 2005 at 3:07 pm
Ok, This "image Feature" does not works (as I assumed
)
so lets try describing it:
once you have stablished the data transformation task between...
April 12, 2005 at 2:51 pm
Viewing 15 posts - 3,946 through 3,960 (of 5,103 total)