Viewing 15 posts - 4,396 through 4,410 (of 4,745 total)
was the db cloned onto a new server?In which case user may not be synched with login.
Run exec sp_change_users_login 'report' in the new database, if PRSDEV is listed run
exec...
May 27, 2008 at 8:09 am
its not in any system tables but it is held in the registry. Also could get it from the services applet.
May 26, 2008 at 12:24 pm
if you are backing up to a file or device of the same name ensure you tick the box to overwrite the backup rather than append.
This will of course...
May 22, 2008 at 1:58 pm
are you shrinking the database after the index rebuilds? that will fragment your data
May 21, 2008 at 9:45 am
itm sounds like security had been set to only allow windows authentication and this only took effect when instance restarted on failover. Not sure why reverted back going back to...
May 21, 2008 at 5:22 am
Jeff, 'straight' delete code -
delete from AssociationLinks
where RecordId not in
(
select min(RecordId)
from AssociationLinks
group by WorkspaceEntityId,SourceEntityId,TargetEntityId,Name,RecordStatus)
Janine - fix worked. could you explain...
May 20, 2008 at 5:37 am
you can restore a database that is marked suspect.
May 19, 2008 at 3:36 pm
oh and amount of log was per batch.....
May 19, 2008 at 3:18 pm
Michael,
the db was in simple mode, I monitored logspace used to see how large it got.
I would expect the select to be fast, but it does have the disadvantage of...
May 19, 2008 at 2:52 pm
the results are in:
straight delete took 8 min 47 secs and created 4GB of tran log
crawler delete took 21:49 at batches of 100,000 (40MB of log) and 9:22 at batches...
May 19, 2008 at 9:56 am
other than a database restore , only way this can happen is if someone\something in app removes rights. Use profiler to monitor for event security\audit object permissons event.
Also - ...
May 19, 2008 at 8:15 am
As for the younger generation job-hopping more than my (previous) generation yes I think that is true and is partly due to a culture of instant gratification and not being...
May 19, 2008 at 8:03 am
Michael,
thanks for the info. so the delete should be:
delete from AssociationLinks
where RecordId not in
(
select min(RecordId)
from AssociationLinks
group by WorkspaceEntityId,SourceEntityId,TargetEntityId,Name,RecordStatus
)
and the...
May 18, 2008 at 4:38 am
Jeff, cheers mate, code as well!
I like it, all in one step with no temp table stage.
I think I get it. select min recordid for each group of duplicates, join...
May 17, 2008 at 1:37 pm
thankyou both.
Just to re-cap Jeff, you reckon best option to use Michaels subquery to select out to a new table, and will be faster than the delete? That will give...
May 17, 2008 at 10:37 am
Viewing 15 posts - 4,396 through 4,410 (of 4,745 total)