Alpesh wrote:
Hi Fabio,
Does any other App-V package import fine?
The missing object gets created by the 'AS_TestCenter_StoredProcedures.sql' file. Did you run this file?
Thanks!
No, import wasnt working at all.
ive now used Red Gate's SQL Compare Tool to synch the SQL Schema against a newly from scratch created 2013 R2 Application Catalog.
Import now works again however SQL Compare still shows the following differences which cannot be applied:
[CODE]SET NUMERIC_ROUNDABORT OFF
GO
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
PRINT N'Refreshing [dbo].[ASApplicationTree]'
GO
EXEC sp_refreshview N'[dbo].[ASApplicationTree]'
GO
PRINT N'Refreshing [dbo].[ASTestTypeSupportedPackageTypes]'
GO
EXEC sp_refreshview N'[dbo].[ASTestTypeSupportedPackageTypes]'
GO
PRINT N'Refreshing [dbo].[ASTestSetGroupAndApplicationState]'
GO
EXEC sp_refreshview N'[dbo].[ASTestSetGroupAndApplicationState]'
GO
PRINT N'Refreshing [dbo].[ASTestAssessment]'
GO
EXEC sp_refreshview N'[dbo].[ASTestAssessment]'
GO
PRINT N'Adding foreign keys to [dbo].[ASTestSetPackageState]'
GO
ALTER TABLE [dbo].[ASTestSetPackageState] ADD CONSTRAINT [FK__ASTestSet__RowID__3F51553C] FOREIGN KEY ([RowID]) REFERENCES [dbo].[cstblPackage] ([RowID]) ON DELETE CASCADE
ALTER TABLE [dbo].[ASTestSetPackageState] ADD CONSTRAINT [FK__ASTestSet__TestS__40457975] FOREIGN KEY ([TestSet]) REFERENCES [dbo].[ASTestSet] ([OID])
ALTER TABLE [dbo].[ASTestSetPackageState] ADD CONSTRAINT [FK__ASTestSet__TestS__41399DAE] FOREIGN KEY ([TestState]) REFERENCES [dbo].[ASTestState] ([State])
GO
PRINT N'Adding foreign keys to [dbo].[cstblPackage]'
GO
ALTER TABLE [dbo].[cstblPackage] ADD CONSTRAINT [FK_ASCMSupportedPackageTypes_PkgType] FOREIGN KEY ([PkgType]) REFERENCES [dbo].[ASCMSupportedPackageTypes] ([OID])
GO
PRINT N'Adding foreign keys to [dbo].[cstblPackageVirtBlockers]'
GO
ALTER TABLE [dbo].[cstblPackageVirtBlockers] ADD CONSTRAINT [FK__cstblPack__PkgRo__4A18FC72] FOREIGN KEY ([PkgRowID_]) REFERENCES [dbo].[cstblPackage] ([RowID])
GO
[/CODE]
Executing these SQL Statements result in:
[CODE]
Refreshing [dbo].[ASApplicationTree]
Refreshing [dbo].[ASTestTypeSupportedPackageTypes]
Refreshing [dbo].[ASTestSetGroupAndApplicationState]
Refreshing [dbo].[ASTestAssessment]
Adding foreign keys to [dbo].[ASTestSetPackageState]
Msg 547, Level 16, State 0, Line 1
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK__ASTestSet__RowID__3F51553C". The conflict occurred in database "AdminStudio", table "dbo.cstblPackage", column 'RowID'.
Adding foreign keys to [dbo].[cstblPackage]
Msg 547, Level 16, State 0, Line 1
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_ASCMSupportedPackageTypes_PkgType". The conflict occurred in database "AdminStudio", table "dbo.ASCMSupportedPackageTypes", column 'OID'.
Adding foreign keys to [dbo].[cstblPackageVirtBlockers]
Msg 547, Level 16, State 0, Line 1
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK__cstblPack__PkgRo__4A18FC72". The conflict occurred in database "AdminStudio", table "dbo.cstblPackage", column 'RowID'.
[/CODE]
Im not a SQL expert at all. May you be able to assist?
If there is no easy way, would it be possible to send in the database to flexera?
Regards,
Fabio