SemperFiDownUnda
Instructor
Seems our server is having some issues.
Using the Copy Database Wizard with "SQL Management Object method"
It adds the log for package successfully
It adds the task for transferring database objects successfully
It creates the package successfully
It starts the SQL Server Agent Job successfully
It executes teh SQL Server Agent job and fails.
Now it has created the database successfully but it seems the first thing it tries to do is creat a view and fails with this error
that table actually exsists in the source database. Not sure why this is trying to create the views before the tables have been transfered.
Hope I've been helpful,
Wayne Francis
If you want to get the best response to a question, please check out FAQ222-2244 first
Using the Copy Database Wizard with "SQL Management Object method"
It adds the log for package successfully
It adds the task for transferring database objects successfully
It creates the package successfully
It starts the SQL Server Agent Job successfully
It executes teh SQL Server Agent job and fails.
Now it has created the database successfully but it seems the first thing it tries to do is creat a view and fails with this error
Code:
ERROR : errorCode=-1073548784 description=Executing the query "CREATE VIEW BAV_CC_COA_BUDGET
AS
SELECT DISTINCT
COMPANY, COST_CENTRE, COA_CODE, SUM(JULY) AS JULY, SUM(AUGUST) AS AUGUST, SUM(SEPTEMBER) AS SEPTEMBER, SUM(OCTOBER)
AS OCTOBER, SUM(NOVEMBER) AS NOVEMBER, SUM(DECEMBER) AS DECEMBER, SUM(JANUARY) AS JANUARY, SUM(FEBRUARY) AS FEBRUARY,
SUM(MARCH) AS MARCH, SUM(APRIL) AS APRIL, SUM(MAY) AS MAY, SUM(JUNE) AS JUNE, SUM(ANNUAL) AS BUDGET_ANNUAL, RPT_MONTH
FROM dbo.GL_BAV
WHERE (BAV = 'B')
GROUP BY COMPANY, COST_CENTRE, COA_CODE, RPT_MONTH"
failed with the following error: "Invalid object name 'dbo.GL_BAV'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
helpFile= helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}
StackTrace: at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
that table actually exsists in the source database. Not sure why this is trying to create the views before the tables have been transfered.
Hope I've been helpful,
Wayne Francis
If you want to get the best response to a question, please check out FAQ222-2244 first