I tried renaming a project by executing an SQL statement
sampleSQLQuery2RenameProject.txt from the Project Renamer sample of the PDS
Reference Downloads, which I customized to use my project id and new project
name. The query looks like this (before my changes)
UPDATE MSP_WEB_PROJECTS SET PROJ_NAME='Name1' WHERE PROJ_ID=5 OR PROJ_ID in
(select PROJ_ID from MSP_PROJECTS where PROJ_ID in (5) OR
(SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))in (select
(SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))from MSP_PROJECTS where
PROJ_ID in (5)))
UPDATE MSP_VIEW_PROJ_PROJECTS_STD SET
ProjectTitle='Name1'+(SUBSTRING(ProjectTitle,CHARINDEX('.',ProjectTitle),LEN(ProjectTitle)))WHERE
ProjectUniqueID=5 OR ProjectUniqueID in (select PROJ_ID from MSP_PROJECTS
where PROJ_ID in (5) OR (SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))in
(select (SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))from MSP_PROJECTS
where PROJ_ID in (5)))
UPDATE MSP_VIEW_PROJ_TASKS_STD SET
TaskName='Name1'+(SUBSTRING(TaskName,CHARINDEX('.',TaskName),LEN(TaskName)))WHERE
TaskUniqueID=0 And (ProjectUniqueID=5 OR ProjectUniqueID in (select PROJ_ID
from MSP_PROJECTS where PROJ_ID in (5) OR
(SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))in (select
(SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))from MSP_PROJECTS where
PROJ_ID in (5))))
UPDATE MSP_WEB_ASSIGNMENTS SET
TASK_NAME='Name1'+(SUBSTRING(TASK_NAME,CHARINDEX('.',TASK_NAME),LEN(TASK_NAME)))WHERE
TASK_UID=0 And WPROJ_ID in (SELECT WPROJ_ID from MSP_WEB_PROJECTS WHERE
PROJ_ID=5 OR PROJ_ID in (select PROJ_ID from MSP_PROJECTS where PROJ_ID in
(5) OR (SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))in (select
(SUBSTRING(PROJ_NAME,0,CHARINDEX('.',PROJ_NAME)))from MSP_PROJECTS where
PROJ_ID in (5))))
I executed this using Query Analyzer, and received the following feedback:
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
After this, the project is renamed and can be opened with Project
Professional from the Project Center.
Now, when saving the project, I get a Database Error 0x80040E14. The
'project file' column in Office Project Server Spooler shows [old project
name].published
When I now rename the project back to the old name, everything works fine,
no messages in the Spooler ...
To be continued!
.
Antoon said:
I experience the same problem as Abi, I suppose.
We work completely in enterprise mode.
After renaming a project using the ProjectRenamer utility, in Project
WebAccess everything seems perfect.
However, when a user opens Project Center in Project Professional, and then
clicks the 'Open in Project' button, the following error message is shown:
'Project Server was unable to find the specified project. Check the project
name and version. If the problem continues, contact your server
administrator'.
Renaming the project to the old project name again (with projectRenamer)
makes things work again.
To my opinion, the ProjectRenamer utility does not update all necessary
tables.
Regards,
Antoon