SQL update part of an entry
Created: 20 Feb 2013 | Updated: 20 Feb 2013 | 4 comments
This issue has been solved. See solution.
Hello all,
Not really related to EV operation.
I am in the proces of preparing for a DR test
The indexes are running on file-servers.
I have to update rows in SQL.
The command I use (amongst others) is as below.
UPDATE [EnterpriseVaultDirectory].[dbo].[IndexRootPathEntry]
SET IndexRootPath = 'server92513\EVIndex\Location1\EVIndex\index1'
WHERE IndexRootPath = '\\server95513\EVIndex\Location1\EVIndex\index1'
I have about 240 rows to change.
Is it possible within SQL, using some nifty selection option to change only the value 'server92' to the value 'server95'? This would leave less room for errors, as indexlocations are regularly moved, and several are added also. As you can guess, I am not a SQL guru :-). Any ideas welcome!
Thanks,
Gertjan
Discussion Filed Under:
Comments 4 Comments • Jump to latest comment
Does this help:
Many Thanks,
Rob
www.quadrotech-it.com - All your EV Tools
PS I hope that the post proves helpful.
Works like a charm!
Thank you, Gertjan, MCSE, MCITP,MCTS, SCS, STS
Company: www.t2.nl
www.quadrotech-it.com
www.symantec.com/vision
Damn, your good. Thanks Rob.
I'll check before setting solution
Thank you, Gertjan, MCSE, MCITP,MCTS, SCS, STS
Company: www.t2.nl
www.quadrotech-it.com
www.symantec.com/vision
Glad to help.
Many Thanks,
Rob
www.quadrotech-it.com - All your EV Tools
PS I hope that the post proves helpful.
Would you like to reply?
Login or Register to post your comment.