I delete database and restart again and I got following error:
0:01 Minutes | 18% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Skins' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Skins]
(
[SkinID] [int] NOT NULL IDENTITY(1, 1),
[SkinPackageID] [int] NOT NULL,
[SkinSrc] [nvarchar] (250) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Skins' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Skins] ADD CONSTRAINT [PK_Skins] PRIMARY KEY CLUSTERED ([SkinID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SkinPackages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SkinPackages]
(
[SkinPackageID] [int] NOT NULL IDENTITY(1, 1),
[PackageID] [int] NOT NULL,
[PortalID] [int] NULL,
[SkinName] [nvarchar] (50) NOT NULL,
[SkinType] [nvarchar] (20) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SkinPackages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SkinPackages] ADD CONSTRAINT [PK_SkinPackages] PRIMARY KEY CLUSTERED ([SkinPackageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinPackageByPackageID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSkinPackageByPackageID
@PackageID int
AS
BEGIN
SELECT SP.*
FROM dbo.SkinPackages SP
WHERE SP.PackageID = @PackageID
SELECT I.*
FROM dbo.Skins I
INNER JOIN dbo.SkinPackages S ON S.SkinPackageID = I.SkinPackageID
WHERE S.PackageID = @PackageID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ContentItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ContentItems]
(
[ContentItemID] [int] NOT NULL IDENTITY(1, 1),
[Content] [nvarchar] (max) NULL,
[ContentTypeID] [int] NOT NULL,
[TabID] [int] NOT NULL,
[ModuleID] [int] NOT NULL,
[ContentKey] [nvarchar] (250) NULL,
[Indexed] [bit] NOT NULL CONSTRAINT [DF_ContentItems_Indexed] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ContentItems' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ContentItems] ADD CONSTRAINT [PK_ContentItems] PRIMARY KEY CLUSTERED ([ContentItemID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItemsByTabId' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItemsByTabId]
@TabId int
AS
SELECT * FROM dbo.ContentItems WHERE TabID = @TabId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Packages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Packages]
(
[PackageID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[Name] [nvarchar] (128) NOT NULL,
[FriendlyName] [nvarchar] (250) NOT NULL,
[Description] [nvarchar] (2000) NULL,
[PackageType] [nvarchar] (100) NOT NULL,
[Version] [nvarchar] (50) NOT NULL,
[License] [ntext] NULL,
[Manifest] [ntext] NULL,
[Owner] [nvarchar] (100) NULL,
[Organization] [nvarchar] (100) NULL,
[Url] [nvarchar] (250) NULL,
[Email] [nvarchar] (100) NULL,
[ReleaseNotes] [ntext] NULL,
[IsSystemPackage] [bit] NOT NULL CONSTRAINT [DF_Packages_IsSystemPackage] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[FolderName] [nvarchar] (128) NULL,
[IconFile] [nvarchar] (100) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Packages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Packages] ADD CONSTRAINT [PK_Packages] PRIMARY KEY CLUSTERED ([PackageID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Packages' already exists on table 'dbo.Packages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_Packages] ON dbo.[Packages] ([Owner], [Name], [PackageType], [PortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackagesByType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPackagesByType]
@PortalID int,
@PackageType nvarchar(50)
AS
SELECT *
FROM dbo.Packages
WHERE (PortalID = @PortalID OR @PortalID IS NULL OR PortalID IS NULL)
AND PackageType = @PackageType
ORDER BY [FriendlyName] ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'EventLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[EventLog]
(
[LogGUID] [varchar] (36) NOT NULL,
[LogTypeKey] [nvarchar] (35) NOT NULL,
[LogConfigID] [int] NULL,
[LogUserID] [int] NULL,
[LogUserName] [nvarchar] (50) NULL,
[LogPortalID] [int] NULL,
[LogPortalName] [nvarchar] (100) NULL,
[LogCreateDate] [datetime] NOT NULL,
[LogServerName] [nvarchar] (50) NOT NULL,
[LogProperties] [ntext] NOT NULL,
[LogNotificationPending] [bit] NULL,
[LogEventID] [bigint] NOT NULL IDENTITY(1, 1)
)
System.Data.SqlClient.SqlException (0x80131904): Table 'EventLog' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[EventLog] ADD CONSTRAINT [PK_EventLogMaster] PRIMARY KEY CLUSTERED ([LogEventID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_EventLog_LogGUID' already exists on table 'dbo.EventLog'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_EventLog_LogGUID] ON dbo.[EventLog] ([LogGUID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateEventLogPendingNotif' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateEventLogPendingNotif
@LogConfigID int
AS
UPDATE dbo.EventLog
SET LogNotificationPending = 0
WHERE LogNotificationPending = 1
AND LogConfigID = @LogConfigID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Tabs' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Tabs]
(
[TabID] [int] NOT NULL IDENTITY(0, 1),
[TabOrder] [int] NOT NULL CONSTRAINT [DF_Tabs_TabOrder] DEFAULT ((0)),
[PortalID] [int] NULL,
[TabName] [nvarchar] (50) NOT NULL,
[IsVisible] [bit] NOT NULL CONSTRAINT [DF_Tabs_IsVisible] DEFAULT ((1)),
[ParentId] [int] NULL,
[IconFile] [nvarchar] (100) NULL,
[DisableLink] [bit] NOT NULL CONSTRAINT [DF_Tabs_DisableLink] DEFAULT ((0)),
[Title] [nvarchar] (200) NULL,
[Description] [nvarchar] (500) NULL,
[KeyWords] [nvarchar] (500) NULL,
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_Tabs_IsDeleted] DEFAULT ((0)),
[Url] [nvarchar] (255) NULL,
[SkinSrc] [nvarchar] (200) NULL,
[ContainerSrc] [nvarchar] (200) NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[RefreshInterval] [int] NULL,
[PageHeadText] [nvarchar] (max) NULL,
[IsSecure] [bit] NOT NULL CONSTRAINT [DF_Tabs_IsSecure] DEFAULT ((0)),
[PermanentRedirect] [bit] NOT NULL CONSTRAINT [DF_Tabs_PermanentRedirect] DEFAULT ((0)),
[SiteMapPriority] [float] NOT NULL CONSTRAINT [DF_Tabs_SiteMapPriority] DEFAULT ((0.5)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[IconFileLarge] [nvarchar] (100) NULL,
[CultureCode] [nvarchar] (10) NULL,
[ContentItemID] [int] NULL,
[UniqueId] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Tabs_Guid] DEFAULT (newid()),
[VersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Tabs_VersionGuid] DEFAULT (newid()),
[DefaultLanguageGuid] [uniqueidentifier] NULL,
[LocalizedVersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Tabs_LocalizedVersionGuid] DEFAULT (newid()),
[Level] [int] NOT NULL CONSTRAINT [DF__Tabs__Level__526429B0] DEFAULT ((0)),
[TabPath] [nvarchar] (255) NOT NULL CONSTRAINT [DF__Tabs__TabPat__53584DE9] DEFAULT ('')
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Tabs' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Tabs] ADD CONSTRAINT [PK_Tabs] PRIMARY KEY CLUSTERED ([TabID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Tabs_1' already exists on table 'dbo.Tabs'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Tabs_1] ON dbo.[Tabs] ([PortalID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Tabs_PortalID_ParentID' already exists on table 'dbo.Tabs'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Tabs_PortalID_ParentID] ON dbo.[Tabs] ([PortalID], [ParentId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Tabs_2' already exists on table 'dbo.Tabs'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Tabs_2] ON dbo.[Tabs] ([ParentId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Tabs_ContentID' already exists on table 'dbo.Tabs'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Tabs_ContentID] ON dbo.[Tabs] ([ContentItemID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteTab]
@TabId int
AS
BEGIN
DECLARE @TabOrder INT
SET @TabOrder = (SELECT TabOrder FROM dbo.Tabs WHERE TabID = @TabId)
DECLARE @ParentID INT
SET @ParentID = (SELECT ParentID FROM dbo.Tabs WHERE TabID = @TabId)
DECLARE @ContentItemID INT
SET @ContentItemID = (SELECT ContentItemID FROM dbo.Tabs WHERE TabID = @TabId)
-- Delete Tab --
DELETE FROM dbo.Tabs
WHERE TabId = @TabId
-- Update TabOrder of remaining Tabs --
UPDATE dbo.Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @ParentId OR (ParentId IS NULL AND @ParentID IS NULL))
AND TabOrder > @TabOrder
-- Delete Content Item --
DELETE dbo.ContentItems
WHERE ContentItemID = @ContentItemID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Schedule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Schedule]
(
[ScheduleID] [int] NOT NULL IDENTITY(1, 1),
[TypeFullName] [varchar] (200) NOT NULL,
[TimeLapse] [int] NOT NULL,
[TimeLapseMeasurement] [varchar] (2) NOT NULL,
[RetryTimeLapse] [int] NOT NULL,
[RetryTimeLapseMeasurement] [varchar] (2) NOT NULL,
[RetainHistoryNum] [int] NOT NULL,
[AttachToEvent] [varchar] (50) NOT NULL,
[CatchUpEnabled] [bit] NOT NULL,
[Enabled] [bit] NOT NULL,
[ObjectDependencies] [varchar] (300) NOT NULL,
[Servers] [nvarchar] (2000) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[FriendlyName] [nvarchar] (200) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Schedule' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Schedule] ADD CONSTRAINT [PK_Schedule] PRIMARY KEY CLUSTERED ([ScheduleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSchedule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSchedule
@ScheduleID int
,@TypeFullName varchar(200)
,@TimeLapse int
,@TimeLapseMeasurement varchar(2)
,@RetryTimeLapse int
,@RetryTimeLapseMeasurement varchar(2)
,@RetainHistoryNum int
,@AttachToEvent varchar(50)
,@CatchUpEnabled bit
,@Enabled bit
,@ObjectDependencies varchar(300)
,@Servers varchar(150)
,@LastModifiedByUserID int
,@FriendlyName varchar(200)
AS
UPDATE dbo.Schedule
SET TypeFullName = @TypeFullName
,FriendlyName = @FriendlyName
,TimeLapse = @TimeLapse
,TimeLapseMeasurement = @TimeLapseMeasurement
,RetryTimeLapse = @RetryTimeLapse
,RetryTimeLapseMeasurement = @RetryTimeLapseMeasurement
,RetainHistoryNum = @RetainHistoryNum
,AttachToEvent = @AttachToEvent
,CatchUpEnabled = @CatchUpEnabled
,Enabled = @Enabled
,ObjectDependencies = @ObjectDependencies
,Servers = @Servers,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE ScheduleID = @ScheduleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_Messages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Messaging_Messages]
(
[MessageID] [bigint] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NOT NULL,
[FromUserID] [int] NOT NULL,
[ToUserName] [nvarchar] (50) NULL,
[FromUserName] [nvarchar] (50) NULL,
[ToUserID] [int] NULL,
[ToRoleID] [int] NULL,
[Status] [tinyint] NOT NULL,
[Subject] [nvarchar] (max) NULL,
[Body] [nvarchar] (max) NULL,
[Date] [datetime] NOT NULL,
[Conversation] [uniqueidentifier] NOT NULL,
[ReplyTo] [bigint] NULL,
[AllowReply] [bit] NOT NULL,
[SkipPortal] [bit] NOT NULL,
[EmailSent] [bit] NOT NULL,
[EmailSentDate] [datetime] NULL,
[EmailSchedulerInstance] [uniqueidentifier] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Messaging_Messages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Messaging_Messages] ADD CONSTRAINT [PK_Messaging_Messages] PRIMARY KEY CLUSTERED ([MessageID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Messaging_Messages_FromUserID_Status' already exists on table 'dbo.Messaging_Messages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Messaging_Messages_FromUserID_Status] ON dbo.[Messaging_Messages] ([FromUserID], [Status], [Date] DESC)
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Messaging_Messages_ToUserID_Status_SkipPortal' already exists on table 'dbo.Messaging_Messages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Messaging_Messages_ToUserID_Status_SkipPortal] ON dbo.[Messaging_Messages] ([ToUserID], [Status], [SkipPortal], [Date] DESC)
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Messaging_Messages_EmailSent_EmailSchedulerInstance_Status' already exists on table 'dbo.Messaging_Messages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Messaging_Messages_EmailSent_EmailSchedulerInstance_Status] ON dbo.[Messaging_Messages] ([EmailSent], [EmailSchedulerInstance], [Status], [Date] DESC)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_UpdateMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_UpdateMessage]
@MessageID bigint,
@ToUserID int,
@ToRoleID int,
@Status int,
@Subject nvarchar(max),
@Body nvarchar(max),
@Date datetime,
@ReplyTo bigint,
@AllowReply bit,
@SkipPortal bit
AS
UPDATE dbo.Messaging_Messages
SET ToUserID=@ToUserID,
ToRoleID=@ToRoleID,
Status=@Status,
Subject=@Subject,
Body=@Body,
Date= @Date,
ReplyTo= @ReplyTo,
AllowReply = @AllowReply,
SkipPortal = @SkipPortal
WHERE MessageID=@MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Taxonomy_Terms' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Taxonomy_Terms]
(
[TermID] [int] NOT NULL IDENTITY(1, 1),
[VocabularyID] [int] NOT NULL,
[ParentTermID] [int] NULL,
[Name] [nvarchar] (250) NOT NULL,
[Description] [nvarchar] (2500) NULL,
[Weight] [int] NOT NULL CONSTRAINT [DF_Taxonomy_Terms_Weight] DEFAULT ((0)),
[TermLeft] [int] NOT NULL CONSTRAINT [DF_Taxonomy_Terms_TermLeft] DEFAULT ((0)),
[TermRight] [int] NOT NULL CONSTRAINT [DF_Taxonomy_Terms_TermRight] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Taxonomy_Terms' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Taxonomy_Terms] ADD CONSTRAINT [PK_Taxonomy_Terms] PRIMARY KEY CLUSTERED ([TermID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ContentItems_Tags' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ContentItems_Tags]
(
[ContentItemTagID] [int] NOT NULL IDENTITY(1, 1),
[ContentItemID] [int] NOT NULL,
[TermID] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ContentItems_Tags' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ContentItems_Tags] ADD CONSTRAINT [PK_ContentItems_Tags] PRIMARY KEY CLUSTERED ([ContentItemTagID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ContentItems_Tags' already exists on table 'dbo.ContentItems_Tags'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_ContentItems_Tags] ON dbo.[ContentItems_Tags] ([ContentItemID], [TermID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ContentItems_Tags_TermID' already exists on table 'dbo.ContentItems_Tags'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ContentItems_Tags_TermID] ON dbo.[ContentItems_Tags] ([TermID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItemsByVocabularyId' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItemsByVocabularyId]
@VocabularyID int
AS
BEGIN
SELECT c.*
FROM dbo.ContentItems As c
INNER JOIN dbo.ContentItems_Tags ct ON ct.ContentItemID = c.ContentItemID
INNER JOIN dbo.Taxonomy_Terms t ON t.TermID = ct.TermID
WHERE t.VocabularyID = @VocabularyID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'TabModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[TabModules]
(
[TabModuleID] [int] NOT NULL IDENTITY(1, 1),
[TabID] [int] NOT NULL,
[ModuleID] [int] NOT NULL,
[PaneName] [nvarchar] (50) NOT NULL,
[ModuleOrder] [int] NOT NULL,
[CacheTime] [int] NOT NULL,
[Alignment] [nvarchar] (10) NULL,
[Color] [nvarchar] (20) NULL,
[Border] [nvarchar] (1) NULL,
[IconFile] [nvarchar] (100) NULL,
[Visibility] [int] NOT NULL,
[ContainerSrc] [nvarchar] (200) NULL,
[DisplayTitle] [bit] NOT NULL CONSTRAINT [DF_TabModules_DisplayTitle] DEFAULT ((1)),
[DisplayPrint] [bit] NOT NULL CONSTRAINT [DF_TabModules_DisplayPrint] DEFAULT ((1)),
[DisplaySyndicate] [bit] NOT NULL CONSTRAINT [DF_TabModules_DisplaySyndicate] DEFAULT ((1)),
[IsWebSlice] [bit] NOT NULL CONSTRAINT [DF_abModules_IsWebSlice] DEFAULT ((0)),
[WebSliceTitle] [nvarchar] (256) NULL,
[WebSliceExpiryDate] [datetime] NULL,
[WebSliceTTL] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL CONSTRAINT [DF_TabModules_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL CONSTRAINT [DF_TabModules_LastModifiedOnDate] DEFAULT (getdate()),
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_TabModules_IsDeleted] DEFAULT ((0)),
[CacheMethod] [varchar] (50) NULL,
[ModuleTitle] [nvarchar] (256) NULL,
[Header] [ntext] NULL,
[Footer] [ntext] NULL,
[CultureCode] [nvarchar] (10) NULL,
[UniqueId] [uniqueidentifier] NOT NULL CONSTRAINT [DF_TabModules_Guid] DEFAULT (newid()),
[VersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_TabModules_VersionGuid] DEFAULT (newid()),
[DefaultLanguageGuid] [uniqueidentifier] NULL,
[LocalizedVersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_TabModules_LocalizedVersionGuid] DEFAULT (newid())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'TabModules' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[TabModules] ADD CONSTRAINT [PK_TabModules] PRIMARY KEY CLUSTERED ([TabModuleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabModule]
@TabModuleId int,
@TabId int,
@ModuleId int,
@ModuleTitle nvarchar(256),
@Header ntext,
@Footer ntext,
@ModuleOrder int,
@PaneName nvarchar(50),
@CacheTime int,
@CacheMethod varchar(50),
@Alignment nvarchar(10),
@Color nvarchar(20),
@Border nvarchar(1),
@IconFile nvarchar(100),
@Visibility int,
@ContainerSrc nvarchar(200),
@DisplayTitle bit,
@DisplayPrint bit,
@DisplaySyndicate bit,
@IsWebSlice bit,
@WebSliceTitle nvarchar(256),
@WebSliceExpiryDate datetime,
@WebSliceTTL int,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@CultureCode nvarchar(10),
@LastModifiedByUserID int
AS
UPDATE dbo.TabModules
SET
TabId = @TabId,
ModuleId = @ModuleId,
ModuleTitle = @ModuleTitle,
Header = @Header,
Footer = @Footer,
ModuleOrder = @ModuleOrder,
PaneName = @PaneName,
CacheTime = @CacheTime,
CacheMethod = @CacheMethod,
Alignment = @Alignment,
Color = @Color,
Border = @Border,
IconFile = @IconFile,
Visibility = @Visibility,
ContainerSrc = @ContainerSrc,
DisplayTitle = @DisplayTitle,
DisplayPrint = @DisplayPrint,
DisplaySyndicate = @DisplaySyndicate,
IsWebSlice = @IsWebSlice,
WebSliceTitle = @WebSliceTitle,
WebSliceExpiryDate = @WebSliceExpiryDate,
WebSliceTTL = @WebSliceTTL,
VersionGuid = @VersionGuid,
DefaultLanguageGuid = @DefaultLanguageGuid,
LocalizedVersionGuid = @LocalizedVersionGuid,
CultureCode= @CultureCode,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabModuleId = @TabModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Modules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Modules]
(
[ModuleID] [int] NOT NULL IDENTITY(0, 1),
[ModuleDefID] [int] NOT NULL,
[AllTabs] [bit] NOT NULL CONSTRAINT [DF_Modules_AllTabs] DEFAULT ((0)),
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_Modules_IsDeleted] DEFAULT ((0)),
[InheritViewPermissions] [bit] NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[PortalID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL CONSTRAINT [DF_Modules_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL CONSTRAINT [DF_Modules_LastModifiedOnDate] DEFAULT (getdate()),
[LastContentModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Modules_LastContentModifiedOnDate] DEFAULT (getdate()),
[ContentItemID] [int] NULL,
[IsShareable] [bit] NOT NULL CONSTRAINT [DF_Modules_IsShareable] DEFAULT ((1)),
[IsShareableViewOnly] [bit] NOT NULL CONSTRAINT [DF_Modules_IsShareableViewOnly] DEFAULT ((1))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Modules' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Modules] ADD CONSTRAINT [PK_Modules] PRIMARY KEY CLUSTERED ([ModuleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Modules' already exists on table 'dbo.Modules'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Modules] ON dbo.[Modules] ([ModuleDefID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ModuleDefinitions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ModuleDefinitions]
(
[ModuleDefID] [int] NOT NULL IDENTITY(1, 1),
[FriendlyName] [nvarchar] (128) NOT NULL,
[DesktopModuleID] [int] NOT NULL,
[DefaultCacheTime] [int] NOT NULL CONSTRAINT [DF_ModuleDefinitions_DefaultCacheTime] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[DefinitionName] [nvarchar] (128) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ModuleDefinitions' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ModuleDefinitions] ADD CONSTRAINT [PK_ModuleDefinitions] PRIMARY KEY CLUSTERED ([ModuleDefID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModuleDefinitions_1' already exists on table 'dbo.ModuleDefinitions'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ModuleDefinitions_1] ON dbo.[ModuleDefinitions] ([DesktopModuleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModuleDefinitions' already exists on table 'dbo.ModuleDefinitions'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_ModuleDefinitions] ON dbo.[ModuleDefinitions] ([DefinitionName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchResultModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetSearchResultModules
@PortalID int
AS
SELECT
TM.TabID,
T.TabName AS SearchTabName
FROM dbo.Modules M
INNER JOIN dbo.ModuleDefinitions MD ON MD.ModuleDefID = M.ModuleDefID
INNER JOIN dbo.TabModules TM ON TM.ModuleID = M.ModuleID
INNER JOIN dbo.Tabs T ON T.TabID = TM.TabID
WHERE MD.FriendlyName = N'Search Results'
AND T.PortalID = @PortalID
AND T.IsDeleted = 0
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'VendorClassification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[VendorClassification]
(
[VendorClassificationId] [int] NOT NULL IDENTITY(1, 1),
[VendorId] [int] NOT NULL,
[ClassificationId] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'VendorClassification' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[VendorClassification] ADD CONSTRAINT [PK_VendorClassification] PRIMARY KEY CLUSTERED ([VendorClassificationId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_VendorClassification_1' already exists on table 'dbo.VendorClassification'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_VendorClassification_1] ON dbo.[VendorClassification] ([ClassificationId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddVendorClassification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddVendorClassification
@VendorId int,
@ClassificationId int
as
insert into dbo.VendorClassification (
VendorId,
ClassificationId
)
values (
@VendorId,
@ClassificationId
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSortSql' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetSortSql]
(
@SortBy nvarchar(100),
@SortAscending BIT,
@Default nvarchar(100)
)
RETURNS nvarchar(max)
AS
BEGIN
DECLARE @sortSql nvarchar(max)
SET @sortSql = ''
IF @SortBy = ''
SET @SortBy = @Default
SET @sortSql = N'ORDER BY [' + @SortBy + CASE WHEN @SortAscending = 1 THEN N'] ASC' ELSE N'] DESC' END
RETURN(@sortSql)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ProfilePropertyDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ProfilePropertyDefinition]
(
[PropertyDefinitionID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[ModuleDefID] [int] NULL,
[Deleted] [bit] NOT NULL,
[DataType] [int] NOT NULL,
[DefaultValue] [ntext] NULL,
[PropertyCategory] [nvarchar] (50) NOT NULL,
[PropertyName] [nvarchar] (50) NOT NULL,
[Length] [int] NOT NULL CONSTRAINT [DF_ProfilePropertyDefinition_Length] DEFAULT ((0)),
[Required] [bit] NOT NULL,
[ValidationExpression] [nvarchar] (2000) NULL,
[ViewOrder] [int] NOT NULL,
[Visible] [bit] NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[DefaultVisibility] [int] NULL,
[ReadOnly] [bit] NOT NULL CONSTRAINT [DF_ProfilePropertyDefinition_ReadOnly] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ProfilePropertyDefinition' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ProfilePropertyDefinition] ADD CONSTRAINT [PK_ProfilePropertyDefinition] PRIMARY KEY CLUSTERED ([PropertyDefinitionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ProfilePropertyDefinition' already exists on table 'dbo.ProfilePropertyDefinition'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_ProfilePropertyDefinition] ON dbo.[ProfilePropertyDefinition] ([PortalID], [ModuleDefID], [PropertyName])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ProfilePropertyDefinition_PropertyName' already exists on table 'dbo.ProfilePropertyDefinition'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ProfilePropertyDefinition_PropertyName] ON dbo.[ProfilePropertyDefinition] ([PropertyName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetProfileFieldSql' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetProfileFieldSql]
(
@PortalID int,
@TemplateSql nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
DECLARE @sql nvarchar(max)
SELECT @sql = COALESCE(@sql + ',','') + '[' + PropertyName + ']' + @TemplateSql
FROM dbo.ProfilePropertyDefinition
WHERE PortalID = @PortalID
AND Deleted = 0
RETURN(@sql)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersBasicSearch' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersBasicSearch]
(
@PortalID int, -- portal
@PageSize int, -- page size
@PageIndex int, -- 0 based page index
@SortBy nvarchar(100), -- sort field
@SortAscending bit, -- sort flag indicating whether sort is asc or desc
@PropertyName nvarchar(256), -- property to filter by (username, diaplayname, email)
@PropertyValue nvarchar(256) -- value of property
)
AS
-- Set up Top XX
DECLARE @topSql nvarchar(20)
SET @topSql = CONVERT(nvarchar(20), @PageSize)
--Set up Count
DECLARE @minRowNumberSql nvarchar(20)
SET @minRowNumberSql = CONVERT(nvarchar(20), ((@PageIndex * @PageSize) + 1))
-- Set up Sort
DECLARE @sortSql nvarchar(1000)
SET @sortSql = dbo.GetSortSql(@SortBy, @SortAscending, 'UserID')
-- Setup Pivot Field List
DECLARE @pivotSql nvarchar(max)
SELECT @pivotSql = dbo.GetProfileFieldSql(@PortalID, '')
-- Setup FieldName Field List for temporary table
DECLARE @fieldNames nvarchar(max)
SELECT @fieldNames = dbo.GetProfileFieldSql(@PortalID, ' nvarchar(max)')
DECLARE @sql nvarchar(max)
SELECT @sql=
'
DECLARE @pivotedUsers TABLE
(
RowNumber int,
UserID int,
PortalID int,
Username nvarchar(100),
Email nvarchar(256),
DisplayName nvarchar(128),
IsSuperUser bit,
IsDeleted bit,
AffiliateID int,
UpdatePassword bit,
Authorised bit,
' + @fieldNames + '
);
WITH TempUsers
AS
(
SELECT TOP ' + @topSql + ' * FROM (
SELECT
ROW_NUMBER() OVER(' + @sortSql + ') AS RowNumber,
U.UserID,
U.PortalID,
U.Username,
U.Email,
U.DisplayName,
U.IsSuperUser,
U.IsDeleted,
U.AffiliateID,
U.UpdatePassword,
U.Authorised
FROM dbo.vw_Users AS U
WHERE (U.PortalID = ' + CONVERT(nvarchar(20), @PortalID) + ' OR U.PortalID Is NULL )
AND ((U.' + @PropertyName + ' LIKE ''' + @PropertyValue + '%'')
OR (U.' + @PropertyName + ' LIKE ''% ' + @PropertyValue + '%''))
AND U.IsDeleted = 0
) AS U
WHERE RowNumber >= ' + @minRowNumberSql + '
),
TempUsersWithProfile
AS
(
SELECT
U.UserID,
U.PortalID,
U.Username,
U.Email,
U.DisplayName,
U.IsSuperUser,
U.IsDeleted,
U.AffiliateID,
U.UpdatePassword,
U.Authorised,
P.PropertyName,
P.PropertyValue
FROM TempUsers U
INNER JOIN dbo.vw_Profile P ON P.UserID = U.UserID
)
SELECT * FROM TempUsersWithProfile
PIVOT
(
MAX(PropertyValue) for PropertyName in (' + @pivotSql + ')
) as pivotTable
' + @sortSql
EXEC(@sql)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Users' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Users]
(
[UserID] [int] NOT NULL IDENTITY(1, 1),
[Username] [nvarchar] (100) NOT NULL,
[FirstName] [nvarchar] (50) NOT NULL,
[LastName] [nvarchar] (50) NOT NULL,
[IsSuperUser] [bit] NOT NULL CONSTRAINT [DF_Users_IsSuperUser] DEFAULT ((0)),
[AffiliateId] [int] NULL,
[Email] [nvarchar] (256) NULL,
[DisplayName] [nvarchar] (128) NOT NULL CONSTRAINT [DF_Users_DisplayName] DEFAULT (''),
[UpdatePassword] [bit] NOT NULL CONSTRAINT [DF_Users_UpdatePassword] DEFAULT ((0)),
[LastIPAddress] [nvarchar] (50) NULL,
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_Users_IsDeleted] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Users' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Users] ADD CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED ([UserID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Users_Email' already exists on table 'dbo.Users'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Users_Email] ON dbo.[Users] ([Email])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Users_IsDeleted_DisplayName' already exists on table 'dbo.Users'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Users_IsDeleted_DisplayName] ON dbo.[Users] ([IsDeleted], [DisplayName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserRoles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserRoles]
(
[UserRoleID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[RoleID] [int] NOT NULL,
[ExpiryDate] [datetime] NULL,
[IsTrialUsed] [bit] NULL,
[EffectiveDate] [datetime] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[Status] [int] NOT NULL CONSTRAINT [DF_UserRoles_Status] DEFAULT ((1)),
[IsOwner] [bit] NOT NULL CONSTRAINT [DF_UserRoles_IsOwner] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserRoles' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserRoles] ADD CONSTRAINT [PK_UserRoles] PRIMARY KEY CLUSTERED ([UserRoleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserRoles_1' already exists on table 'dbo.UserRoles'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserRoles_1] ON dbo.[UserRoles] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserRoles' already exists on table 'dbo.UserRoles'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserRoles] ON dbo.[UserRoles] ([RoleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserPortals' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserPortals]
(
[UserId] [int] NOT NULL,
[PortalId] [int] NOT NULL,
[UserPortalId] [int] NOT NULL IDENTITY(1, 1),
[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_UserPortals_CreatedDate] DEFAULT (getdate()),
[Authorised] [bit] NOT NULL CONSTRAINT [DF_UserPortals_Authorised] DEFAULT ((1)),
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_UserPortals_IsDeleted] DEFAULT ((0)),
[RefreshRoles] [bit] NOT NULL CONSTRAINT [DF_UserPortals_RefreshRoles] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserPortals' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserPortals] ADD CONSTRAINT [PK_UserPortals] PRIMARY KEY CLUSTERED ([UserId], [PortalId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserPortals' already exists on table 'dbo.UserPortals'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserPortals] ON dbo.[UserPortals] ([PortalId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserPortals_PortalId_IsDeleted' already exists on table 'dbo.UserPortals'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserPortals_PortalId_IsDeleted] ON dbo.[UserPortals] ([PortalId], [IsDeleted])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Roles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Roles]
(
[RoleID] [int] NOT NULL IDENTITY(0, 1),
[PortalID] [int] NOT NULL,
[RoleName] [nvarchar] (50) NOT NULL,
[Description] [nvarchar] (1000) NULL,
[ServiceFee] [money] NULL CONSTRAINT [DF_Roles_ServiceFee] DEFAULT ((0)),
[BillingFrequency] [char] (1) NULL,
[TrialPeriod] [int] NULL,
[TrialFrequency] [char] (1) NULL,
[BillingPeriod] [int] NULL,
[TrialFee] [money] NULL,
[IsPublic] [bit] NOT NULL CONSTRAINT [DF_Roles_IsPublic] DEFAULT ((0)),
[AutoAssignment] [bit] NOT NULL CONSTRAINT [DF_Roles_AutoAssignment] DEFAULT ((0)),
[RoleGroupID] [int] NULL,
[RSVPCode] [nvarchar] (50) NULL,
[IconFile] [nvarchar] (100) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[Status] [int] NOT NULL CONSTRAINT [DF_Roles_Status] DEFAULT ((1)),
[SecurityMode] [int] NOT NULL CONSTRAINT [DF_Roles_SecurityMode] DEFAULT ((0)),
[IsSystemRole] [bit] NOT NULL CONSTRAINT [DF_Roles_IsSystemRole] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Roles' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Roles] ADD CONSTRAINT [PK_Roles] PRIMARY KEY CLUSTERED ([RoleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Roles' already exists on table 'dbo.Roles'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Roles] ON dbo.[Roles] ([BillingFrequency])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersByRolename' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersByRolename]
@PortalID int,
@Rolename nvarchar(50)
AS
SELECT
U.*,
UP.PortalId,
UP.Authorised,
UP.IsDeleted,
UP.RefreshRoles
FROM dbo.UserPortals AS UP
RIGHT OUTER JOIN dbo.UserRoles UR
INNER JOIN dbo.Roles R ON UR.RoleID = R.RoleID
RIGHT OUTER JOIN dbo.Users AS U ON UR.UserID = U.UserID
ON UP.UserId = U.UserID
WHERE ( UP.PortalId = @PortalID OR @PortalID IS Null )
AND (UP.IsDeleted = 0 OR UP.IsDeleted Is NULL)
AND (R.RoleName = @Rolename)
AND (R.PortalId = @PortalID OR @PortalID IS Null )
ORDER BY U.FirstName + ' ' + U.LastName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSchedule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddSchedule
@TypeFullName varchar(200)
,@TimeLapse int
,@TimeLapseMeasurement varchar(2)
,@RetryTimeLapse int
,@RetryTimeLapseMeasurement varchar(2)
,@RetainHistoryNum int
,@AttachToEvent varchar(50)
,@CatchUpEnabled bit
,@Enabled bit
,@ObjectDependencies varchar(300)
,@Servers varchar(150)
,@CreatedByUserID int
,@FriendlyName varchar(200)
AS
INSERT INTO dbo.Schedule
(TypeFullName
,TimeLapse
,TimeLapseMeasurement
,RetryTimeLapse
,RetryTimeLapseMeasurement
,RetainHistoryNum
,AttachToEvent
,CatchUpEnabled
,Enabled
,ObjectDependencies
,Servers
,FriendlyName
,[CreatedByUserID]
,[CreatedOnDate]
,[LastModifiedByUserID]
,[LastModifiedOnDate]
)
VALUES
(@TypeFullName
,@TimeLapse
,@TimeLapseMeasurement
,@RetryTimeLapse
,@RetryTimeLapseMeasurement
,@RetainHistoryNum
,@AttachToEvent
,@CatchUpEnabled
,@Enabled
,@ObjectDependencies
,@Servers
,@FriendlyName
,@CreatedByUserID
,getdate()
,@CreatedByUserID
,getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RoleGroups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[RoleGroups]
(
[RoleGroupID] [int] NOT NULL IDENTITY(0, 1),
[PortalID] [int] NOT NULL,
[RoleGroupName] [nvarchar] (50) NOT NULL,
[Description] [nvarchar] (1000) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'RoleGroups' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[RoleGroups] ADD CONSTRAINT [PK_RoleGroups] PRIMARY KEY CLUSTERED ([RoleGroupID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRoleGroups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetRoleGroups
@PortalID int
AS
SELECT *
FROM dbo.RoleGroups
WHERE PortalId = @PortalID
ORDER BY RoleGroupName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RemoveStringCharacters' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[RemoveStringCharacters]
(
@string nvarchar(max),
@remove nvarchar(100)
)
RETURNS nvarchar(max)
AS
BEGIN
WHILE @string LIKE '%[' + @remove + ']%'
BEGIN
SET @string = REPLACE(@string,SUBSTRING(@string,PATINDEX('%[' + @remove + ']%',@string),1),'')
END
RETURN @string
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'BuildTabLevelAndPath' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[BuildTabLevelAndPath](@TabId INT, @IncludeChild BIT = 0)
AS
BEGIN
DECLARE @ParentId INT, @Level INT, @TabPath NVARCHAR(255), @TabName NVARCHAR(50)
SELECT @ParentId = ParentId, @TabName = TabName FROM dbo.[Tabs] WHERE TabID = @TabId
IF @ParentId > 0
BEGIN
SELECT
@Level = [Level] + 1,
@TabPath = TabPath + '//' + dbo.[RemoveStringCharacters](@TabName, '&? ./''-#:*')
FROM dbo.[Tabs] WHERE TabID = @ParentId
END
ELSE
BEGIN
SELECT @Level = 0, @TabPath = '//' + dbo.[RemoveStringCharacters](@TabName, '&? ./''-#:*')
END
UPDATE dbo.[Tabs] SET [Level] = @Level, TabPath = @TabPath WHERE TabID = @TabId
IF @IncludeChild = 1
BEGIN
DECLARE @ChildTabs TABLE(TabID INT)
DECLARE @ChildID INT
INSERT INTO @ChildTabs SELECT TabID FROM dbo.[Tabs] WHERE ParentId = @TabId
WHILE EXISTS (SELECT TOP 1 TabID FROM @ChildTabs)
BEGIN
SET @ChildID = (SELECT TOP 1 TabID FROM @ChildTabs)
EXEC dbo.[BuildTabLevelAndPath] @ChildID, @IncludeChild
DELETE FROM @ChildTabs WHERE TabID = @ChildID
END
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UrlTracking' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UrlTracking]
(
[UrlTrackingID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[Url] [nvarchar] (255) NOT NULL,
[UrlType] [char] (1) NOT NULL,
[Clicks] [int] NOT NULL,
[LastClick] [datetime] NULL,
[CreatedDate] [datetime] NOT NULL,
[LogActivity] [bit] NOT NULL,
[TrackClicks] [bit] NOT NULL CONSTRAINT [DF_UrlTracking_TrackClicks] DEFAULT ((1)),
[ModuleId] [int] NULL,
[NewWindow] [bit] NOT NULL CONSTRAINT [DF_UrlTracking_NewWindow] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UrlTracking' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UrlTracking] ADD CONSTRAINT [PK_UrlTracking] PRIMARY KEY CLUSTERED ([UrlTrackingID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSkinPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSkinPackage]
@PackageID int,
@PortalID int,
@SkinName nvarchar(50),
@SkinType nvarchar(20),
@CreatedByUserID int
AS
INSERT INTO dbo.SkinPackages (
PackageID,
PortalID,
SkinName,
SkinType,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PackageID,
@PortalID,
@SkinName,
@SkinType,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Files' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Files]
(
[FileId] [int] NOT NULL IDENTITY(1, 1),
[PortalId] [int] NULL,
[FileName] [nvarchar] (246) NOT NULL,
[Extension] [nvarchar] (100) NOT NULL,
[Size] [int] NOT NULL,
[Width] [int] NULL,
[Height] [int] NULL,
[ContentType] [nvarchar] (200) NOT NULL,
[Folder] [nvarchar] (246) NULL,
[FolderID] [int] NOT NULL,
[Content] [image] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[UniqueId] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Files_UniqueId] DEFAULT (newid()),
[VersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Files_VersionGuid] DEFAULT (newid()),
[SHA1Hash] [varchar] (40) NULL,
[LastModificationTime] [datetime] NOT NULL CONSTRAINT [DF__Files__LastM__629A9179] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Files' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Files] ADD CONSTRAINT [PK_File] PRIMARY KEY CLUSTERED ([FileId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Files' already exists on table 'dbo.Files'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Files] ON dbo.[Files] ([PortalId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteFile
@PortalID int,
@FileName nvarchar(246),
@FolderID int
AS
BEGIN
IF @PortalID is null
BEGIN
DELETE FROM dbo.Files WHERE FileName = @FileName AND FolderID = @FolderID AND PortalId IS Null
END ELSE BEGIN
DELETE FROM dbo.Files WHERE FileName = @FileName AND FolderID = @FolderID AND PortalId = @PortalID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'TabModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[TabModuleSettings]
(
[TabModuleID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (max) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'TabModuleSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[TabModuleSettings] ADD CONSTRAINT [PK_TabModuleSettings] PRIMARY KEY CLUSTERED ([TabModuleID], [SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetTabModuleSettings
@TabModuleId int
as
select SettingName,
SettingValue
from dbo.TabModuleSettings
where TabModuleId = @TabModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_Messages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[CoreMessaging_Messages]
(
[MessageID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[NotificationTypeID] [int] NULL,
[To] [nvarchar] (2000) NULL,
[From] [nvarchar] (200) NULL,
[Subject] [nvarchar] (400) NULL,
[Body] [nvarchar] (max) NULL,
[ConversationID] [int] NULL,
[ReplyAllAllowed] [bit] NULL,
[SenderUserID] [int] NULL,
[ExpirationDate] [datetime] NULL,
[Context] [nvarchar] (200) NULL,
[IncludeDismissAction] [bit] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'CoreMessaging_Messages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[CoreMessaging_Messages] ADD CONSTRAINT [PK_CoreMessaging_Messages] PRIMARY KEY CLUSTERED ([MessageID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_CoreMessaging_Messages_SenderUserID' already exists on table 'dbo.CoreMessaging_Messages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_CoreMessaging_Messages_SenderUserID] ON dbo.[CoreMessaging_Messages] ([SenderUserID], [CreatedOnDate] DESC)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_MessageRecipients' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[CoreMessaging_MessageRecipients]
(
[RecipientID] [int] NOT NULL IDENTITY(1, 1),
[MessageID] [int] NOT NULL,
[UserID] [int] NOT NULL,
[Read] [bit] NOT NULL CONSTRAINT [DF__CoreMe__Read__3AC1AA49] DEFAULT ((0)),
[Archived] [bit] NOT NULL CONSTRAINT [DF__CoreM__Archi__3BB5CE82] DEFAULT ((0)),
[EmailSent] [bit] NOT NULL CONSTRAINT [DF__CoreM__Email__3CA9F2BB] DEFAULT ((0)),
[EmailSentDate] [datetime] NULL,
[EmailSchedulerInstance] [uniqueidentifier] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'CoreMessaging_MessageRecipients' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[CoreMessaging_MessageRecipients] ADD CONSTRAINT [PK_CoreMessaging_MessageRecipients] PRIMARY KEY CLUSTERED ([RecipientID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_CoreMessaging_MessageRecipients_UserID' already exists on table 'dbo.CoreMessaging_MessageRecipients'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_CoreMessaging_MessageRecipients_UserID] ON dbo.[CoreMessaging_MessageRecipients] ([UserID], [Read] DESC, [Archived])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CreateMessageReply' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CreateMessageReply]
@ConversationID INT, -- parent message id
@PortalID INT, --portalID of message
@Body nvarchar(max), -- message body
@SenderUserID INT, -- create / update user id
@From nvarchar(200), -- message from
@CreateUpdateUserID INT -- create / update user id
AS
DECLARE @ReplyAllAllowed BIT
DECLARE @NewMessageID INT
DECLARE @OriginalSenderUserID INT
DECLARE @OriginalTo nvarchar(2000)
DECLARE @OriginalSubject nvarchar(400)
--Was Sender a Recipient in the Original Message.
SELECT @ReplyAllAllowed = [ReplyAllAllowed],
@OriginalSenderUserID = [SenderUserID],
@OriginalTo = [TO],
@OriginalSubject = [Subject]
FROM dbo.CoreMessaging_Messages m
INNER JOIN dbo.CoreMessaging_MessageRecipients mr ON m.MessageID = mr.MessageID
AND m.MessageID = @ConversationID
AND mr.UserID = @SenderUserID
--Reply can only be create if Sender was Recipient of Orginial message
IF @ReplyAllAllowed IS NULL
BEGIN
SELECT -1
RETURN
END
--Create new message
INSERT dbo.CoreMessaging_Messages(
[PortalID],
[To],
[From],
[Subject],
[Body],
[ConversationID],
[ReplyAllAllowed],
[SenderUserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalID,
@OriginalTo,
@From,
@OriginalSubject,
@Body,
@ConversationID,
@ReplyAllAllowed,
@SenderUserID,
@CreateUpdateUserID , -- CreatedBy - int
GETUTCDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @NewMessageID = SCOPE_IDENTITY()
IF (@ReplyAllAllowed = 0) --original message was sent to a Role, reply will be sent to the original sender only
BEGIN
INSERT INTO dbo.CoreMessaging_MessageRecipients
( [MessageID],
[UserID],
[Read],
[Archived],
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES ( @NewMessageID, -- MessageID - int
@OriginalSenderUserID, -- UserID - int
0, -- Read - bit
0, -- Archived - bit
@CreateUpdateUserID , -- CreatedByUserID - int
GETDATE() , -- CreatedOnDate - datetime
@CreateUpdateUserID , -- LastModifiedByUserID - int
GETDATE() -- LastModifiedOnDate - datetime
)
IF @OriginalSenderUserID <> @SenderUserID
BEGIN
INSERT INTO dbo.CoreMessaging_MessageRecipients
( [MessageID],
[UserID],
[Read],
[Archived],
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES ( @NewMessageID, -- MessageID - int
@SenderUserID, -- UserID - int
1, -- Read - bit
0, -- Archived - bit
@CreateUpdateUserID , -- CreatedByUserID - int
GETDATE() , -- CreatedOnDate - datetime
@CreateUpdateUserID , -- LastModifiedByUserID - int
GETDATE() -- LastModifiedOnDate - datetime
)
END
END
ELSE --Reply should be sent to all the original Recipients
BEGIN
INSERT dbo.CoreMessaging_MessageRecipients(
[MessageID],
[UserID],
[Read],
[Archived],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
SELECT
@NewMessageID,
UserID,
0,
0,
@CreateUpdateUserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
FROM dbo.CoreMessaging_MessageRecipients
WHERE MessageID = @ConversationID
END
SELECT @NewMessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabModuleVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabModuleVersion]
@TabModuleID int,
@VersionGuid uniqueidentifier
AS
UPDATE dbo.TabModules
SET VersionGuid = @VersionGuid
WHERE TabModuleID = @TabModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPackage
@PackageID int
AS
SELECT *
FROM dbo.Packages
WHERE PackageID = @PackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUnIndexedContentItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUnIndexedContentItems]
AS
SELECT *
FROM dbo.ContentItems
WHERE Indexed = 0
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ScheduleHistory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ScheduleHistory]
(
[ScheduleHistoryID] [int] NOT NULL IDENTITY(1, 1),
[ScheduleID] [int] NOT NULL,
[StartDate] [datetime] NOT NULL,
[EndDate] [datetime] NULL,
[Succeeded] [bit] NULL,
[LogNotes] [ntext] NULL,
[NextStart] [datetime] NULL,
[Server] [nvarchar] (150) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ScheduleHistory' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ScheduleHistory] ADD CONSTRAINT [PK_ScheduleHistory] PRIMARY KEY CLUSTERED ([ScheduleHistoryID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ScheduleHistory_NextStart' already exists on table 'dbo.ScheduleHistory'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ScheduleHistory_NextStart] ON dbo.[ScheduleHistory] ([ScheduleID], [NextStart] DESC)
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ScheduleHistory_StartDate' already exists on table 'dbo.ScheduleHistory'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ScheduleHistory_StartDate] ON dbo.[ScheduleHistory] ([ScheduleID], [StartDate] DESC)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PurgeScheduleHistory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.PurgeScheduleHistory
AS
DELETE FROM dbo.ScheduleHistory
FROM dbo.Schedule s
WHERE (
SELECT COUNT(*)
FROM dbo.ScheduleHistory sh
WHERE sh.ScheduleID = ScheduleHistory.ScheduleID
AND sh.StartDate >= ScheduleHistory.StartDate
) > s.RetainHistoryNum
AND s.RetainHistoryNum <> -1
AND s.ScheduleID = ScheduleHistory.ScheduleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTab]
@TabId int,
@ContentItemID int,
@PortalId int,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@TabName nvarchar(50),
@IsVisible bit,
@DisableLink bit,
@ParentId int,
@IconFile nvarchar(100),
@IconFileLarge nvarchar(100),
@Title nvarchar(200),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@IsDeleted bit,
@Url nvarchar(255),
@SkinSrc nvarchar(200),
@ContainerSrc nvarchar(200),
@StartDate datetime,
@EndDate datetime,
@RefreshInterval int,
@PageHeadText nvarchar(max),
@IsSecure bit,
@PermanentRedirect bit,
@SiteMapPriority float,
@LastModifiedByUserID int,
@CultureCode nvarchar(50)
AS
BEGIN
DECLARE @OldParentId int
SET @OldParentId = (SELECT ParentId FROM dbo.[Tabs] WHERE TabID = @TabId)
DECLARE @TabOrder int
SET @TabOrder = (SELECT TabOrder FROM dbo.[Tabs] WHERE TabID = @TabId)
-- Get New TabOrder
DECLARE @NewTabOrder int
SET @NewTabOrder = (SELECT MAX(TabOrder) FROM dbo.[Tabs] WHERE (ParentId = @ParentId OR (ParentId IS NULL AND @ParentId IS NULL)))
IF @NewTabOrder IS NULL
SET @NewTabOrder = 1
ELSE
SET @NewTabOrder = @NewTabOrder + 2
UPDATE dbo.[Tabs]
SET
ContentItemID = @ContentItemID,
PortalId = @PortalId,
VersionGuid = @VersionGuid,
DefaultLanguageGuid = @DefaultLanguageGuid,
LocalizedVersionGuid = @LocalizedVersionGuid,
TabName = @TabName,
IsVisible = @IsVisible,
DisableLink = @DisableLink,
ParentId = @ParentId,
IconFile = @IconFile,
IconFileLarge = @IconFileLarge,
Title = @Title,
Description = @Description,
KeyWords = @KeyWords,
IsDeleted = @IsDeleted,
Url = @Url,
SkinSrc = @SkinSrc,
ContainerSrc = @ContainerSrc,
StartDate = @StartDate,
EndDate = @EndDate,
RefreshInterval = @RefreshInterval,
PageHeadText = @PageHeadText,
IsSecure = @IsSecure,
PermanentRedirect = @PermanentRedirect,
SiteMapPriority = @SiteMapPriority,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate(),
CultureCode = @CultureCode
WHERE TabId = @TabId
IF (@OldParentId <> @ParentId)
BEGIN
-- update TabOrder of Tabs with same original Parent
UPDATE dbo.[Tabs]
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId)
AND TabOrder > @TabOrder
-- Update Tab with new TabOrder
UPDATE dbo.[Tabs]
SET
TabOrder = @NewTabOrder
WHERE TabID = @TabId
END
EXEC dbo.BuildTabLevelAndPath @TabId, 1
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPropertyDefinitionsByCategory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPropertyDefinitionsByCategory
@PortalID int,
@Category nvarchar(50)
AS
SELECT *
FROM dbo.ProfilePropertyDefinition
WHERE (PortalId = @PortalID OR (PortalId IS NULL AND @PortalID IS NULL))
AND PropertyCategory = @Category
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'LocalizeTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[LocalizeTab]
@TabId int,
@CultureCode nvarchar(10),
@LastModifiedByUserID int
AS
BEGIN
UPDATE dbo.Tabs
SET
CultureCode = @CultureCode,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabID = @TabId
UPDATE dbo.TabModules
SET
CultureCode = @CultureCode,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabID = @TabId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'LanguagePacks' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[LanguagePacks]
(
[LanguagePackID] [int] NOT NULL IDENTITY(1, 1),
[PackageID] [int] NOT NULL,
[DependentPackageID] [int] NOT NULL,
[LanguageID] [int] NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'LanguagePacks' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[LanguagePacks] ADD CONSTRAINT [PK_LanguagePacks] PRIMARY KEY CLUSTERED ([LanguagePackID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_LanguagePacks' already exists on table 'dbo.LanguagePacks'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_LanguagePacks] ON dbo.[LanguagePacks] ([LanguageID], [PackageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetLanguagePackByPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetLanguagePackByPackage]
@PackageID int
AS
SELECT * FROM dbo.LanguagePacks
WHERE PackageID = @PackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Assemblies' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Assemblies]
(
[AssemblyID] [int] NOT NULL IDENTITY(1, 1),
[PackageID] [int] NULL,
[AssemblyName] [nvarchar] (250) NOT NULL,
[Version] [nvarchar] (20) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Assemblies' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Assemblies] ADD CONSTRAINT [PK_PackageAssemblies] PRIMARY KEY CLUSTERED ([AssemblyID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UnRegisterAssembly' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UnRegisterAssembly
@PackageID int,
@AssemblyName nvarchar(250)
AS
DECLARE @ReturnCode bit
SET @ReturnCode = 1 -- 1 = Can Delete Assembly, 0 = Cannot Delete Assembly
-- First remove the Assembly Reference for this Package
DELETE FROM dbo.Assemblies
WHERE PackageID = @PackageID
AND AssemblyName = @AssemblyName
-- Next check if any other Package is using this assembly
SET @PackageID = (SELECT TOP 1 PackageID
FROM dbo.Assemblies
WHERE AssemblyName = @AssemblyName)
IF @PackageID IS NOT NULL
-- Set ReturnCode = 0, so assembly is not deleted
SET @ReturnCode = 0
SELECT @ReturnCode
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetProfilePropertyDefinitionID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetProfilePropertyDefinitionID]
(
@PortalID int,
@PropertyName nvarchar(50)
)
RETURNS int
AS
BEGIN
DECLARE @DefinitionID int
SELECT @DefinitionID = -1
IF @PropertyName IS NULL
OR LEN(@PropertyName) = 0
RETURN -1
IF @PortalID IS NULL
SET @PortalID = -1
SET @DefinitionID = (SELECT PropertyDefinitionID
FROM dbo.ProfilePropertyDefinition
WHERE PortalID = @PortalID
AND PropertyName = @PropertyName
)
RETURN @DefinitionID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Version' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Version]
(
[VersionId] [int] NOT NULL IDENTITY(1, 1),
[Major] [int] NOT NULL,
[Minor] [int] NOT NULL,
[Build] [int] NOT NULL,
[Name] [nvarchar] (50) NULL,
[CreatedDate] [datetime] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Version' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Version] ADD CONSTRAINT [PK_Version] PRIMARY KEY CLUSTERED ([VersionId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateDatabaseVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateDatabaseVersion
@Major int,
@Minor int,
@Build int
as
insert into dbo.Version (
Major,
Minor,
Build,
CreatedDate
)
values (
@Major,
@Minor,
@Build,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Permission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Permission]
(
[PermissionID] [int] NOT NULL IDENTITY(1, 1),
[PermissionCode] [varchar] (50) NOT NULL,
[ModuleDefID] [int] NOT NULL,
[PermissionKey] [varchar] (50) NOT NULL,
[PermissionName] [varchar] (50) NOT NULL,
[ViewOrder] [int] NOT NULL CONSTRAINT [DF_Permission_ViewOrder] DEFAULT ((9999)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Permission' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Permission] ADD CONSTRAINT [PK_Permission] PRIMARY KEY CLUSTERED ([PermissionID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DesktopModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[DesktopModulePermission]
(
[DesktopModulePermissionID] [int] NOT NULL IDENTITY(1, 1),
[PortalDesktopModuleID] [int] NOT NULL,
[PermissionID] [int] NOT NULL,
[AllowAccess] [bit] NOT NULL,
[RoleID] [int] NULL,
[UserID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'DesktopModulePermission' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[DesktopModulePermission] ADD CONSTRAINT [PK_DesktopModulePermission] PRIMARY KEY CLUSTERED ([DesktopModulePermissionID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_DesktopModulePermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_DesktopModulePermissions]
AS
SELECT
PP.DesktopModulePermissionID,
PP.PortalDesktopModuleID,
P.PermissionID,
PP.RoleID,
CASE PP.RoleID
when -1 then 'All Users'
when -2 then 'Superuser'
when -3 then 'Unauthenticated Users'
else R.RoleName
END AS 'RoleName',
PP.AllowAccess,
PP.UserID,
U.Username,
U.DisplayName,
P.PermissionCode,
P.ModuleDefID,
P.PermissionKey,
P.PermissionName,
PP.CreatedByUserID,
PP.CreatedOnDate,
PP.LastModifiedByUserID,
PP.LastModifiedOnDate
FROM dbo.DesktopModulePermission AS PP
LEFT OUTER JOIN dbo.Permission AS P ON PP.PermissionID = P.PermissionID
LEFT OUTER JOIN dbo.Roles AS R ON PP.RoleID = R.RoleID
LEFT OUTER JOIN dbo.Users AS U ON PP.UserID = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchItem]
(
[SearchItemID] [int] NOT NULL IDENTITY(1, 1),
[Title] [nvarchar] (200) NOT NULL,
[Description] [nvarchar] (2000) NOT NULL,
[Author] [int] NULL,
[PubDate] [datetime] NOT NULL,
[ModuleId] [int] NOT NULL,
[SearchKey] [nvarchar] (100) NOT NULL,
[Guid] [varchar] (200) NULL,
[HitCount] [int] NULL,
[ImageFileId] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchItem' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchItem] ADD CONSTRAINT [PK_SearchItem] PRIMARY KEY CLUSTERED ([SearchItemID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_SearchItem' already exists on table 'dbo.SearchItem'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_SearchItem] ON dbo.[SearchItem] ([ModuleId], [SearchKey])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ListSearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.ListSearchItem
AS
select
[SearchItemID],
[Title],
[Description],
[Author],
[PubDate],
[ModuleId],
[SearchKey],
[Guid],
[HitCount],
ImageFileId
from
dbo.SearchItem
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRoleGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetRoleGroup
@PortalID int,
@RoleGroupId int
AS
SELECT *
FROM dbo.RoleGroups
WHERE (RoleGroupId = @RoleGroupId OR RoleGroupId IS NULL AND @RoleGroupId IS NULL)
AND PortalId = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Portals' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Portals]
(
[PortalID] [int] NOT NULL IDENTITY(0, 1),
[ExpiryDate] [datetime] NULL,
[UserRegistration] [int] NOT NULL CONSTRAINT [DF_Portals_UserRegistration] DEFAULT ((0)),
[BannerAdvertising] [int] NOT NULL CONSTRAINT [DF_Portals_BannerAdvertising] DEFAULT ((0)),
[AdministratorId] [int] NULL,
[Currency] [char] (3) NULL,
[HostFee] [money] NOT NULL CONSTRAINT [DF_Portals_HostFee] DEFAULT ((0)),
[HostSpace] [int] NOT NULL CONSTRAINT [DF_Portals_HostSpace] DEFAULT ((0)),
[AdministratorRoleId] [int] NULL,
[RegisteredRoleId] [int] NULL,
[GUID] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Portals_GUID] DEFAULT (newid()),
[PaymentProcessor] [nvarchar] (50) NULL,
[ProcessorUserId] [nvarchar] (50) NULL,
[ProcessorPassword] [nvarchar] (50) NULL,
[SiteLogHistory] [int] NULL,
[DefaultLanguage] [nvarchar] (10) NOT NULL CONSTRAINT [DF_Portals_DefaultLanguage] DEFAULT ('en-US'),
[TimezoneOffset] [int] NOT NULL CONSTRAINT [DF_Portals_TimezoneOffset] DEFAULT ((-8)),
[HomeDirectory] [varchar] (100) NOT NULL CONSTRAINT [DF_Portals_HomeDirectory] DEFAULT (''),
[PageQuota] [int] NOT NULL CONSTRAINT [DF_Portals_PageQuota] DEFAULT ((0)),
[UserQuota] [int] NOT NULL CONSTRAINT [DF_Portals_UserQuota] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[PortalGroupID] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Portals' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Portals] ADD CONSTRAINT [PK_Portals] PRIMARY KEY CLUSTERED ([PortalID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Portals_AdministratorId' already exists on table 'dbo.Portals'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Portals_AdministratorId] ON dbo.[Portals] ([AdministratorId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Portals_DefaultLanguage' already exists on table 'dbo.Portals'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Portals_DefaultLanguage] ON dbo.[Portals] ([DefaultLanguage])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalLocalization' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalLocalization]
(
[PortalID] [int] NOT NULL,
[CultureCode] [nvarchar] (10) NOT NULL,
[PortalName] [nvarchar] (128) NOT NULL,
[LogoFile] [nvarchar] (50) NULL,
[FooterText] [nvarchar] (100) NULL,
[Description] [nvarchar] (500) NULL,
[KeyWords] [nvarchar] (500) NULL,
[BackgroundFile] [nvarchar] (50) NULL,
[HomeTabId] [int] NULL,
[LoginTabId] [int] NULL,
[UserTabId] [int] NULL,
[AdminTabId] [int] NULL,
[SplashTabId] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[RegisterTabId] [int] NULL,
[SearchTabId] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalLocalization' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalLocalization] ADD CONSTRAINT [PK_PortalLocalization] PRIMARY KEY CLUSTERED ([PortalID], [CultureCode])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Portals' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_Portals]
AS
SELECT DISTINCT
P.PortalID,
P.PortalGroupID,
PL.PortalName,
CASE WHEN LEFT(LOWER(PL.LogoFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName FROM dbo.Files WHERE fileid = CAST((RIGHT(LOWER(PL.LogoFile), Len(PL.LogoFile) - 7)) AS int))
ELSE
PL.LogoFile
END AS LogoFile,
PL.FooterText,
P.ExpiryDate,
P.UserRegistration,
P.BannerAdvertising,
P.AdministratorId,
P.Currency,
P.HostFee,
P.HostSpace,
P.PageQuota,
P.UserQuota,
P.AdministratorRoleId,
P.RegisteredRoleId,
PL.Description,
PL.KeyWords,
CASE WHEN LEFT(LOWER(PL.BackgroundFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName FROM dbo.Files WHERE fileid = CAST((RIGHT(LOWER(PL.BackgroundFile), Len(PL.BackgroundFile) - 7)) AS int))
ELSE
PL.BackgroundFile
END AS BackgroundFile,
P.GUID,
P.PaymentProcessor,
P.ProcessorUserId,
P.ProcessorPassword,
P.SiteLogHistory,
U.Email,
P.DefaultLanguage,
P.TimezoneOffset,
PL.AdminTabId,
P.HomeDirectory,
PL.SplashTabId,
PL.HomeTabId,
PL.LoginTabId,
PL.RegisterTabId,
PL.UserTabId,
PL.SearchTabId,
(SELECT TOP (1) TabID
FROM dbo.Tabs
WHERE (PortalID IS NULL) AND (ParentId IS NULL))
AS SuperTabId,
P.CreatedByUserID,
P.CreatedOnDate,
P.LastModifiedByUserID,
P.LastModifiedOnDate,
PL.CultureCode
FROM dbo.Portals AS P
INNER JOIN dbo.PortalLocalization AS PL ON P.PortalID = PL.PortalID
LEFT OUTER JOIN dbo.Users AS U ON P.AdministratorId = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalDesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalDesktopModules]
(
[PortalDesktopModuleID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NOT NULL,
[DesktopModuleID] [int] NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalDesktopModules' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalDesktopModules] ADD CONSTRAINT [PK_PortalDesktopModules] PRIMARY KEY CLUSTERED ([PortalDesktopModuleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[DesktopModules]
(
[DesktopModuleID] [int] NOT NULL IDENTITY(1, 1),
[FriendlyName] [nvarchar] (128) NOT NULL,
[Description] [nvarchar] (2000) NULL,
[Version] [nvarchar] (8) NULL,
[IsPremium] [bit] NOT NULL,
[IsAdmin] [bit] NOT NULL,
[BusinessControllerClass] [nvarchar] (200) NULL,
[FolderName] [nvarchar] (128) NOT NULL,
[ModuleName] [nvarchar] (128) NOT NULL,
[SupportedFeatures] [int] NOT NULL CONSTRAINT [DF_DesktopModules_SupportedFeatures] DEFAULT ((0)),
[CompatibleVersions] [nvarchar] (500) NULL,
[Dependencies] [nvarchar] (400) NULL,
[Permissions] [nvarchar] (400) NULL,
[PackageID] [int] NOT NULL CONSTRAINT [DF_DesktopModules_PackageID] DEFAULT ((-1)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[ContentItemId] [int] NOT NULL CONSTRAINT [DF_DesktopModules_ContentItemId] DEFAULT ((-1)),
[Shareable] [int] NOT NULL CONSTRAINT [DF_DesktopModules_Shareable] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'DesktopModules' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[DesktopModules] ADD CONSTRAINT [PK_DesktopModules] PRIMARY KEY CLUSTERED ([DesktopModuleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_DesktopModules_FriendlyName' already exists on table 'dbo.DesktopModules'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_DesktopModules_FriendlyName] ON dbo.[DesktopModules] ([FriendlyName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalDesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPortalDesktopModules
@PortalId int,
@DesktopModuleId int
AS
SELECT PortalDesktopModules.*,
PortalName,
FriendlyName
FROM PortalDesktopModules
INNER JOIN vw_Portals ON PortalDesktopModules.PortalId = vw_Portals.PortalId
INNER JOIN DesktopModules ON PortalDesktopModules.DesktopModuleId = DesktopModules.DesktopModuleId
WHERE ((PortalDesktopModules.PortalId = @PortalId) OR @PortalId is null)
AND ((PortalDesktopModules.DesktopModuleId = @DesktopModuleId) OR @DesktopModuleId is null)
ORDER BY PortalDesktopModules.PortalId, PortalDesktopModules.DesktopModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSkinPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateSkinPackage]
@SkinPackageID int,
@PackageID int,
@PortalID int,
@SkinName nvarchar(50),
@SkinType nvarchar(20),
@LastModifiedByUserID int
AS
UPDATE dbo.SkinPackages
SET
PackageID = @PackageID,
PortalID = @PortalID,
SkinName = @SkinName,
SkinType = @SkinType,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE SkinPackageID = @SkinPackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDesktopModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDesktopModulePermission]
@DesktopModulePermissionID int
AS
SELECT *
FROM dbo.vw_DesktopModulePermissions
WHERE DesktopModulePermissionID = @DesktopModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddRoleGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddRoleGroup
@PortalID int,
@RoleGroupName nvarchar(50),
@Description nvarchar(1000),
@CreatedByUserID int
AS
INSERT INTO dbo.RoleGroups (
PortalId,
RoleGroupName,
Description,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalID,
@RoleGroupName,
@Description,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SystemMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SystemMessages]
(
[MessageID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[MessageName] [nvarchar] (50) NOT NULL,
[MessageValue] [ntext] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SystemMessages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SystemMessages] ADD CONSTRAINT [PK_SystemMessages] PRIMARY KEY CLUSTERED ([MessageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSystemMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSystemMessage
@PortalID int,
@MessageName nvarchar(50)
AS
BEGIN
if @PortalID is null
begin
select MessageValue
from dbo.SystemMessages
where PortalID is null and MessageName = @MessageName
end else begin
select MessageValue
from dbo.SystemMessages
where PortalID = @PortalID and MessageName = @MessageName
end
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ModuleControls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ModuleControls]
(
[ModuleControlID] [int] NOT NULL IDENTITY(1, 1),
[ModuleDefID] [int] NULL,
[ControlKey] [nvarchar] (50) NULL,
[ControlTitle] [nvarchar] (50) NULL,
[ControlSrc] [nvarchar] (256) NULL,
[IconFile] [nvarchar] (100) NULL,
[ControlType] [int] NOT NULL,
[ViewOrder] [int] NULL,
[HelpUrl] [nvarchar] (200) NULL,
[SupportsPartialRendering] [bit] NOT NULL CONSTRAINT [DF_ModuleControls_SupportsPartialRendering] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[SupportsPopUps] [bit] NOT NULL CONSTRAINT [DF_ModuleControls_SupportsPopUps] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ModuleControls' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ModuleControls] ADD CONSTRAINT [PK_ModuleControls] PRIMARY KEY CLUSTERED ([ModuleControlID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModuleControls_ControlKey_ViewOrder' already exists on table 'dbo.ModuleControls'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ModuleControls_ControlKey_ViewOrder] ON dbo.[ModuleControls] ([ControlKey], [ViewOrder])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_TabModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.vw_TabModules
AS
SELECT
M.PortalID AS [OwnerPortalID],
T.PortalID,
TM.TabID,
TM.TabModuleID,
M.ModuleID,
M.ModuleDefID,
TM.ModuleOrder,
TM.PaneName,
TM.ModuleTitle,
TM.CacheTime,
TM.CacheMethod,
TM.Alignment,
TM.Color,
TM.Border,
CASE WHEN LEFT(LOWER(TM.IconFile), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + CONVERT(varchar, dbo.Files.FileID) = TM.IconFile) ELSE TM.IconFile END AS IconFile,
M.AllTabs,
TM.Visibility,
TM.IsDeleted,
TM.Header,
TM.Footer,
M.StartDate,
M.EndDate,
TM.ContainerSrc,
TM.DisplayTitle,
TM.DisplayPrint,
TM.DisplaySyndicate,
TM.IsWebSlice,
TM.WebSliceTitle,
TM.WebSliceExpiryDate,
TM.WebSliceTTL,
M.InheritViewPermissions,
M.IsShareable,
M.IsShareableViewOnly,
MD.DesktopModuleID,
MD.DefaultCacheTime,
MC.ModuleControlID,
DM.BusinessControllerClass,
DM.IsAdmin,
DM.SupportedFeatures,
CI.ContentItemID,
CI.Content,
CI.ContentTypeID,
CI.ContentKey,
CI.Indexed,
TM.CreatedByUserID,
TM.CreatedOnDate,
TM.LastModifiedByUserID,
TM.LastModifiedOnDate,
M.LastContentModifiedOnDate,
TM.UniqueId,
TM.VersionGuid,
TM.DefaultLanguageGuid,
TM.LocalizedVersionGuid,
TM.CultureCode
FROM dbo.ModuleDefinitions AS MD
INNER JOIN dbo.Modules AS M ON MD.ModuleDefID = M.ModuleDefID
INNER JOIN dbo.ModuleControls AS MC ON MD.ModuleDefID = MC.ModuleDefID
INNER JOIN dbo.DesktopModules AS DM ON MD.DesktopModuleID = DM.DesktopModuleID
LEFT OUTER JOIN dbo.ContentItems AS CI ON M.ContentItemID = CI.ContentItemID
LEFT OUTER JOIN dbo.TabModules AS TM ON M.ModuleID = TM.ModuleID
LEFT OUTER JOIN dbo.Tabs AS T ON TM.TabID = T.TabID
WHERE (MC.ControlKey IS NULL)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ModulePermission]
(
[ModulePermissionID] [int] NOT NULL IDENTITY(1, 1),
[ModuleID] [int] NOT NULL,
[PermissionID] [int] NOT NULL,
[AllowAccess] [bit] NOT NULL,
[RoleID] [int] NULL,
[UserID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[PortalID] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ModulePermission' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ModulePermission] ADD CONSTRAINT [PK_ModulePermission] PRIMARY KEY CLUSTERED ([ModulePermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModulePermission_Permission' already exists on table 'dbo.ModulePermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ModulePermission_Permission] ON dbo.[ModulePermission] ([PermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModulePermission_Roles' already exists on table 'dbo.ModulePermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ModulePermission_Roles] ON dbo.[ModulePermission] ([RoleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_ModulePermission_Users' already exists on table 'dbo.ModulePermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_ModulePermission_Users] ON dbo.[ModulePermission] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_ModulePermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_ModulePermissions]
AS
SELECT
MP.ModulePermissionID,
MP.ModuleID,
MP.PortalID,
P.PermissionID,
MP.RoleID,
CASE MP.RoleID WHEN - 1 THEN 'All Users' WHEN - 2 THEN 'Superuser' WHEN - 3 THEN 'Unauthenticated Users' ELSE R.RoleName END AS RoleName,
MP.AllowAccess,
MP.UserID,
U.Username,
U.DisplayName,
P.PermissionCode,
P.ModuleDefID,
P.PermissionKey,
P.PermissionName,
MP.CreatedByUserID,
MP.CreatedOnDate,
MP.LastModifiedByUserID,
MP.LastModifiedOnDate
FROM dbo.ModulePermission AS MP
LEFT OUTER JOIN dbo.Permission AS P ON MP.PermissionID = P.PermissionID
LEFT OUTER JOIN dbo.Roles AS R ON MP.RoleID = R.RoleID
LEFT OUTER JOIN dbo.Users AS U ON MP.UserID = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModulePermissionsByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModulePermissionsByPortal]
@PortalID int
AS
SELECT *
FROM dbo.vw_ModulePermissions MP
INNER JOIN dbo.Modules AS M ON MP.ModuleID = M.ModuleID
WHERE M.PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteFiles
@PortalID int
AS
BEGIN
IF @PortalID is null
BEGIN
DELETE FROM dbo.Files WHERE PortalId is null
END ELSE BEGIN
DELETE FROM dbo.Files WHERE PortalId = @PortalID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchCommonWords' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchCommonWords]
(
[CommonWordID] [int] NOT NULL IDENTITY(1, 1),
[CommonWord] [nvarchar] (255) NOT NULL,
[Locale] [nvarchar] (10) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchCommonWords' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchCommonWords] ADD CONSTRAINT [PK_SearchCommonWords] PRIMARY KEY CLUSTERED ([CommonWordID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSearchCommonWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSearchCommonWord
@CommonWordID int,
@CommonWord nvarchar(255),
@Locale nvarchar(10)
AS
UPDATE dbo.SearchCommonWords SET
[CommonWord] = @CommonWord,
[Locale] = @Locale
WHERE
[CommonWordID] = @CommonWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FindDatabaseVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.FindDatabaseVersion
@Major int,
@Minor int,
@Build int
as
select 1
from dbo.Version
where Major = @Major
and Minor = @Minor
and Build = @Build
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Modules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.vw_Modules
AS
SELECT
M.PortalID AS [OwnerPortalID],
T.PortalID,
TM.TabID,
TM.TabModuleID,
M.ModuleID,
M.ModuleDefID,
TM.ModuleOrder,
TM.PaneName,
TM.ModuleTitle,
TM.CacheTime,
TM.CacheMethod,
TM.Alignment,
TM.Color,
TM.Border,
CASE WHEN LEFT(LOWER(TM.IconFile), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + CONVERT(varchar, dbo.Files.FileID) = TM.IconFile) ELSE TM.IconFile END AS IconFile,
M.AllTabs,
TM.Visibility,
TM.IsDeleted,
TM.Header,
TM.Footer,
M.StartDate,
M.EndDate,
TM.ContainerSrc,
TM.DisplayTitle,
TM.DisplayPrint,
TM.DisplaySyndicate,
TM.IsWebSlice,
TM.WebSliceTitle,
TM.WebSliceExpiryDate,
TM.WebSliceTTL,
M.InheritViewPermissions,
M.IsShareable,
M.IsShareableViewOnly,
MD.DesktopModuleID,
MD.DefaultCacheTime,
MC.ModuleControlID,
DM.BusinessControllerClass,
DM.IsAdmin,
DM.SupportedFeatures,
CI.ContentItemID,
CI.Content,
CI.ContentTypeID,
CI.ContentKey,
CI.Indexed,
M.CreatedByUserID,
M.CreatedOnDate,
M.LastModifiedByUserID,
M.LastModifiedOnDate,
M.LastContentModifiedOnDate,
TM.UniqueId,
TM.VersionGuid,
TM.DefaultLanguageGuid,
TM.LocalizedVersionGuid,
TM.CultureCode
FROM dbo.ModuleDefinitions AS MD
INNER JOIN dbo.Modules AS M ON MD.ModuleDefID = M.ModuleDefID
INNER JOIN dbo.ModuleControls AS MC ON MD.ModuleDefID = MC.ModuleDefID
INNER JOIN dbo.DesktopModules AS DM ON MD.DesktopModuleID = DM.DesktopModuleID
LEFT OUTER JOIN dbo.ContentItems AS CI ON M.ContentItemID = CI.ContentItemID
LEFT OUTER JOIN dbo.TabModules AS TM ON M.ModuleID = TM.ModuleID
LEFT OUTER JOIN dbo.Tabs AS T ON TM.TabID = T.TabID
WHERE (MC.ControlKey IS NULL)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleControls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleControls]
AS
SELECT *
FROM dbo.ModuleControls
ORDER BY ControlKey, ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateRoleGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateRoleGroup
@RoleGroupId int,
@RoleGroupName nvarchar(50),
@Description nvarchar(1000),
@LastModifiedUserID int
AS
UPDATE dbo.RoleGroups
SET RoleGroupName = @RoleGroupName,
Description = @Description,
LastModifiedByUserID = @LastModifiedUserID,
LastModifiedOnDate = getdate()
WHERE RoleGroupId = @RoleGroupId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteModule
@ModuleId int
as
delete
from dbo.Modules
where ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateContentItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateContentItem]
@ContentItemID int,
@Content nvarchar(max),
@ContentTypeID int,
@TabID int,
@ModuleID int,
@ContentKey nvarchar(250),
@Indexed bit,
@LastModifiedByUserID int
AS
UPDATE dbo.ContentItems
SET
Content = @Content,
ContentTypeID = @ContentTypeID,
TabID = @TabID,
ModuleID = @ModuleID,
ContentKey = @ContentKey,
Indexed = @Indexed,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE ContentItemId = @ContentItemId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddDesktopModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddDesktopModule]
@PackageID int,
@ModuleName nvarchar(128),
@FolderName nvarchar(128),
@FriendlyName nvarchar(128),
@Description nvarchar(2000),
@Version nvarchar(8),
@IsPremium bit,
@IsAdmin bit,
@BusinessController nvarchar(200),
@SupportedFeatures int,
@Shareable int,
@CompatibleVersions nvarchar(500),
@Dependencies nvarchar(400),
@Permissions nvarchar(400),
@ContentItemId int,
@CreatedByUserID int
AS
INSERT INTO dbo.DesktopModules (
PackageID,
ModuleName,
FolderName,
FriendlyName,
Description,
Version,
IsPremium,
IsAdmin,
BusinessControllerClass,
SupportedFeatures,
Shareable,
CompatibleVersions,
Dependencies,
Permissions,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate,
ContentItemId
)
VALUES (
@PackageID,
@ModuleName,
@FolderName,
@FriendlyName,
@Description,
@Version,
@IsPremium,
@IsAdmin,
@BusinessController,
@SupportedFeatures,
@Shareable,
@CompatibleVersions,
@Dependencies,
@Permissions,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@ContentItemId
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFileContent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.UpdateFileContent
@FileId int,
@Content image
as
update dbo.Files
set Content = @Content
where FileId = @FileId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Vendors' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Vendors]
(
[VendorId] [int] NOT NULL IDENTITY(1, 1),
[VendorName] [nvarchar] (50) NOT NULL,
[Street] [nvarchar] (50) NULL,
[City] [nvarchar] (50) NULL,
[Region] [nvarchar] (50) NULL,
[Country] [nvarchar] (50) NULL,
[PostalCode] [nvarchar] (50) NULL,
[Telephone] [nvarchar] (50) NULL,
[PortalId] [int] NULL,
[Fax] [nvarchar] (50) NULL,
[Email] [nvarchar] (50) NULL,
[Website] [nvarchar] (100) NULL,
[ClickThroughs] [int] NOT NULL CONSTRAINT [DF_Vendors_ClickThroughs] DEFAULT ((0)),
[Views] [int] NOT NULL CONSTRAINT [DF_Vendors_Views] DEFAULT ((0)),
[CreatedByUser] [nvarchar] (100) NULL,
[CreatedDate] [datetime] NULL,
[LogoFile] [nvarchar] (100) NULL,
[KeyWords] [ntext] NULL,
[Unit] [nvarchar] (50) NULL,
[Authorized] [bit] NOT NULL CONSTRAINT [DF_Vendors_Authorized] DEFAULT ((1)),
[FirstName] [nvarchar] (50) NULL,
[LastName] [nvarchar] (50) NULL,
[Cell] [varchar] (50) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Vendors' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Vendors] ADD CONSTRAINT [PK_Vendor] PRIMARY KEY CLUSTERED ([VendorId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateVendor' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.UpdateVendor
@VendorId int,
@VendorName nvarchar(50),
@Unit nvarchar(50),
@Street nvarchar(50),
@City nvarchar(50),
@Region nvarchar(50),
@Country nvarchar(50),
@PostalCode nvarchar(50),
@Telephone nvarchar(50),
@Fax nvarchar(50),
@Cell nvarchar(50),
@Email nvarchar(50),
@Website nvarchar(100),
@FirstName nvarchar(50),
@LastName nvarchar(50),
@UserName nvarchar(100),
@LogoFile nvarchar(100),
@KeyWords text,
@Authorized bit
as
update dbo.Vendors
set VendorName = @VendorName,
Unit = @Unit,
Street = @Street,
City = @City,
Region = @Region,
Country = @Country,
PostalCode = @PostalCode,
Telephone = @Telephone,
Fax = @Fax,
Cell = @Cell,
Email = @Email,
Website = @Website,
FirstName = @FirstName,
LastName = @LastName,
CreatedByUser = @UserName,
CreatedDate = getdate(),
LogoFile = @LogoFile,
KeyWords = @KeyWords,
Authorized = @Authorized
where VendorId = @VendorId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetElement' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetElement]
(
@ord AS INT,
@str AS VARCHAR(8000),
@delim AS VARCHAR(1)
)
RETURNS INT
AS
BEGIN
-- If input is invalid, return null.
IF @str IS NULL
OR LEN(@str) = 0
OR @ord IS NULL
OR @ord < 1
-- @ord > [is the] expression that calculates the number of elements.
OR @ord > LEN(@str) - LEN(REPLACE(@str, @delim, '')) + 1
RETURN NULL
DECLARE @pos AS INT, @curord AS INT
SELECT @pos = 1, @curord = 1
-- Find next element's start position and increment index.
WHILE @curord < @ord
SELECT
@pos = CHARINDEX(@delim, @str, @pos) + 1,
@curord = @curord + 1
RETURN CAST(SUBSTRING(@str, @pos, CHARINDEX(@delim, @str + @delim, @pos) - @pos) AS INT)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetProfileElement' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetProfileElement]
(
@fieldName AS NVARCHAR(100),
@fields AS NVARCHAR(4000),
@values AS NVARCHAR(4000)
)
RETURNS NVARCHAR(4000)
AS
BEGIN
-- If input is invalid, return null.
IF @fieldName IS NULL
OR LEN(@fieldName) = 0
OR @fields IS NULL
OR LEN(@fields) = 0
OR @values IS NULL
OR LEN(@values) = 0
RETURN NULL
-- locate FieldName in Fields
DECLARE @fieldNameToken AS NVARCHAR(20)
DECLARE @fieldNameStart AS INTEGER, @valueStart AS INTEGER, @valueLength AS INTEGER
-- Only handle string type fields (:S:)
SET @fieldNameStart = CHARINDEX(@fieldName + ':S',@Fields,0)
-- If field is not found, return null
IF @fieldNameStart = 0 RETURN NULL
SET @fieldNameStart = @fieldNameStart + LEN(@fieldName) + 3
-- Get the field token which I've defined as the start of the field offset to the end of the length
SET @fieldNameToken =
SUBSTRING(@Fields,@fieldNameStart,LEN(@Fields)-@fieldNameStart)
-- Get the values for the offset and length
SET @valueStart = dbo.getelement(1,@fieldNameToken,':')
SET @valueLength = dbo.getelement(2,@fieldNameToken,':')
-- Check for sane values, 0 length means the profile item was stored, just no data
IF @valueLength = 0 RETURN ''
-- Return the string
RETURN SUBSTRING(@values, @valueStart+1, @valueLength)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateDesktopModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateDesktopModule]
@DesktopModuleId int,
@PackageID int,
@ModuleName nvarchar(128),
@FolderName nvarchar(128),
@FriendlyName nvarchar(128),
@Description nvarchar(2000),
@Version nvarchar(8),
@IsPremium bit,
@IsAdmin bit,
@BusinessController nvarchar(200),
@SupportedFeatures int,
@Shareable int,
@CompatibleVersions nvarchar(500),
@Dependencies nvarchar(400),
@Permissions nvarchar(400),
@ContentItemId int,
@LastModifiedByUserID int
AS
UPDATE dbo.DesktopModules
SET
PackageID = @PackageID,
ModuleName = @ModuleName,
FolderName = @FolderName,
FriendlyName = @FriendlyName,
Description = @Description,
Version = @Version,
IsPremium = @IsPremium,
IsAdmin = @IsAdmin,
BusinessControllerClass = @BusinessController,
SupportedFeatures = @SupportedFeatures,
Shareable = @Shareable,
CompatibleVersions = @CompatibleVersions,
Dependencies = @Dependencies,
Permissions = @Permissions,
ContentItemId = @ContentItemId,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE DesktopModuleId = @DesktopModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'HostSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[HostSettings]
(
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (256) NOT NULL,
[SettingIsSecure] [bit] NOT NULL CONSTRAINT [DF_HostSettings_Secure] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'HostSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[HostSettings] ADD CONSTRAINT [PK_HostSettings] PRIMARY KEY CLUSTERED ([SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetHostSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetHostSettings]
AS
IF NOT EXISTS ( select 1 from dbo.HostSettings where SettingName = 'GUID' )
INSERT INTO dbo.HostSettings ( SettingName, SettingValue, SettingIsSecure ) values ( 'GUID', newid(), 0 )
SELECT SettingName,
SettingValue,
SettingIsSecure,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
FROM dbo.HostSettings
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'EventQueue' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[EventQueue]
(
[EventMessageID] [int] NOT NULL IDENTITY(1, 1),
[EventName] [nvarchar] (100) NOT NULL,
[Priority] [int] NOT NULL,
[ProcessorType] [nvarchar] (250) NOT NULL,
[ProcessorCommand] [nvarchar] (250) NOT NULL,
[Body] [nvarchar] (250) NOT NULL,
[Sender] [nvarchar] (250) NOT NULL,
[Subscriber] [nvarchar] (100) NOT NULL,
[AuthorizedRoles] [nvarchar] (250) NOT NULL,
[ExceptionMessage] [nvarchar] (250) NOT NULL,
[SentDate] [datetime] NOT NULL,
[ExpirationDate] [datetime] NOT NULL,
[Attributes] [ntext] NOT NULL,
[IsComplete] [bit] NOT NULL CONSTRAINT [DF_EventQueue_IsComplete] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'EventQueue' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[EventQueue] ADD CONSTRAINT [PK_EventQueue] PRIMARY KEY CLUSTERED ([EventMessageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventMessagesBySubscriber' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventMessagesBySubscriber
@EventName nvarchar(100),
@Subscriber nvarchar(100)
AS
SELECT *
FROM dbo.EventQueue
WHERE EventName = @EventName
AND Subscriber = @Subscriber
AND IsComplete = 0
ORDER BY SentDate
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalSetup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdatePortalSetup
@PortalId int,
@AdministratorId int,
@AdministratorRoleId int,
@RegisteredRoleId int,
@SplashTabId int,
@HomeTabId int,
@LoginTabId int,
@RegisterTabId int,
@UserTabId int,
@SearchTabId int,
@AdminTabId int,
@CultureCode nvarchar(50)
AS
UPDATE dbo.Portals
SET
AdministratorId = @AdministratorId,
AdministratorRoleId = @AdministratorRoleId,
RegisteredRoleId = @RegisteredRoleId
WHERE PortalId = @PortalId
UPDATE dbo.PortalLocalization
SET
HomeTabId = @HomeTabId,
LoginTabId = @LoginTabId,
UserTabId = @UserTabId,
RegisterTabId = @RegisterTabId,
AdminTabId = @AdminTabId,
SplashTabId = @SplashTabId,
SearchTabId = @SearchTabId
WHERE portalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'fn_GetVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[fn_GetVersion]
(
@maj AS int,
@min AS int,
@bld AS int
)
RETURNS bit
AS
BEGIN
IF Exists (SELECT * FROM dbo.Version
WHERE Major = @maj
AND Minor = @min
AND Build = @bld
)
BEGIN
RETURN 1
END
RETURN 0
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_DesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_DesktopModules]
AS
SELECT
DM.DesktopModuleID,
DM.FriendlyName,
DM.Description,
DM.Version,
DM.IsPremium,
DM.IsAdmin,
DM.BusinessControllerClass,
DM.FolderName,
DM.ModuleName,
DM.SupportedFeatures,
DM.CompatibleVersions,
DM.Dependencies,
DM.Permissions,
DM.PackageID,
DM.CreatedByUserID,
DM.CreatedOnDate,
DM.LastModifiedByUserID,
DM.LastModifiedOnDate,
CI.ContentItemID,
CI.[Content],
CI.ContentTypeID,
CI.TabID,
CI.ModuleID,
CI.ContentKey,
CI.Indexed,
DM.Shareable
FROM dbo.[DesktopModules] AS DM
LEFT OUTER JOIN dbo.[ContentItems] AS CI ON DM.ContentItemId = CI.ContentItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddEventMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddEventMessage
@EventName nvarchar(100),
@Priority int,
@ProcessorType nvarchar(250),
@ProcessorCommand nvarchar(250),
@Body nvarchar(250),
@Sender nvarchar(250),
@Subscriber nvarchar(100),
@AuthorizedRoles nvarchar(250),
@ExceptionMessage nvarchar(250),
@SentDate datetime,
@ExpirationDate datetime,
@Attributes ntext
AS
INSERT dbo.EventQueue (
EventName,
Priority,
ProcessorType,
ProcessorCommand,
Body,
Sender,
Subscriber,
AuthorizedRoles,
ExceptionMessage,
SentDate,
ExpirationDate,
Attributes
)
VALUES (
@EventName,
@Priority,
@ProcessorType,
@ProcessorCommand,
@Body,
@Sender,
@Subscriber,
@AuthorizedRoles,
@ExceptionMessage,
@SentDate,
@ExpirationDate,
@Attributes
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Folders' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Folders]
(
[FolderID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[FolderPath] [nvarchar] (300) NOT NULL,
[StorageLocation] [int] NOT NULL CONSTRAINT [DF_Folders_StorageLocation] DEFAULT ((0)),
[IsProtected] [bit] NOT NULL CONSTRAINT [DF_Folders_IsProtected] DEFAULT ((0)),
[IsCached] [bit] NOT NULL CONSTRAINT [DF_Folders_IsCached] DEFAULT ((0)),
[LastUpdated] [datetime] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[UniqueId] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Folders_UniqueId] DEFAULT (newid()),
[VersionGuid] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Folders_VersionGuid] DEFAULT (newid()),
[FolderMappingID] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Folders' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Folders] ADD CONSTRAINT [PK_Folders] PRIMARY KEY CLUSTERED ([FolderID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFolder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteFolder
@PortalID int,
@FolderPath nvarchar(300)
AS
BEGIN
IF @PortalID is null
BEGIN
DELETE FROM dbo.Folders
WHERE PortalID is null AND FolderPath = @FolderPath
END ELSE BEGIN
DELETE FROM dbo.Folders
WHERE PortalID = @PortalID AND FolderPath = @FolderPath
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Urls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Urls]
(
[UrlID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[Url] [nvarchar] (255) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Urls' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Urls] ADD CONSTRAINT [PK_Urls] PRIMARY KEY CLUSTERED ([UrlID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUrl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddUrl
@PortalID int,
@Url nvarchar(255)
as
insert into dbo.Urls (
PortalID,
Url
)
values (
@PortalID,
@Url
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSearchItem
@SearchItemID int,
@Title nvarchar(200),
@Description nvarchar(2000),
@Author int,
@PubDate datetime,
@ModuleId int,
@SearchKey nvarchar(100),
@Guid nvarchar(200),
@HitCount int,
@ImageFileId int
AS
UPDATE dbo.SearchItem
SET [Title] = @Title,
[Description] = @Description,
[Author] = @Author,
[PubDate] = @PubDate,
[ModuleId] = @ModuleId,
[SearchKey] = @SearchKey,
[Guid] = @Guid,
[HitCount] = @HitCount,
ImageFileId = @ImageFileId
WHERE [SearchItemID] = @SearchItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddModule]
@ContentItemID int,
@PortalID int,
@ModuleDefId int,
@AllTabs bit,
@StartDate datetime,
@EndDate datetime,
@InheritViewPermissions bit,
@IsShareable bit,
@IsShareableViewOnly bit,
@IsDeleted bit,
@CreatedByUserID int
AS
INSERT INTO dbo.Modules (
ContentItemID,
PortalId,
ModuleDefId,
AllTabs,
StartDate,
EndDate,
InheritViewPermissions,
IsShareable,
IsShareableViewOnly,
IsDeleted,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@ContentItemID,
@PortalID,
@ModuleDefId,
@AllTabs,
@StartDate,
@EndDate,
@InheritViewPermissions,
@IsShareable,
@IsShareableViewOnly,
@IsDeleted,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'TabPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[TabPermission]
(
[TabPermissionID] [int] NOT NULL IDENTITY(1, 1),
[TabID] [int] NOT NULL,
[PermissionID] [int] NOT NULL,
[AllowAccess] [bit] NOT NULL,
[RoleID] [int] NULL,
[UserID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'TabPermission' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[TabPermission] ADD CONSTRAINT [PK_TabPermission] PRIMARY KEY CLUSTERED ([TabPermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_TabPermission_Tabs' already exists on table 'dbo.TabPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_TabPermission_Tabs] ON dbo.[TabPermission] ([TabID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_TabPermission_Permission' already exists on table 'dbo.TabPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_TabPermission_Permission] ON dbo.[TabPermission] ([PermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_TabPermission_Roles' already exists on table 'dbo.TabPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_TabPermission_Roles] ON dbo.[TabPermission] ([RoleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_TabPermission_Users' already exists on table 'dbo.TabPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_TabPermission_Users] ON dbo.[TabPermission] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabPermissionsByUserID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[DeleteTabPermissionsByUserID]
@PortalID int,
@UserID int
AS
DELETE FROM dbo.TabPermission
FROM dbo.TabPermission TP
INNER JOIN dbo.Tabs AS T ON TP.TabID = T.TabID
WHERE T.PortalID = @PortalID
AND TP.UserID = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateDatabaseVersionAndName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateDatabaseVersionAndName
@Major int,
@Minor int,
@Build int,
@Name nvarchar(50)
AS
INSERT INTO dbo.Version (
Major,
Minor,
Build,
[Name],
CreatedDate
)
VALUES (
@Major,
@Minor,
@Build,
@Name,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSkinPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteSkinPackage]
@SkinPackageID int
AS
DELETE
FROM dbo.SkinPackages
WHERE SkinPackageID = @SkinPackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModule]
@ModuleId int,
@ModuleDefId int,
@ContentItemID int,
@AllTabs bit,
@StartDate datetime,
@EndDate datetime,
@InheritViewPermissions bit,
@IsShareable bit,
@IsShareableViewOnly bit,
@IsDeleted bit,
@LastModifiedByUserID int
AS
UPDATE dbo.Modules
SET
ModuleDefId = @ModuleDefId,
ContentItemID = @ContentItemID,
AllTabs = @AllTabs,
StartDate = @StartDate,
EndDate = @EndDate,
InheritViewPermissions = @InheritViewPermissions,
IsShareable = @IsShareable,
IsShareableViewOnly = @IsShareableViewOnly,
IsDeleted = @IsDeleted,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchCommonWordsByLocale' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchCommonWordsByLocale
@Locale nvarchar(10)
AS
SELECT
[CommonWordID],
[CommonWord],
[Locale]
FROM
dbo.SearchCommonWords
WHERE
[Locale] = @Locale
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Authentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Authentication]
(
[AuthenticationID] [int] NOT NULL IDENTITY(1, 1),
[PackageID] [int] NOT NULL CONSTRAINT [DF__Authe__Packa__43F60EC8] DEFAULT ((-1)),
[AuthenticationType] [nvarchar] (100) NOT NULL,
[IsEnabled] [bit] NOT NULL CONSTRAINT [DF_Authentication_IsEnabled] DEFAULT ((0)),
[SettingsControlSrc] [nvarchar] (250) NOT NULL,
[LoginControlSrc] [nvarchar] (250) NOT NULL,
[LogoffControlSrc] [nvarchar] (250) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Authentication' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Authentication] ADD CONSTRAINT [PK_Authentication] PRIMARY KEY CLUSTERED ([AuthenticationID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAuthenticationServiceByType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetAuthenticationServiceByType
@AuthenticationType nvarchar(100)
AS
SELECT *
FROM dbo.Authentication
WHERE AuthenticationType = @AuthenticationType
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeletePermission
@PermissionID int
AS
DELETE FROM dbo.Permission
WHERE
[PermissionID] = @PermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSkin' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteSkin]
@SkinID int
AS
DELETE
FROM dbo.Skins
WHERE SkinID = @SkinID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFileVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateFileVersion]
@FileID int,
@VersionGuid uniqueidentifier
AS
UPDATE dbo.Files
SET VersionGuid = @VersionGuid
WHERE FileID = @FileID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSystemMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteSystemMessage
@PortalID int,
@MessageName nvarchar(50)
as
delete
from dbo.SystemMessages
where PortalID = @PortalID
and MessageName = @MessageName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalAlias' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalAlias]
(
[PortalAliasID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NOT NULL,
[HTTPAlias] [nvarchar] (200) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalAlias' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalAlias] ADD CONSTRAINT [PK_PortalAlias] PRIMARY KEY CLUSTERED ([PortalAliasID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalAlias' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.DeletePortalAlias
@PortalAliasID int
as
DELETE FROM dbo.PortalAlias
WHERE PortalAliasID = @PortalAliasID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddModulePermission]
@ModuleID int,
@PortalID int,
@PermissionID int,
@RoleID int,
@AllowAccess bit,
@UserID int,
@CreatedByUserID int
AS
INSERT INTO dbo.ModulePermission (
[ModuleID],
[PortalID],
[PermissionID],
[RoleID],
[AllowAccess],
[UserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@ModuleID,
@PortalID,
@PermissionID,
@RoleID,
@AllowAccess,
@UserID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFolderVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateFolderVersion]
@FolderID int,
@VersionGuid uniqueidentifier
AS
UPDATE dbo.Folders
SET VersionGuid = @VersionGuid
WHERE FolderID = @FolderID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'WebServers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[WebServers]
(
[ServerID] [int] NOT NULL IDENTITY(1, 1),
[ServerName] [nvarchar] (50) NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[LastActivityDate] [datetime] NOT NULL,
[URL] [nvarchar] (255) NULL,
[IISAppName] [nvarchar] (200) NOT NULL CONSTRAINT [DF_WebServers_IISAppName] DEFAULT (''),
[Enabled] [bit] NOT NULL CONSTRAINT [DF_WebServers_Enabled] DEFAULT ((1))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'WebServers' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[WebServers] ADD CONSTRAINT [PK_WebServers] PRIMARY KEY CLUSTERED ([ServerID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteServer' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteServer]
@ServerID int
AS
DELETE FROM dbo.WebServers WHERE ServerID=@ServerID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSchedule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSchedule
@ScheduleID int
AS
DELETE FROM dbo.Schedule
WHERE ScheduleID = @ScheduleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SiteLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SiteLog]
(
[SiteLogId] [int] NOT NULL IDENTITY(1, 1),
[DateTime] [smalldatetime] NOT NULL,
[PortalId] [int] NOT NULL,
[UserId] [int] NULL,
[Referrer] [nvarchar] (255) NULL,
[Url] [nvarchar] (255) NULL,
[UserAgent] [nvarchar] (255) NULL,
[UserHostAddress] [nvarchar] (255) NULL,
[UserHostName] [nvarchar] (255) NULL,
[TabId] [int] NULL,
[AffiliateId] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SiteLog' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SiteLog] ADD CONSTRAINT [PK_SiteLog] PRIMARY KEY CLUSTERED ([SiteLogId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_SiteLog' already exists on table 'dbo.SiteLog'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_SiteLog] ON dbo.[SiteLog] ([PortalId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog4' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog4
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select Referrer,
count(*) AS 'Requests',
max(DateTime) AS 'LastRequest'
from dbo.SiteLog
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
and Referrer is not null
and Referrer not like '%' + @PortalAlias + '%'
group by Referrer
order by Requests desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModulePermissionsByModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteModulePermissionsByModuleID]
@ModuleID int,
@PortalID int
AS
DELETE FROM dbo.ModulePermission
WHERE ModuleID = @ModuleID
AND PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchItemWord]
(
[SearchItemWordID] [int] NOT NULL IDENTITY(1, 1),
[SearchItemID] [int] NOT NULL,
[SearchWordsID] [int] NOT NULL,
[Occurrences] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchItemWord' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchItemWord] ADD CONSTRAINT [PK_SearchItemWords] PRIMARY KEY CLUSTERED ([SearchItemWordID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSearchItemWord
@SearchItemWordID int,
@SearchItemID int,
@SearchWordsID int,
@Occurrences int
AS
UPDATE dbo.SearchItemWord SET
[SearchItemID] = @SearchItemID,
[SearchWordsID] = @SearchWordsID,
[Occurrences] = @Occurrences
WHERE
[SearchItemWordID] = @SearchItemWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModulePermissionsByTabID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModulePermissionsByTabID]
@TabID int
AS
SELECT MP.*
FROM dbo.TabModules AS TM
INNER JOIN dbo.Tabs AS T ON TM.TabID = T.TabID
INNER JOIN dbo.vw_ModulePermissions AS MP ON TM.ModuleID = MP.ModuleID
INNER JOIN dbo.Portals AS P ON T.PortalID = P.PortalID
AND MP.PortalID = P.PortalID
WHERE T.TabID = @TabID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventMessages
@EventName nvarchar(100)
AS
SELECT *
FROM dbo.EventQueue
WHERE EventName = @EventName
AND IsComplete = 0
ORDER BY SentDate
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteHeirarchicalTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteHeirarchicalTerm
@TermId int
AS
BEGIN
DECLARE @Left int, @Right int, @VocabularyID int, @Width int
SELECT
@Left = tt.TermLeft
, @Right = tt.TermRight
, @VocabularyID = tt.VocabularyID
, @Width = @Right - @Left + 1
FROM
dbo.Taxonomy_Terms tt
WHERE
tt.TermID = @TermID
BEGIN TRANSACTION
-- Delete term(s)
DELETE FROM dbo.Taxonomy_Terms
WHERE TermLeft > = @Left AND TermLeft > 0
AND TermRight <= @Right AND TermRight > 0
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Left values for all items that are after deleted term
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft - @Width
WHERE TermLeft >= @Left + @Width
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Right values for all items that are after deleted term
UPDATE dbo.Taxonomy_Terms
SET TermRight = TermRight - @Width
WHERE TermRight >= @Right
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
COMMIT TRANSACTION
RETURN
END
END
END
ROLLBACK TRANSACTION
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModulePermission]
@ModulePermissionID int,
@ModuleID int,
@PortalID int,
@PermissionID int,
@RoleID int,
@AllowAccess bit,
@LastModifiedByUserID int
AS
UPDATE dbo.ModulePermission SET
[ModuleID] = @ModuleID,
[PortalID] = @PortalID,
[PermissionID] = @PermissionID,
[RoleID] = @RoleID,
[AllowAccess] = @AllowAccess,
[UserID] = @LastModifiedByUserID,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE
[ModulePermissionID] = @ModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePropertyDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeletePropertyDefinition]
@PropertyDefinitionId int
AS
UPDATE dbo.ProfilePropertyDefinition
SET Deleted = 1
WHERE PropertyDefinitionId = @PropertyDefinitionId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserAuthentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserAuthentication]
(
[UserAuthenticationID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[AuthenticationType] [nvarchar] (100) NOT NULL,
[AuthenticationToken] [nvarchar] (1000) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserAuthentication' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserAuthentication] ADD CONSTRAINT [PK_UserAuthentication] PRIMARY KEY CLUSTERED ([UserAuthenticationID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserAuthentication' already exists on table 'dbo.UserAuthentication'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_UserAuthentication] ON dbo.[UserAuthentication] ([UserID], [AuthenticationType])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteAuthentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteAuthentication]
@AuthenticationID int
AS
DECLARE @AuthType nvarchar(100)
SET @AuthType = (SELECT AuthenticationType FROM dbo.Authentication WHERE AuthenticationID = @AuthenticationID)
-- Delete UserAuthentication rows
IF (@AuthType Is Not Null)
BEGIN
DELETE FROM dbo.UserAuthentication
WHERE AuthenticationType = @AuthType
END
-- Delete Record
DELETE
FROM dbo.Authentication
WHERE AuthenticationID = @AuthenticationID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'EventLogTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[EventLogTypes]
(
[LogTypeKey] [nvarchar] (35) NOT NULL,
[LogTypeFriendlyName] [nvarchar] (50) NOT NULL,
[LogTypeDescription] [nvarchar] (128) NOT NULL,
[LogTypeOwner] [nvarchar] (100) NOT NULL,
[LogTypeCSSClass] [nvarchar] (40) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'EventLogTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[EventLogTypes] ADD CONSTRAINT [PK_EventLogTypes] PRIMARY KEY CLUSTERED ([LogTypeKey])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteEventLogType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteEventLogType
@LogTypeKey nvarchar(35)
AS
DELETE FROM dbo.EventLogTypes
WHERE LogTypeKey = @LogTypeKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteTabModuleSetting
@TabModuleId int,
@SettingName nvarchar(50)
as
DELETE FROM TabModuleSettings
WHERE TabModuleId = @TabModuleId
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFileByUniqueID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFileByUniqueID]
@UniqueID uniqueidentifier
AS
SELECT *
FROM dbo.Files
WHERE UniqueID = @UniqueID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UrlLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UrlLog]
(
[UrlLogID] [int] NOT NULL IDENTITY(1, 1),
[UrlTrackingID] [int] NOT NULL,
[ClickDate] [datetime] NOT NULL,
[UserID] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UrlLog' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UrlLog] ADD CONSTRAINT [PK_UrlLog] PRIMARY KEY CLUSTERED ([UrlLogID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUrlLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddUrlLog
@UrlTrackingID int,
@UserID int
as
insert into dbo.UrlLog (
UrlTrackingID,
ClickDate,
UserID
)
values (
@UrlTrackingID,
getdate(),
@UserID
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalAliasByPortalID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetPortalAliasByPortalID
@PortalID int
as
select *
from dbo.PortalAlias
where (PortalID = @PortalID or @PortalID = -1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddRole
@PortalID int,
@RoleGroupId int,
@RoleName nvarchar(50),
@Description nvarchar(1000),
@ServiceFee money,
@BillingPeriod int,
@BillingFrequency char(1),
@TrialFee money,
@TrialPeriod int,
@TrialFrequency char(1),
@IsPublic bit,
@AutoAssignment bit,
@RSVPCode nvarchar(50),
@IconFile nvarchar(100),
@CreatedByUserID int,
@Status int,
@SecurityMode int,
@IsSystemRole bit
AS
INSERT INTO dbo.Roles (
PortalId,
RoleGroupId,
RoleName,
Description,
ServiceFee,
BillingPeriod,
BillingFrequency,
TrialFee,
TrialPeriod,
TrialFrequency,
IsPublic,
AutoAssignment,
RSVPCode,
IconFile,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate,
Status,
SecurityMode,
IsSystemRole
)
VALUES (
@PortalID,
@RoleGroupId,
@RoleName,
@Description,
@ServiceFee,
@BillingPeriod,
@BillingFrequency,
@TrialFee,
@TrialPeriod,
@TrialFrequency,
@IsPublic,
@AutoAssignment,
@RSVPCode,
@IconFile,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@Status,
@SecurityMode,
@IsSystemRole
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAuthenticationServices' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetAuthenticationServices
AS
SELECT *
FROM dbo.Authentication
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModuleDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteModuleDefinition
@ModuleDefId int
AS
-- delete custom permissions
DELETE FROM dbo.Permission
WHERE moduledefid = @ModuleDefId
DELETE FROM dbo.ModuleDefinitions
WHERE ModuleDefId = @ModuleDefId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteDesktopModulePermissionsByUserID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteDesktopModulePermissionsByUserID]
@UserID int
AS
DELETE FROM dbo.DesktopModulePermission
WHERE UserID = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Profile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Profile]
(
[ProfileId] [int] NOT NULL IDENTITY(1, 1),
[UserId] [int] NOT NULL,
[PortalId] [int] NOT NULL,
[ProfileData] [ntext] NOT NULL,
[CreatedDate] [datetime] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Profile' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Profile] ADD CONSTRAINT [PK_Profile] PRIMARY KEY CLUSTERED ([ProfileId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Profile' already exists on table 'dbo.Profile'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_Profile] ON dbo.[Profile] ([UserId], [PortalId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddProfile
@UserID int,
@PortalID int
as
insert into dbo.Profile (
UserId,
PortalId,
ProfileData,
CreatedDate
)
values (
@UserID,
@PortalID,
'',
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateRole
@RoleId int,
@RoleGroupId int,
@RoleName nvarchar(50),
@Description nvarchar(1000),
@ServiceFee money,
@BillingPeriod int,
@BillingFrequency char(1),
@TrialFee money,
@TrialPeriod int,
@TrialFrequency char(1),
@IsPublic bit,
@AutoAssignment bit,
@RSVPCode nvarchar(50),
@IconFile nvarchar(100),
@LastModifiedByUserID int,
@Status int,
@SecurityMode int,
@IsSystemRole bit
AS
UPDATE dbo.Roles
SET RoleGroupId = @RoleGroupId,
RoleName = @RoleName,
Description = @Description,
ServiceFee = @ServiceFee,
BillingPeriod = @BillingPeriod,
BillingFrequency = @BillingFrequency,
TrialFee = @TrialFee,
TrialPeriod = @TrialPeriod,
TrialFrequency = @TrialFrequency,
IsPublic = @IsPublic,
AutoAssignment = @AutoAssignment,
RSVPCode = @RSVPCode,
IconFile = @IconFile,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate(),
Status = @Status,
SecurityMode = @SecurityMode,
IsSystemRole = @IsSystemRole
WHERE RoleId = @RoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetServers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetServers
AS
SELECT *
FROM dbo.WebServers
ORDER BY ServerName, IISAppName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalLanguages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalLanguages]
(
[PortalLanguageID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NOT NULL,
[LanguageID] [int] NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[IsPublished] [bit] NOT NULL CONSTRAINT [DF_PortalLanguages_IsPublished] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalLanguages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalLanguages] ADD CONSTRAINT [PK_PortalLanguages] PRIMARY KEY CLUSTERED ([PortalLanguageID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_PortalLanguages' already exists on table 'dbo.PortalLanguages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_PortalLanguages] ON dbo.[PortalLanguages] ([PortalID], [LanguageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalLanguages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeletePortalLanguages
@PortalId int,
@LanguageId int
AS
BEGIN
IF @PortalId is not null AND @LanguageId is not null
DELETE FROM dbo.PortalLanguages WHERE PortalId = @PortalId AND LanguageId = @LanguageId
ELSE IF @PortalId is not null
DELETE FROM dbo.PortalLanguages WHERE PortalId = @PortalId
ELSE IF @LanguageId is not null
DELETE FROM dbo.PortalLanguages WHERE LanguageId = @LanguageId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FolderPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[FolderPermission]
(
[FolderPermissionID] [int] NOT NULL IDENTITY(1, 1),
[FolderID] [int] NOT NULL,
[PermissionID] [int] NOT NULL,
[AllowAccess] [bit] NOT NULL,
[RoleID] [int] NULL,
[UserID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'FolderPermission' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[FolderPermission] ADD CONSTRAINT [PK_FolderPermission] PRIMARY KEY CLUSTERED ([FolderPermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_FolderPermission_Modules' already exists on table 'dbo.FolderPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_FolderPermission_Modules] ON dbo.[FolderPermission] ([FolderID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_FolderPermission_Permission' already exists on table 'dbo.FolderPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_FolderPermission_Permission] ON dbo.[FolderPermission] ([PermissionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_FolderPermission_Roles' already exists on table 'dbo.FolderPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_FolderPermission_Roles] ON dbo.[FolderPermission] ([RoleID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_FolderPermission_Users' already exists on table 'dbo.FolderPermission'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_FolderPermission_Users] ON dbo.[FolderPermission] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFolderPermissionsByUserID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[DeleteFolderPermissionsByUserID]
@PortalID int,
@UserID int
AS
DELETE FROM dbo.FolderPermission
FROM dbo.FolderPermission FP
INNER JOIN dbo.Folders AS F ON FP.FolderID = F.FolderID
WHERE F.PortalID = @PortalID
AND FP.UserID = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Affiliates' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Affiliates]
(
[AffiliateId] [int] NOT NULL IDENTITY(1, 1),
[VendorId] [int] NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[CPC] [float] NOT NULL,
[Clicks] [int] NOT NULL,
[CPA] [float] NOT NULL,
[Acquisitions] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Affiliates' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Affiliates] ADD CONSTRAINT [PK_Affiliates] PRIMARY KEY CLUSTERED ([AffiliateId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAffiliates' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetAffiliates
@VendorId int
as
select AffiliateId,
StartDate,
EndDate,
CPC,
Clicks,
Clicks * CPC AS 'CPCTotal',
CPA,
Acquisitions,
Acquisitions * CPA 'CPATotal'
from dbo.Affiliates
where VendorId = @VendorId
order by StartDate desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddEventLogType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddEventLogType
@LogTypeKey nvarchar(35),
@LogTypeFriendlyName nvarchar(50),
@LogTypeDescription nvarchar(128),
@LogTypeOwner nvarchar(100),
@LogTypeCSSClass nvarchar(40)
AS
INSERT INTO dbo.EventLogTypes
(LogTypeKey,
LogTypeFriendlyName,
LogTypeDescription,
LogTypeOwner,
LogTypeCSSClass)
VALUES
(@LogTypeKey,
@LogTypeFriendlyName,
@LogTypeDescription,
@LogTypeOwner,
@LogTypeCSSClass)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Lists' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Lists]
(
[EntryID] [int] NOT NULL IDENTITY(1, 1),
[ListName] [nvarchar] (50) NOT NULL,
[Value] [nvarchar] (100) NOT NULL,
[Text] [nvarchar] (150) NOT NULL,
[ParentID] [int] NOT NULL CONSTRAINT [DF_Lists_ParentID] DEFAULT ((0)),
[Level] [int] NOT NULL CONSTRAINT [DF_Lists_Level] DEFAULT ((0)),
[SortOrder] [int] NOT NULL CONSTRAINT [DF_Lists_SortOrder] DEFAULT ((0)),
[DefinitionID] [int] NOT NULL CONSTRAINT [DF_Lists_DefinitionID] DEFAULT ((0)),
[Description] [nvarchar] (500) NULL,
[PortalID] [int] NOT NULL CONSTRAINT [DF_Lists_PortalID] DEFAULT ((-1)),
[SystemList] [bit] NOT NULL CONSTRAINT [DF_Lists_SystemList] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Lists' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Lists] ADD CONSTRAINT [PK_Lists] PRIMARY KEY CLUSTERED ([EntryID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Lists_ListName_ParentID' already exists on table 'dbo.Lists'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Lists_ListName_ParentID] ON dbo.[Lists] ([ListName], [ParentID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Lists_ParentID' already exists on table 'dbo.Lists'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Lists_ParentID] ON dbo.[Lists] ([ParentID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalRoles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPortalRoles
@PortalId int
AS
SELECT R.RoleId,
R.PortalId,
R.RoleGroupId,
R.RoleName,
R.Description,
R.ServiceFee,
case when convert(int,R.ServiceFee) <> 0 then R.BillingPeriod else null end AS BillingPeriod,
case when convert(int,R.ServiceFee) <> 0 then L1.Text else '' end AS BillingFrequency,
R.TrialFee,
case when R.TrialFrequency <> 'N' then R.TrialPeriod else null end AS TrialPeriod,
case when R.TrialFrequency <> 'N' then L2.Text else '' end AS TrialFrequency,
R.IsPublic,
R.AutoAssignment,
R.RSVPCode,
R.IconFile,
R.Status,
R.SecurityMode,
(SELECT COUNT(*) FROM dbo.UserRoles U WHERE U.RoleID = R.RoleID) AS UserCount,
R.CreatedByUserID,
R.CreatedOnDate,
R.LastModifiedByUserID,
R.LastModifiedOnDate,
R.IsSystemRole
FROM dbo.Roles R
LEFT OUTER JOIN dbo.Lists L1 ON R.BillingFrequency = L1.Value AND L1.ListName='Frequency'
LEFT OUTER JOIN dbo.Lists L2 ON R.TrialFrequency = L2.Value AND L2.ListName='Frequency'
WHERE ( R.PortalId = @PortalId OR R.PortalId is null )
ORDER BY R.RoleName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUrlLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetUrlLog
@URLTrackingID int,
@StartDate datetime,
@EndDate datetime
as
select dbo.UrlLog.*,
dbo.Users.FirstName + ' ' + dbo.Users.LastName AS 'FullName'
from dbo.UrlLog
inner join dbo.UrlTracking on dbo.UrlLog.UrlTrackingId = dbo.UrlTracking.UrlTrackingId
left outer join dbo.Users on dbo.UrlLog.UserId = dbo.Users.UserId
where dbo.UrlLog.UrlTrackingID = @UrlTrackingID
and ((ClickDate >= @StartDate) or @StartDate is null)
and ((ClickDate <= @EndDate) or @EndDate is null)
order by ClickDate
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Languages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Languages]
(
[LanguageID] [int] NOT NULL IDENTITY(1, 1),
[CultureCode] [nvarchar] (50) NOT NULL,
[CultureName] [nvarchar] (200) NOT NULL,
[FallbackCulture] [nvarchar] (50) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Languages' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Languages] ADD CONSTRAINT [PK_Languages] PRIMARY KEY CLUSTERED ([LanguageID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Languages' already exists on table 'dbo.Languages'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_Languages] ON dbo.[Languages] ([CultureCode])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddLanguage]
@CultureCode nvarchar(50),
@CultureName nvarchar(200),
@FallbackCulture nvarchar(50),
@CreatedByUserID int
AS
INSERT INTO dbo.Languages (
CultureCode,
CultureName,
FallbackCulture,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@CultureCode,
@CultureName,
@FallbackCulture,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUrl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetUrl
@PortalID int,
@Url nvarchar(255)
as
select *
from dbo.Urls
where PortalID = @PortalID
and Url = @Url
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'EventLogConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[EventLogConfig]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[LogTypeKey] [nvarchar] (35) NULL,
[LogTypePortalID] [int] NULL,
[LoggingIsActive] [bit] NOT NULL,
[KeepMostRecent] [int] NOT NULL,
[EmailNotificationIsActive] [bit] NOT NULL,
[NotificationThreshold] [int] NULL,
[NotificationThresholdTime] [int] NULL,
[NotificationThresholdTimeType] [int] NULL,
[MailFromAddress] [nvarchar] (50) NOT NULL,
[MailToAddress] [nvarchar] (50) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'EventLogConfig' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[EventLogConfig] ADD CONSTRAINT [PK_EventLogConfig] PRIMARY KEY CLUSTERED ([ID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_LogTypeKey_LogTypePortalID' already exists on table 'dbo.EventLogConfig'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_LogTypeKey_LogTypePortalID] ON dbo.[EventLogConfig] ([LogTypeKey], [LogTypePortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddEventLogConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[AddEventLogConfig]
@LogTypeKey nvarchar(35),
@LogTypePortalID int,
@LoggingIsActive bit,
@KeepMostRecent int,
@EmailNotificationIsActive bit,
@NotificationThreshold int,
@NotificationThresholdTime int,
@NotificationThresholdTimeType int,
@MailFromAddress nvarchar(50),
@MailToAddress nvarchar(50)
AS
DECLARE @ID int
SET @ID = (SELECT EC.ID FROM dbo.EventLogConfig EC
WHERE (EC.LogTypeKey = @LogTypeKey OR (EC.LogTypeKey IS NULL AND @LogTypeKey IS NULL))
AND (EC.LogTypePortalID = @LogTypePortalID OR (EC.LogTypePortalID IS NULL AND @LogTypePortalID IS NULL))
)
IF @ID IS NULL
BEGIN
INSERT INTO dbo.EventLogConfig
(LogTypeKey,
LogTypePortalID,
LoggingIsActive,
KeepMostRecent,
EmailNotificationIsActive,
NotificationThreshold,
NotificationThresholdTime,
NotificationThresholdTimeType,
MailFromAddress,
MailToAddress)
VALUES
(@LogTypeKey,
@LogTypePortalID,
@LoggingIsActive,
@KeepMostRecent,
@EmailNotificationIsActive,
@NotificationThreshold,
@NotificationThresholdTime,
@NotificationThresholdTimeType,
@MailFromAddress,
@MailToAddress)
END
ELSE
BEGIN
UPDATE dbo.EventLogConfig
SET LogTypeKey = @LogTypeKey,
LogTypePortalID = @LogTypePortalID,
LoggingIsActive = @LoggingIsActive,
KeepMostRecent = @KeepMostRecent,
EmailNotificationIsActive = @EmailNotificationIsActive,
NotificationThreshold = @NotificationThreshold,
NotificationThresholdTime = @NotificationThresholdTime,
NotificationThresholdTimeType = @NotificationThresholdTimeType,
MailFromAddress = @MailFromAddress,
MailToAddress = @MailToAddress
WHERE ID = @ID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderByUniqueID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderByUniqueID]
@UniqueID uniqueidentifier
AS
SELECT *
FROM dbo.Folders
WHERE UniqueID = @UniqueID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UsersOnline' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UsersOnline]
(
[UserID] [int] NOT NULL,
[PortalID] [int] NOT NULL,
[TabID] [int] NOT NULL,
[CreationDate] [datetime] NOT NULL CONSTRAINT [DF__Users__Creat__3BFFE745] DEFAULT (getdate()),
[LastActiveDate] [datetime] NOT NULL CONSTRAINT [DF__Users__LastA__3CF40B7E] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UsersOnline' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UsersOnline] ADD CONSTRAINT [PK_UsersOnline] PRIMARY KEY CLUSTERED ([UserID], [PortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AnonymousUsers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[AnonymousUsers]
(
[UserID] [char] (36) NOT NULL,
[PortalID] [int] NOT NULL,
[TabID] [int] NOT NULL,
[CreationDate] [datetime] NOT NULL CONSTRAINT [DF_AnonymousUsers_CreationDate] DEFAULT (getdate()),
[LastActiveDate] [datetime] NOT NULL CONSTRAINT [DF_AnonymousUsers_LastActiveDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'AnonymousUsers' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[AnonymousUsers] ADD CONSTRAINT [PK_AnonymousUsers] PRIMARY KEY CLUSTERED ([UserID], [PortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUsersOnline' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteUsersOnline
@TimeWindow int
AS
BEGIN
DECLARE @dt datetime
SET @dt = DATEADD(MINUTE, -@TimeWindow, GETDATE())
DELETE FROM dbo.AnonymousUsers WHERE LastActiveDate < @dt
DELETE FROM dbo.UsersOnline WHERE LastActiveDate < @dt
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddScheduleHistory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddScheduleHistory
@ScheduleID int,
@StartDate datetime,
@Server varchar(150)
AS
INSERT INTO dbo.ScheduleHistory
(ScheduleID,
StartDate,
Server)
VALUES
(@ScheduleID,
@StartDate,
@Server)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalAliasOnInstall' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdatePortalAliasOnInstall
@PortalAlias nvarchar(200),
@LastModifiedByUserID int
AS
UPDATE dbo.PortalAlias
SET HTTPAlias = @PortalAlias,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE HTTPAlias = '_default'
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddModuleDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddModuleDefinition
@DesktopModuleId int,
@FriendlyName nvarchar(128),
@DefinitionName nvarchar(128),
@DefaultCacheTime int,
@CreatedByUserID int
as
insert into dbo.ModuleDefinitions (
DesktopModuleId,
FriendlyName,
DefinitionName,
DefaultCacheTime,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
values (
@DesktopModuleId,
@FriendlyName,
@DefinitionName,
@DefaultCacheTime,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRolesByUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRolesByUser]
@UserID int,
@PortalID int
AS
SELECT dbo.Roles.RoleName,
dbo.Roles.RoleId
FROM dbo.UserRoles
INNER JOIN dbo.Users on dbo.UserRoles.UserId = dbo.Users.UserId
INNER JOIN dbo.Roles on dbo.UserRoles.RoleId = dbo.Roles.RoleId
WHERE dbo.Users.UserId = @UserID
AND dbo.Roles.PortalId = @PortalID
AND (EffectiveDate <= getdate() or EffectiveDate is null)
AND (ExpiryDate >= getdate() or ExpiryDate is null)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_Save_Message' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_Save_Message]
@PortalID int,
@FromUserID int,
@ToUserID int,
@ToRoleID int,
@Status int,
@Subject nvarchar(max),
@Body nvarchar(max),
@Date datetime,
@Conversation uniqueidentifier,
@ReplyTo bigint,
@AllowReply bit,
@SkipPortal bit
AS
BEGIN
INSERT INTO dbo.Messaging_Messages
([PortalID]
,[FromUserID]
,[FromUserName]
,[ToUserID]
,[ToRoleID]
,[ToUserName]
,[Status]
,[Subject]
,[Body]
,[Date]
,[Conversation]
,[ReplyTo]
,[AllowReply]
,[SkipPortal]
,[EmailSent])
SELECT
@PortalID,
@FromUserID,
(SELECT UserName FROM Users WHERE UserID = @FromUserID) as FromUserName,
@ToUserID,
@ToRoleID,
(SELECT UserName FROM Users WHERE UserID = @ToUserID) as ToUserName,
@Status,
@Subject,
@Body,
@Date,
@Conversation,
@ReplyTo,
@AllowReply,
@SkipPortal,
'0'
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddDesktopModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddDesktopModulePermission]
@PortalDesktopModuleID int,
@PermissionID int,
@RoleID int,
@AllowAccess bit,
@UserID int,
@CreatedByUserID int
AS
INSERT INTO dbo.DesktopModulePermission (
[PortalDesktopModuleID],
[PermissionID],
[RoleID],
[AllowAccess],
[UserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@PortalDesktopModuleID,
@PermissionID,
@RoleID,
@AllowAccess,
@UserID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModuleDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateModuleDefinition
@ModuleDefId int,
@FriendlyName nvarchar(128),
@DefinitionName nvarchar(128),
@DefaultCacheTime int,
@LastModifiedByUserID int
as
update dbo.ModuleDefinitions
SET FriendlyName = @FriendlyName,
DefinitionName = @DefinitionName,
DefaultCacheTime = @DefaultCacheTime,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE ModuleDefId = @ModuleDefId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabTranslationStatus' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabTranslationStatus]
@TabId int,
@LocalizedVersionGuid uniqueidentifier,
@LastModifiedByUserID int
AS
UPDATE dbo.Tabs
SET
LocalizedVersionGuid = @LocalizedVersionGuid,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabId = @TabId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchWord]
(
[SearchWordsID] [int] NOT NULL IDENTITY(1, 1),
[Word] [nvarchar] (100) NOT NULL,
[IsCommon] [bit] NULL,
[HitCount] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchWord' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchWord] ADD CONSTRAINT [PK_SearchWord] PRIMARY KEY CLUSTERED ([SearchWordsID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchWords' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchWords
AS
SELECT
[SearchWordsID],
[Word],
[HitCount]
FROM
dbo.SearchWord
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateDesktopModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateDesktopModulePermission]
@DesktopModulePermissionID int,
@PortalDesktopModuleID int,
@PermissionID int,
@RoleID int ,
@AllowAccess bit,
@UserID int,
@LastModifiedByUserID int
AS
UPDATE dbo.DesktopModulePermission
SET
[PortalDesktopModuleID] = @PortalDesktopModuleID,
[PermissionID] = @PermissionID,
[RoleID] = @RoleID,
[AllowAccess] = @AllowAccess,
[UserID] = @UserID,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE [DesktopModulePermissionID] = @DesktopModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSkin' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddSkin
@SkinPackageID int,
@SkinSrc nvarchar(200)
AS
BEGIN
IF NOT EXISTS (
SELECT 1 FROM dbo.Skins S
WHERE S.SkinPackageID = @SkinPackageID AND S.SkinSrc = @SkinSrc
)
BEGIN
INSERT INTO dbo.Skins (SkinPackageID, SkinSrc)
VALUES (@SkinPackageID, @SkinSrc)
END
END
SELECT SkinID FROM dbo.Skins S
WHERE S.SkinPackageID = @SkinPackageID AND S.SkinSrc = @SkinSrc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateServer' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateServer
@ServerID int,
@URL nvarchar(255),
@Enabled bit
AS
UPDATE dbo.WebServers
SET
URL = @URL,
Enabled = @Enabled
WHERE ServerID = @ServerID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPropertyDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPropertyDefinition]
@PropertyDefinitionID int
AS
SELECT dbo.ProfilePropertyDefinition.*
FROM dbo.ProfilePropertyDefinition
WHERE PropertyDefinitionID = @PropertyDefinitionID
AND Deleted = 0
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteAffiliate' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteAffiliate
@AffiliateId int
as
delete
from dbo.Affiliates
where AffiliateId = @AffiliateId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_MarkMessageAsSent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_MarkMessageAsSent]
@MessageId int,
@RecipientId int
AS
BEGIN
Update dbo.CoreMessaging_MessageRecipients set EmailSent = 1 where MessageID =@MessageId AND RecipientId=@RecipientId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabModuleTranslationStatus' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabModuleTranslationStatus]
@TabModuleId int,
@LocalizedVersionGuid uniqueidentifier,
@LastModifiedByUserID int
AS
UPDATE dbo.TabModules
SET
LocalizedVersionGuid = @LocalizedVersionGuid,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabModuleId = @TabModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderByFolderPath' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetFolderByFolderPath
@PortalID int,
@FolderPath nvarchar(300)
AS
BEGIN
if @PortalID is not null
begin
SELECT *
FROM dbo.Folders
WHERE PortalID = @PortalID AND FolderPath = @FolderPath
end else begin
SELECT *
FROM dbo.Folders
WHERE PortalID is null AND FolderPath = @FolderPath
end
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RelationshipTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[RelationshipTypes]
(
[RelationshipTypeID] [int] NOT NULL IDENTITY(1, 1),
[Direction] [int] NOT NULL,
[Name] [nvarchar] (50) NOT NULL,
[Description] [nvarchar] (500) NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_RelationshipTypes_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_RelationshipTypes_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'RelationshipTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[RelationshipTypes] ADD CONSTRAINT [PK_RelationshipTypes] PRIMARY KEY CLUSTERED ([RelationshipTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllRelationshipTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllRelationshipTypes]
AS
SELECT RelationshipTypeID,
Direction,
Name ,
Description,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.RelationshipTypes
ORDER BY RelationshipTypeID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSearchWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSearchWord
@SearchWordsID int,
@Word nvarchar(100),
@IsCommon bit,
@HitCount int
AS
UPDATE dbo.SearchWord SET
[Word] = @Word,
[IsCommon] = @IsCommon,
[HitCount] = @HitCount
WHERE
[SearchWordsID] = @SearchWordsID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_TabPermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.vw_TabPermissions
AS
SELECT
TP.TabPermissionID,
T.TabID,
P.PermissionID,
TP.RoleID,
CASE TP.RoleID
when -1 then 'All Users'
when -2 then 'Superuser'
when -3 then 'Unauthenticated Users'
else R.RoleName
END AS 'RoleName',
TP.AllowAccess,
TP.UserID,
U.Username,
U.DisplayName,
P.PermissionCode,
P.ModuleDefID,
P.PermissionKey,
P.PermissionName,
T.PortalId,
TP.CreatedByUserID,
TP.CreatedOnDate,
TP.LastModifiedByUserID,
TP.LastModifiedOnDate
FROM dbo.TabPermission AS TP
INNER JOIN dbo.Tabs AS T ON TP.TabID = T.TabID
LEFT OUTER JOIN dbo.Permission AS P ON TP.PermissionID = P.PermissionID
LEFT OUTER JOIN dbo.Roles AS R ON TP.RoleID = R.RoleID
LEFT OUTER JOIN dbo.Users AS U ON TP.UserID = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRelationshipType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRelationshipType] @RelationshipTypeID INT
AS
SELECT RelationshipTypeID,
Direction,
Name ,
Description,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.RelationshipTypes
WHERE RelationshipTypeID = @RelationshipTypeID
ORDER BY RelationshipTypeID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ScheduleItemSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ScheduleItemSettings]
(
[ScheduleID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (max) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ScheduleItemSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ScheduleItemSettings] ADD CONSTRAINT [PK_ScheduleItemSettings] PRIMARY KEY CLUSTERED ([ScheduleID], [SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleItemSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetScheduleItemSettings
@ScheduleID int
AS
SELECT *
FROM dbo.ScheduleItemSettings
WHERE ScheduleID = @ScheduleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchItemWord
@SearchItemWordID int
AS
SELECT
[SearchItemWordID],
[SearchItemID],
[SearchWordsID],
[Occurrences]
FROM
dbo.SearchItemWord
WHERE
[SearchItemWordID] = @SearchItemWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabPermissionsByTabID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetTabPermissionsByTabID
@TabID int,
@PermissionID int
AS
SELECT *
FROM dbo.vw_TabPermissions
WHERE (TabID = @TabID OR (TabID IS NULL AND PermissionCode = 'SYSTEM_TAB'))
AND (PermissionID = @PermissionID OR @PermissionID = -1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteRelationshipType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteRelationshipType] @RelationshipTypeID INT
AS
BEGIN
DELETE FROM dbo.RelationshipTypes
WHERE RelationshipTypeID = @RelationshipTypeID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSearchCommonWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddSearchCommonWord
@CommonWord nvarchar(255),
@Locale nvarchar(10)
AS
INSERT INTO dbo.SearchCommonWords (
[CommonWord],
[Locale]
) VALUES (
@CommonWord,
@Locale
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSkinPackage
@PortalID int,
@SkinName nvarchar(50),
@SkinType nvarchar(50)
AS
SELECT *
FROM dbo.SkinPackages
WHERE (PortalID = @PortalID OR @PortalID IS NULL Or PortalID IS Null)
AND SkinName = @SkinName
AND SkinType = @SkinType
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalSettings]
(
[PortalID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (2000) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[CultureCode] [nvarchar] (10) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalSettings] ADD CONSTRAINT [PK_PortalSettings] PRIMARY KEY CLUSTERED ([PortalID], [SettingName], [CultureCode])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSearchSettings]
@ModuleID int
AS
SELECT settings.SettingName,
settings.SettingValue
FROM dbo.Modules m
INNER JOIN dbo.Portals p ON m.PortalID = p.PortalID
INNER JOIN dbo.PortalSettings settings ON p.PortalID = settings.PortalID
WHERE m.ModuleID = @ModuleID
AND settings.SettingName LIKE 'Search%'
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItemsByTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetContentItemsByTerm
@Term nvarchar(250)
AS
BEGIN
DECLARE @TermID int
, @TermLeft int
, @TermRight int
, @VocabularyID int
SELECT
@TermID = TermID
, @TermLeft = TermLeft
, @TermRight = TermRight
, @VocabularyID = VocabularyID
FROM
dbo.Taxonomy_Terms
WHERE
Name = @Term
IF @TermLeft = 0 AND @TermRight = 0
BEGIN
-- Simple Term
SELECT c.*
FROM dbo.ContentItems As c
INNER JOIN dbo.ContentItems_Tags ct ON ct.ContentItemID = c.ContentItemID
INNER JOIN dbo.Taxonomy_Terms t ON t.TermID = ct.TermID
WHERE t.TermID = @TermID
END ELSE BEGIN
-- Hierarchical Term
SELECT c.*
FROM dbo.ContentItems As c
INNER JOIN dbo.ContentItems_Tags ct ON ct.ContentItemID = c.ContentItemID
INNER JOIN dbo.Taxonomy_Terms t ON t.TermID = ct.TermID
WHERE t.TermLeft >= @TermLeft
AND t.TermRight <= @TermRight
AND t.VocabularyID = @VocabularyID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SaveRelationshipType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[SaveRelationshipType]
@RelationshipTypeID INT ,
@Direction INT ,
@Name NVARCHAR(50) ,
@Description NVARCHAR(500) ,
@UserID INT
AS
IF ( @RelationshipTypeID = -1 )
BEGIN
INSERT dbo.RelationshipTypes
( Direction,
Name ,
Description,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @Direction , -- @Direction INT
@Name , -- Name - nvarchar(50)
@Description , -- @Description NVARCHAR(500)
@UserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@UserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @RelationshipTypeID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.RelationshipTypes
SET Name = @Name ,
Direction = @Direction ,
Description = @Description ,
LastModifiedByUserID = @UserID ,
LastModifiedOnDate = GETDATE()
WHERE RelationshipTypeID = @RelationshipTypeID
END
SELECT @RelationshipTypeID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSearchItem
@ModuleId int,
@SearchKey varchar(100)
AS
select
[SearchItemID],
[Title],
[Description],
[Author],
[PubDate],
[ModuleId],
[SearchKey],
[Guid],
[HitCount],
ImageFileId
from
dbo.SearchItem
where
[ModuleID] = @ModuleID AND
[SearchKey] = @SearchKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateAffiliateStats' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateAffiliateStats]
@AffiliateId int,
@Clicks int,
@Acquisitions int
AS
UPDATE dbo.Affiliates
SET Clicks = Clicks + @Clicks,
Acquisitions = Acquisitions + @Acquisitions
WHERE AffiliateId = @AffiliateId
AND ( StartDate < getdate() OR StartDate IS NULL )
AND ( EndDate > getdate() OR EndDate IS NULL )
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchItemWordPosition]
(
[SearchItemWordPositionID] [int] NOT NULL IDENTITY(1, 1),
[SearchItemWordID] [int] NOT NULL,
[ContentPosition] [int] NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchItemWordPosition' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchItemWordPosition] ADD CONSTRAINT [PK_SearchItemWordPosition] PRIMARY KEY CLUSTERED ([SearchItemWordPositionID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ListSearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.ListSearchItemWordPosition
AS
SELECT
[SearchItemWordPositionID],
[SearchItemWordID],
[ContentPosition]
FROM
dbo.SearchItemWordPosition
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_MessageAttachments' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[CoreMessaging_MessageAttachments]
(
[MessageAttachmentID] [int] NOT NULL IDENTITY(1, 1),
[MessageID] [int] NOT NULL,
[FileID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'CoreMessaging_MessageAttachments' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[CoreMessaging_MessageAttachments] ADD CONSTRAINT [PK_CoreMessaging_MessageAttachments] PRIMARY KEY CLUSTERED ([MessageAttachmentID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_CoreMessaging_MessageAttachments_MessageID' already exists on table 'dbo.CoreMessaging_MessageAttachments'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_CoreMessaging_MessageAttachments_MessageID] ON dbo.[CoreMessaging_MessageAttachments] ([MessageID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageConversations' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageConversations]
@UserID int,
@PortalID int,
@AfterMessageID int,
@NumberOfRecords int,
@SortField nvarchar(25) = 'CreatedOnDate',
@SortAscending bit = 0,
@Read bit = 0,
@Archived bit = 0,
@SentOnly bit = 0
AS
BEGIN
--Get the top message for each conversation
;WITH RollUpMessageIDs AS
(
SELECT MAX(m.MessageID) AS TopMessageID
FROM dbo.[CoreMessaging_MessageRecipients] mr
INNER JOIN dbo.[CoreMessaging_Messages] m ON mr.MessageID = m.MessageID
WHERE ((Archived = @Archived) or (@Archived is null AND [Archived] IS NOT null))
AND (([Read] = @Read) or (@Read is null AND [READ] IS NOT null))
AND ((@SentOnly = 1 AND SenderUserID = @UserID) or (@SentOnly is NULL AND UserID = @UserID) or (@SentOnly = 0 AND UserID = @UserID))
AND m.NotificationTypeID IS NULL AND m.PortalID=@PortalID
GROUP BY ConversationID
)
,Conversations AS
(
SELECT DISTINCT [MessageID], [ConversationID], [Subject], convert(nvarchar(50), [Body]) AS Body,
[To], [From], [ReplyAllAllowed], [SenderUserID],
[CreatedByUserID], [CreatedOnDate],
[LastModifiedByUserID], [LastModifiedOnDate],
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageAttachments WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID)) AS AttachmentCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID AND [READ] = 0) AS NewThreadCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID) AS ThreadCount,
ROW_NUMBER() OVER(ORDER BY
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 1 THEN [CreatedOnDate] END ASC,
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 0 THEN [CreatedOnDate] END DESC,
CASE WHEN @SortField = 'From' AND @SortAscending = 1 THEN [From] END ASC,
CASE WHEN @SortField = 'From' AND @SortAscending = 0 THEN [From] END DESC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 1 THEN [Subject] END ASC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 0 THEN [Subject] END DESC
) AS RowNumber
FROM dbo.CoreMessaging_Messages AS m
WHERE MessageID IN (SELECT TopMessageID FROM RollUpMessageIDs)
)
SELECT * FROM Conversations
WHERE (@AfterMessageID > 0 AND RowNumber BETWEEN (SELECT RowNumber + 1 FROM Conversations WHERE [MessageID] = @AfterMessageID) AND (SELECT RowNumber + @NumberOfRecords FROM Conversations WHERE [MessageID] = @AfterMessageID)) OR
(@AfterMessageID = -1 AND RowNumber BETWEEN 1 AND @NumberOfRecords)
ORDER BY RowNumber ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAuthenticationService' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetAuthenticationService
@AuthenticationID int
AS
SELECT *
FROM dbo.Authentication
WHERE AuthenticationID = @AuthenticationID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Relationships' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Relationships]
(
[RelationshipID] [int] NOT NULL IDENTITY(1, 1),
[RelationshipTypeID] [int] NOT NULL,
[Name] [nvarchar] (50) NOT NULL,
[Description] [nvarchar] (500) NULL,
[PortalID] [int] NULL,
[UserID] [int] NULL,
[DefaultResponse] [int] NOT NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Relationships_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Relationships_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Relationships' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Relationships] ADD CONSTRAINT [PK_Relationships] PRIMARY KEY CLUSTERED ([RelationshipID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Relationships_UserID' already exists on table 'dbo.Relationships'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Relationships_UserID] ON dbo.[Relationships] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRelationship] @RelationshipID INT
AS
SELECT RelationshipID,
RelationshipTypeID,
Name,
Description,
UserID,
PortalID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.Relationships
WHERE RelationshipID = @RelationshipID
ORDER BY RelationshipID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLogByLogGUID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventLogByLogGUID
@LogGUID varchar(36)
AS
SELECT *
FROM dbo.EventLog
WHERE (LogGUID = @LogGUID)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateLanguage]
@LanguageID int,
@CultureCode nvarchar(50),
@CultureName nvarchar(200),
@FallbackCulture nvarchar(50),
@LastModifiedByUserID int
AS
UPDATE dbo.Languages
SET
CultureCode = @CultureCode,
CultureName = @CultureName,
FallbackCulture = @FallbackCulture,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE LanguageID = @LanguageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageThread' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageThread]
@ConversationID int,
@UserID int,
@AfterMessageID int,
@NumberOfRecords int,
@SortField nvarchar(25) = 'CreatedOnDate',
@SortAscending bit = 0
AS
BEGIN
--Cannot return thread if user was not a recipient
IF NOT EXISTS (SELECT MR.RecipientID FROM dbo.[CoreMessaging_MessageRecipients] MR JOIN dbo.[CoreMessaging_Messages] M ON MR.MessageID = M.MessageID WHERE MR.UserID = @UserID AND M.NotificationTypeID IS NULL) BEGIN
SELECT 0
RETURN
END
;WITH inboxItems AS
(
SELECT DISTINCT [RecipientID], [Subject], [Body], [SenderUserID],
[Read], [Archived], [UserID], [To], [From], [ReplyAllAllowed], [ConversationID],
m.[MessageID],
m.[CreatedByUserID], m.[CreatedOnDate],
m.[LastModifiedByUserID], m.[LastModifiedOnDate],
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageAttachments WHERE MessageID = mr.MessageID) AS AttachmentCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID AND [READ] = 0) AS NewThreadCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID) AS ThreadCount,
ROW_NUMBER() OVER(ORDER BY
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 1 THEN m.[CreatedOnDate] END ASC,
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 0 THEN m.[CreatedOnDate] END DESC,
CASE WHEN @SortField = 'From' AND @SortAscending = 1 THEN [From] END ASC,
CASE WHEN @SortField = 'From' AND @SortAscending = 0 THEN [From] END DESC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 1 THEN [Subject] END ASC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 0 THEN [Subject] END DESC
) AS RowNumber
FROM dbo.CoreMessaging_MessageRecipients AS mr
INNER JOIN dbo.CoreMessaging_Messages AS m ON mr.MessageID = m.MessageID
WHERE mr.UserID = @UserID
AND ConversationID = @ConversationID
)
SELECT * FROM inboxItems
WHERE (@AfterMessageID > 0 AND RowNumber BETWEEN (SELECT RowNumber + 1 FROM inboxItems WHERE [MessageID] = @AfterMessageID) AND (SELECT RowNumber + @NumberOfRecords FROM inboxItems WHERE [MessageID] = @AfterMessageID)) OR
(@AfterMessageID = -1 AND RowNumber BETWEEN 1 AND @NumberOfRecords)
ORDER BY RowNumber ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPropertyDefinitionByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPropertyDefinitionByName
@PortalID int,
@Name nvarchar(50)
AS
SELECT *
FROM dbo.ProfilePropertyDefinition
WHERE (PortalId = @PortalID OR (PortalId IS NULL AND @PortalID IS NULL))
AND PropertyName = @Name
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRelationshipsByUserID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRelationshipsByUserID] @UserID INT
AS
SELECT RelationshipID,
RelationshipTypeID,
Name,
Description,
UserID,
PortalID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.Relationships
WHERE UserID = @UserID
ORDER BY RelationshipID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUserAuthentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddUserAuthentication
@UserID int,
@AuthenticationType nvarchar(100),
@AuthenticationToken nvarchar(1000),
@CreatedByUserID int
AS
INSERT INTO dbo.UserAuthentication (
UserID,
AuthenticationType,
AuthenticationToken,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
values (
@UserID,
@AuthenticationType,
@AuthenticationToken,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Banners' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Banners]
(
[BannerId] [int] NOT NULL IDENTITY(1, 1),
[VendorId] [int] NOT NULL,
[ImageFile] [nvarchar] (100) NULL,
[BannerName] [nvarchar] (100) NOT NULL,
[Impressions] [int] NOT NULL,
[CPM] [float] NOT NULL,
[Views] [int] NOT NULL CONSTRAINT [DF_Banners_Views] DEFAULT ((0)),
[ClickThroughs] [int] NOT NULL CONSTRAINT [DF_Banners_ClickThroughs] DEFAULT ((0)),
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[CreatedByUser] [nvarchar] (100) NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[BannerTypeId] [int] NULL,
[Description] [nvarchar] (2000) NULL,
[GroupName] [nvarchar] (100) NULL,
[Criteria] [bit] NOT NULL CONSTRAINT [DF_Banners_Criteria] DEFAULT ((1)),
[URL] [nvarchar] (255) NULL,
[Width] [int] NOT NULL CONSTRAINT [DF_Banners_Width] DEFAULT ((0)),
[Height] [int] NOT NULL CONSTRAINT [DF_Banners_Height] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Banners' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Banners] ADD CONSTRAINT [PK_Banner] PRIMARY KEY CLUSTERED ([BannerId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Banners_1' already exists on table 'dbo.Banners'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Banners_1] ON dbo.[Banners] ([VendorId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Banners' already exists on table 'dbo.Banners'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Banners] ON dbo.[Banners] ([BannerTypeId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateBannerViews' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateBannerViews
@BannerId int,
@StartDate datetime,
@EndDate datetime
as
update dbo.Banners
set Views = Views + 1,
StartDate = @StartDate,
EndDate = @EndDate
where BannerId = @BannerId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetSentBox' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetSentBox]
@UserID int,
@PortalID int,
@AfterMessageId int,
@NumberOfRecords int,
@SortField nvarchar(25) = 'CreatedOnDate',
@SortAscending bit = 0
AS
BEGIN
;WITH SentBox AS
(
SELECT DISTINCT [MessageID], [ConversationID], [Subject], convert(nvarchar(50), [Body]) AS Body,
[To], [From], [ReplyAllAllowed], [SenderUserID],
[CreatedByUserID], [CreatedOnDate],
[LastModifiedByUserID], [LastModifiedOnDate],
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageAttachments WHERE MessageID = m.MessageID) AS AttachmentCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID AND [READ] = 0) AS NewThreadCount,
(SELECT COUNT(*) FROM dbo.CoreMessaging_MessageRecipients WHERE MessageID IN (SELECT MessageID FROM dbo.CoreMessaging_Messages WHERE ConversationID = m.ConversationID) AND UserID = @UserID) AS ThreadCount,
ROW_NUMBER() OVER(ORDER BY
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 1 THEN [CreatedOnDate] END ASC,
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 0 THEN [CreatedOnDate] END DESC,
CASE WHEN @SortField = 'From' AND @SortAscending = 1 THEN [From] END ASC,
CASE WHEN @SortField = 'From' AND @SortAscending = 0 THEN [From] END DESC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 1 THEN [Subject] END ASC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 0 THEN [Subject] END DESC
) AS RowNumber
FROM dbo.CoreMessaging_Messages AS m
WHERE SenderUserID = @UserID
AND NotificationTypeID IS NULL AND PortalID = @PortalID
)
SELECT * FROM SentBox
WHERE (@AfterMessageID > 0 AND RowNumber BETWEEN (SELECT RowNumber + 1 FROM SentBox WHERE [MessageID] = @AfterMessageID) AND (SELECT RowNumber + @NumberOfRecords FROM SentBox WHERE [MessageID] = @AfterMessageID)) OR
(@AfterMessageID = -1 AND RowNumber BETWEEN 1 AND @NumberOfRecords)
ORDER BY RowNumber ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSchedule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSchedule
@Server varchar(150)
AS
BEGIN
SELECT
S.*
, (SELECT max(S1.NextStart)
FROM dbo.ScheduleHistory S1
WHERE S1.ScheduleID = S.ScheduleID) as NextStart
FROM dbo.Schedule S
WHERE
(@Server IS NULL OR S.Servers LIKE '%,' + @Server + ',%' OR S.Servers IS NULL)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRelationshipsByPortalID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRelationshipsByPortalID] @PortalID INT
AS
SELECT RelationshipID,
RelationshipTypeID,
Name,
Description,
UserID,
PortalID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.Relationships
WHERE PortalID = @PortalID AND UserID IS NULL
ORDER BY RelationshipID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteDesktopModulePermissionsByPortalDesktopModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteDesktopModulePermissionsByPortalDesktopModuleID]
@PortalDesktopModuleID int
AS
DELETE FROM dbo.DesktopModulePermission
WHERE PortalDesktopModuleID = @PortalDesktopModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchCommonWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSearchCommonWord
@CommonWordID int
AS
DELETE FROM dbo.SearchCommonWords
WHERE
[CommonWordID] = @CommonWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetArchiveBox' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetArchiveBox]
@UserID int,
@PortalID int,
@AfterMessageID int,
@NumberOfRecords int,
@SortField nvarchar(25) = 'CreatedOnDate',
@SortAscending bit = 0
AS
BEGIN
;WITH ArchiveBox AS
(
SELECT DISTINCT m.[MessageID], [ConversationID], [Subject], convert(nvarchar(50), [Body]) AS Body,
[To], [From], [ReplyAllAllowed], [SenderUserID],
m.[CreatedByUserID], m.[CreatedOnDate],
m.[LastModifiedByUserID], m.[LastModifiedOnDate],
(SELECT COUNT(*) FROM dbo.[CoreMessaging_MessageAttachments] WHERE MessageID = m.MessageID) AS AttachmentCount,
(SELECT COUNT(*) FROM dbo.[CoreMessaging_MessageRecipients] WHERE MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID = m.ConversationID) AND UserID = @UserID AND [READ] = 0) AS NewThreadCount,
(SELECT COUNT(*) FROM dbo.[CoreMessaging_MessageRecipients] WHERE MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID = m.ConversationID) AND UserID = @UserID) AS ThreadCount,
ROW_NUMBER() OVER(ORDER BY
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 1 THEN m.[CreatedOnDate] END ASC,
CASE WHEN @SortField = 'CreatedOnDate' AND @SortAscending = 0 THEN m.[CreatedOnDate] END DESC,
CASE WHEN @SortField = 'From' AND @SortAscending = 1 THEN [From] END ASC,
CASE WHEN @SortField = 'From' AND @SortAscending = 0 THEN [From] END DESC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 1 THEN [Subject] END ASC,
CASE WHEN @SortField = 'Subject' AND @SortAscending = 0 THEN [Subject] END DESC
) AS RowNumber
FROM dbo.[CoreMessaging_Messages] AS m
JOIN dbo.[CoreMessaging_MessageRecipients] AS MR ON m.MessageID = MR.MessageID
WHERE NotificationTypeID IS NULL AND PortalID = @PortalID AND MR.UserID = @UserID AND MR.Archived = 1
)
SELECT * FROM ArchiveBox
WHERE (@AfterMessageID > 0 AND RowNumber BETWEEN (SELECT RowNumber + 1 FROM ArchiveBox WHERE [MessageID] = @AfterMessageID) AND (SELECT RowNumber + @NumberOfRecords FROM ArchiveBox WHERE [MessageID] = @AfterMessageID)) OR
(@AfterMessageID = -1 AND RowNumber BETWEEN 1 AND @NumberOfRecords)
ORDER BY RowNumber ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetBanner' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetBanner
@BannerId int
as
select B.BannerId,
B.VendorId,
case when F.FileName is null then B.ImageFile else F.Folder + F.FileName end AS 'ImageFile',
B.BannerName,
B.Impressions,
B.CPM,
B.Views,
B.ClickThroughs,
B.StartDate,
B.EndDate,
U.FirstName + ' ' + U.LastName AS 'CreatedByUser',
B.CreatedDate,
B.BannerTypeId,
B.Description,
B.GroupName,
B.Criteria,
B.URL,
B.Width,
B.Height,
B.ImageFile AS ImageFileRaw
from dbo.Banners B
inner join dbo.Vendors V ON B.VendorId = V.VendorId
left outer join dbo.Users U ON B.CreatedByUser = U.UserID
left outer join dbo.Files F on B.ImageFile = 'FileId=' + convert(varchar,F.FileID)
where B.BannerId = @BannerId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteRelationship] @RelationshipID INT
AS
BEGIN
DELETE FROM dbo.Relationships
WHERE RelationshipID = @RelationshipID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'MetaData' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[MetaData]
(
[MetaDataID] [int] NOT NULL IDENTITY(1, 1),
[MetaDataName] [nvarchar] (100) NOT NULL,
[MetaDataDescription] [nvarchar] (2500) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'MetaData' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[MetaData] ADD CONSTRAINT [PK_MetaData] PRIMARY KEY CLUSTERED ([MetaDataID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ContentItems_MetaData' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ContentItems_MetaData]
(
[ContentItemMetaDataID] [int] NOT NULL IDENTITY(1, 1),
[ContentItemID] [int] NOT NULL,
[MetaDataID] [int] NOT NULL,
[MetaDataValue] [nvarchar] (max) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ContentItems_MetaData' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ContentItems_MetaData] ADD CONSTRAINT [PK_Content_MetaData] PRIMARY KEY CLUSTERED ([ContentItemMetaDataID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteMetaData' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteMetaData]
@ContentItemId int,
@Name nvarchar(100),
@Value nvarchar(MAX)
AS
DELETE FROM dbo.ContentItems_MetaData
FROM dbo.ContentItems_MetaData AS cm
INNER JOIN dbo.MetaData AS m ON cm.MetaDataID = m.MetaDataID
WHERE cm.ContentItemId = @ContentItemId AND m.MetaDataName = @Name AND cm.MetaDataValue = @Value
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUrl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteUrl
@PortalID int,
@Url nvarchar(255)
as
delete
from dbo.Urls
where PortalID = @PortalID
and Url = @Url
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetLastSentMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetLastSentMessage]
@UserID int,
@PortalID INT
AS
BEGIN
SELECT TOP 1 *
FROM dbo.[CoreMessaging_Messages]
WHERE SenderUserID = @UserID
AND PortalID=@PortalID
AND NotificationTypeID IS NULL
ORDER BY MessageID DESC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAffiliate' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetAffiliate
@AffiliateId int,
@VendorId int,
@PortalID int
AS
SELECT dbo.Affiliates.AffiliateId,
dbo.Affiliates.VendorId,
dbo.Affiliates.StartDate,
dbo.Affiliates.EndDate,
dbo.Affiliates.CPC,
dbo.Affiliates.Clicks,
dbo.Affiliates.CPA,
dbo.Affiliates.Acquisitions
FROM dbo.Affiliates
INNER JOIN dbo.Vendors ON dbo.Affiliates.VendorId = dbo.Vendors.VendorId
WHERE dbo.Affiliates.AffiliateId = @AffiliateId
AND dbo.Affiliates.VendorId = @VendorId
AND (dbo.Vendors.PortalId = @PortalID or (dbo.Vendors.PortalId is null and @PortalID is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SaveRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[SaveRelationship]
@RelationshipID INT,
@RelationshipTypeID INT,
@Name NVARCHAR(50),
@Description NVARCHAR(500),
@UserID INT,
@PortalID INT,
@DefaultResponse INT,
@CreateUpdateUserID INT
AS
IF ( @RelationshipID = -1 )
BEGIN
INSERT dbo.Relationships
( RelationshipTypeID,
Name ,
Description,
UserID,
PortalID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @RelationshipTypeID , -- @RelationshipTypeID INT
@Name , -- Name - nvarchar(50)
@Description , -- @Description NVARCHAR(500)
@UserID , -- @UserID int
@PortalID , -- @PortalID int
@DefaultResponse, -- @DefaultResponse int
@CreateUpdateUserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @RelationshipID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.Relationships
SET Name = @Name ,
Description = @Description,
RelationshipTypeID = @RelationshipTypeID,
UserID = @UserID,
PortalID = @PortalID,
DefaultResponse = @DefaultResponse,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE RelationshipID = @RelationshipID
END
SELECT @RelationshipID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountNewThreads' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountNewThreads]
@UserID int,
@PortalID INT
AS
BEGIN
SELECT COUNT(*) AS TotalNewThreads
FROM dbo.[CoreMessaging_MessageRecipients] MR
JOIN dbo.[CoreMessaging_Messages] M ON MR.MessageID = M.MessageID
WHERE MR.UserID = @UserID
AND MR.[Read] = 0
AND M.PortalID=@PortalID
AND M.NotificationTypeID IS NULL
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDefaultLanguageByModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetDefaultLanguageByModule
(
@ModuleList varchar(1000)
)
AS
BEGIN
SET NOCOUNT ON
DECLARE @TempList table
(
ModuleID int
)
DECLARE @ModuleID varchar(10), @Pos int
SET @ModuleList = LTRIM(RTRIM(@ModuleList))+ ','
SET @Pos = CHARINDEX(',', @ModuleList, 1)
IF REPLACE(@ModuleList, ',', '') <> ''
BEGIN
WHILE @Pos > 0
BEGIN
SET @ModuleID = LTRIM(RTRIM(LEFT(@ModuleList, @Pos - 1)))
IF @ModuleID <> ''
BEGIN
INSERT INTO @TempList (ModuleID) VALUES (CAST(@ModuleID AS int))
END
SET @ModuleList = RIGHT(@ModuleList, LEN(@ModuleList) - @Pos)
SET @Pos = CHARINDEX(',', @ModuleList, 1)
END
END
SELECT DISTINCT m.ModuleID, p.DefaultLanguage
FROM dbo.Modules m
INNER JOIN dbo.Portals p ON p.PortalID = m.PortalID
WHERE m.ModuleID in (SELECT ModuleID FROM @TempList)
ORDER BY m.ModuleID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserRelationships' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserRelationships]
(
[UserRelationshipID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[RelatedUserID] [int] NOT NULL,
[RelationshipID] [int] NOT NULL,
[Status] [int] NOT NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_UserRelationships_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_UserRelationships_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserRelationships' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserRelationships] ADD CONSTRAINT [PK_UserRelationships] PRIMARY KEY CLUSTERED ([UserRelationshipID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserRelationships_UserID' already exists on table 'dbo.UserRelationships'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserRelationships_UserID] ON dbo.[UserRelationships] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserRelationships_UserID_RelatedUserID_RelationshipID' already exists on table 'dbo.UserRelationships'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_UserRelationships_UserID_RelatedUserID_RelationshipID] ON dbo.[UserRelationships] ([UserID], [RelatedUserID], [RelationshipID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserRelationships_RelatedUserID' already exists on table 'dbo.UserRelationships'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserRelationships_RelatedUserID] ON dbo.[UserRelationships] ([RelatedUserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRelationship] @UserRelationshipID INT
AS
SELECT UserRelationshipID,
UserID,
RelatedUserID,
RelationshipID,
Status,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationships
WHERE UserRelationshipID = @UserRelationshipID
ORDER BY UserRelationshipID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddHeirarchicalTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddHeirarchicalTerm]
@VocabularyID int,
@ParentTermID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@CreatedByUserID int
AS
DECLARE @Left int
-- Get Left value of Sibling that we are inserting before
SET @Left = (SELECT TOP 1 TermLeft FROM dbo.Taxonomy_Terms
WHERE VocabularyID = @VocabularyID
AND ParentTermID = @ParentTermID
AND Name > @Name
ORDER BY Name)
-- Term is to be inserted at end of sibling list so get the Right value of the parent, which will become our new left value
IF @Left IS NULL
SET @Left = (SELECT TermRight FROM dbo.Taxonomy_Terms
WHERE VocabularyID = @VocabularyID
AND TermID = @ParentTermID)
-- Left is still null means this is the first term in this vocabulary - set the Left to 1
IF @Left IS NULL
SET @Left = 1
BEGIN TRANSACTION
-- Update Left values for all items that are after new term
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft + 2
WHERE TermLeft >= @Left
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Right values for all items that are after new term
UPDATE dbo.Taxonomy_Terms
SET TermRight = TermRight + 2
WHERE TermRight >= @Left
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Insert new term
INSERT INTO dbo.Taxonomy_Terms (
VocabularyID,
ParentTermID,
[Name],
Description,
Weight,
TermLeft,
TermRight,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@VocabularyID,
@ParentTermID,
@Name,
@Description,
@Weight,
@Left,
@Left + 1,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
IF @@ERROR = 0
BEGIN
COMMIT TRANSACTION
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllFiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllFiles]
AS
BEGIN
SELECT
F.FileId,
FO.PortalId,
F.[FileName],
F.Extension,
F.Size,
F.Width,
F.Height,
F.ContentType,
F.FolderID,
FolderPath AS 'Folder',
FO.StorageLocation,
FO.IsCached,
F.UniqueId,
F.VersionGuid,
F.SHA1Hash,
FO.FolderMappingID
FROM dbo.[Files] F
INNER JOIN dbo.[Folders] FO on F.FolderID = FO.FolderID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountTotalConversations' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountTotalConversations]
@UserID int,
@PortalID int
AS
BEGIN
SELECT COUNT(DISTINCT M.ConversationID) AS TotalConversations
FROM dbo.[CoreMessaging_Messages] M
JOIN dbo.[CoreMessaging_MessageRecipients] MR ON M.MessageID = MR.MessageID
WHERE NotificationTypeID IS NULL AND PortalID = @PortalID AND Archived = 0 AND UserID = @UserID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SkinControls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SkinControls]
(
[SkinControlID] [int] NOT NULL IDENTITY(1, 1),
[PackageID] [int] NOT NULL CONSTRAINT [DF_SkinControls_PackageID] DEFAULT ((-1)),
[ControlKey] [nvarchar] (50) NULL,
[ControlSrc] [nvarchar] (256) NULL,
[IconFile] [nvarchar] (100) NULL,
[HelpUrl] [nvarchar] (200) NULL,
[SupportsPartialRendering] [bit] NOT NULL CONSTRAINT [DF_SkinControls_SupportsPartialRendering] DEFAULT ((0)),
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SkinControls' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SkinControls] ADD CONSTRAINT [PK_SkinControls] PRIMARY KEY CLUSTERED ([SkinControlID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinControlByPackageID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSkinControlByPackageID]
@PackageID int
AS
SELECT *
FROM dbo.SkinControls
WHERE PackageID = @PackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRelationshipsByMultipleIDs' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRelationshipsByMultipleIDs]
@UserID INT,
@RelatedUserID INT,
@RelationshipID INT,
@Direction INT
AS
IF ( @Direction = 1 ) --OneWay
BEGIN
SELECT UserRelationshipID,
UserID,
RelatedUserID,
RelationshipID,
Status,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationships
WHERE UserID = @UserID
AND RelatedUserID = @RelatedUserID
AND RelationshipID = @RelationshipID
ORDER BY UserRelationshipID ASC
END
ELSE IF ( @Direction = 2 ) --TwoWay
BEGIN
SELECT UserRelationshipID,
UserID,
RelatedUserID,
RelationshipID,
Status,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationships
WHERE ( (UserID = @UserID AND RelatedUserID = @RelatedUserID)
OR (RelatedUserID = @UserID AND UserID = @RelatedUserID) --swap userids and check
)
AND RelationshipID = @RelationshipID
ORDER BY UserRelationshipID ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItemWordBySearchWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchItemWordBySearchWord
@SearchWordsID int
AS
SELECT
[SearchItemWordID],
[SearchItemID],
[SearchWordsID],
[Occurrences]
FROM
dbo.SearchItemWord
WHERE
[SearchWordsID]=@SearchWordsID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountMessagesByConversation' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountMessagesByConversation]
@ConversationID int
AS
BEGIN
SELECT COUNT(*) AS TotalRecords
FROM dbo.CoreMessaging_Messages
WHERE (ConversationID = @ConversationID)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RestoreUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.RestoreUser
@UserID int,
@PortalID int
AS
IF @PortalID IS NULL
BEGIN
UPDATE dbo.Users
SET IsDeleted = 0
WHERE UserId = @UserID
END
ELSE
BEGIN
UPDATE dbo.UserPortals
SET IsDeleted = 0
WHERE UserId = @UserID
AND PortalId = @PortalID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUserRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteUserRelationship] @UserRelationshipID INT
AS
BEGIN
DELETE FROM dbo.UserRelationships
WHERE UserRelationshipID = @UserRelationshipID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSimpleTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSimpleTerm]
@VocabularyID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@CreatedByUserID int
AS
INSERT INTO dbo.Taxonomy_Terms (
VocabularyID,
[Name],
Description,
Weight,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@VocabularyID,
@Name,
@Description,
@Weight,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeletePackage
@PackageID int
AS
DELETE
FROM dbo.Packages
WHERE [PackageID] = @PackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountArchivedMessagesByConversation' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountArchivedMessagesByConversation]
@ConversationID int
AS
BEGIN
SELECT COUNT(*) AS TotalArchivedThreads
FROM dbo.[CoreMessaging_MessageRecipients]
WHERE MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID = @ConversationID)
AND [Archived] = 1
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SaveUserRelationship' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[SaveUserRelationship]
@UserRelationshipID INT,
@UserID INT,
@RelatedUserID INT,
@RelationshipID INT,
@Status INT,
@CreateUpdateUserID INT
AS
IF ( @UserRelationshipID = -1 )
BEGIN
INSERT dbo.UserRelationships
( UserID,
RelatedUserID,
RelationshipID,
Status,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @UserID , -- @UserID int
@RelatedUserID , -- @RelatedUserlID int
@RelationshipID, -- @RelationshipID int
@Status , -- @Status int
@CreateUpdateUserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @UserRelationshipID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.UserRelationships
SET UserID = @UserID,
RelatedUserID = @RelatedUserID,
RelationshipID = @RelationshipID,
Status = @Status,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE UserRelationshipID = @UserRelationshipID
END
SELECT @UserRelationshipID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermission
@PermissionID int
AS
SELECT *
FROM
dbo.Permission
WHERE
[PermissionID] = @PermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeletePortalSettings]
@PortalID int
AS
DELETE FROM dbo.PortalSettings
WHERE PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddHostSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddHostSetting
@SettingName nvarchar(50),
@SettingValue nvarchar(256),
@SettingIsSecure bit,
@CreatedByUserID int
AS
insert into HostSettings (
SettingName,
SettingValue,
SettingIsSecure,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
values (
@SettingName,
@SettingValue,
@SettingIsSecure,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountSentMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountSentMessages]
@UserID int,
@PortalID int
AS
BEGIN
SELECT COUNT(MessageID) AS TotalRecords
FROM dbo.[CoreMessaging_Messages]
WHERE SenderUserID = @UserID
AND NotificationTypeID IS NULL AND PortalID = @PortalID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserRelationshipPreferences' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserRelationshipPreferences]
(
[PreferenceID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[RelationshipID] [int] NOT NULL,
[DefaultResponse] [int] NOT NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_UserRelationshipPreferences_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_UserRelationshipPreferences_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserRelationshipPreferences' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserRelationshipPreferences] ADD CONSTRAINT [PK_UserRelationshipPreferences] PRIMARY KEY CLUSTERED ([PreferenceID], [RelationshipID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRelationshipPreferenceByID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRelationshipPreferenceByID]
@PreferenceID INT
AS
SELECT PreferenceID,
UserID,
RelationshipID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationshipPreferences
WHERE @PreferenceID = @PreferenceID
ORDER BY PreferenceID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalByPortalAliasID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortalByPortalAliasID]
@PortalAliasId int
AS
SELECT P.*
FROM dbo.vw_Portals P
INNER JOIN dbo.PortalAlias PA ON P.PortalID = PA.PortalID
WHERE PA.PortalAliasId = @PortalAliasId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateUrlTrackingStats' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateUrlTrackingStats
@PortalID int,
@Url nvarchar(255),
@ModuleId int
as
update dbo.UrlTracking
set Clicks = Clicks + 1,
LastClick = getdate()
where PortalID = @PortalID
and Url = @Url
and ((ModuleId = @ModuleId) or (ModuleId is null and @ModuleId is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddLanguagePack' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddLanguagePack]
@PackageID int,
@LanguageID int,
@DependentPackageID int,
@CreatedByUserID int
AS
INSERT INTO dbo.LanguagePacks (
PackageID,
LanguageID,
DependentPackageID,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PackageID,
@LanguageID,
@DependentPackageID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountArchivedMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountArchivedMessages]
@UserID int,
@PortalID int
AS
BEGIN
SELECT COUNT(DISTINCT M.MessageID) AS TotalRecords
FROM dbo.[CoreMessaging_Messages] M
JOIN dbo.[CoreMessaging_MessageRecipients] MR ON M.MessageID = MR.MessageID
WHERE Archived = 1
AND NotificationTypeID IS NULL AND PortalID = @PortalID AND UserID = @UserID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SaveCoreAuditTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.SaveCoreAuditTypes
@LogTypeKey nvarchar(35),
@LogTypeFriendlyName nvarchar(50),
@LogTypeOwner nvarchar(100),
@LogTypeCSSClass nvarchar(40) ,
@LoggingIsActive bit,
@KeepMostRecent int,
@EmailNotificationIsActive bit
AS
IF NOT EXISTS (SELECT * FROM dbo.EventLogTypes WHERE LogTypeKey = @LogTypeKey)
BEGIN
-- Add new Event Type
EXEC dbo.AddEventLogType @LogTypeKey, @LogTypeFriendlyName, N'', @LogTypeOwner, @LogTypeCSSClass
-- Add new Event Type Config
EXEC dbo.AddEventLogConfig @LogTypeKey, NULL, @LoggingIsActive, @KeepMostRecent, @EmailNotificationIsActive, 1, 1, 1, N'', N''
-- exit
Return
END
ELSE
UPDATE dbo.EventLogTypes SET LogTypeFriendlyName = @LogTypeFriendlyName WHERE LogTypeKey = @LogTypeKey
UPDATE dbo.EventLogConfig
SET LoggingIsActive=@LoggingIsActive,
KeepMostRecent=@KeepMostRecent,
EmailNotificationIsActive=@EmailNotificationIsActive
WHERE LogTypeKey = @LogTypeKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRelationshipPreference' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRelationshipPreference]
@UserID INT,
@RelationshipID INT
AS
SELECT PreferenceID,
UserID,
RelationshipID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationshipPreferences
WHERE UserID = @UserID
AND RelationshipID = @RelationshipID
ORDER BY UserID ASC, RelationshipID ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddSearchItemWordPosition
@SearchItemWordID int,
@ContentPositions varChar(2000)
AS
SET NOCOUNT ON
DECLARE @TempList table
(
ItemWordID int,
Position int
)
DECLARE @Position varchar(10), @Pos int
SET @ContentPositions = LTRIM(RTRIM(@ContentPositions))+ ','
SET @Pos = CHARINDEX(',', @ContentPositions, 1)
IF REPLACE(@ContentPositions, ',', '') <> ''
BEGIN
WHILE @Pos > 0
BEGIN
SET @Position = LTRIM(RTRIM(LEFT(@ContentPositions, @Pos - 1)))
IF @Position <> ''
BEGIN
INSERT INTO @TempList (ItemWordID, Position) VALUES (@SearchItemWordID, CAST(@Position AS int))
END
SET @ContentPositions = RIGHT(@ContentPositions, LEN(@ContentPositions) - @Pos)
SET @Pos = CHARINDEX(',', @ContentPositions, 1)
END
END
INSERT INTO dbo.SearchItemWordPosition (
[SearchItemWordID],
[ContentPosition])
SELECT ItemWordID, Position FROM @TempList
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabPermission]
@TabPermissionID int
AS
SELECT *
FROM dbo.vw_TabPermissions
WHERE TabPermissionID = @TabPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_UpdateMessageReadStatus' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_UpdateMessageReadStatus]
@ConversationID int,
@UserID int,
@Read bit
AS
BEGIN
UPDATE dbo.[CoreMessaging_MessageRecipients] SET [Read]=@Read
WHERE UserID = @UserID
AND MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID=@ConversationID)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModulePermission]
@ModulePermissionID int
AS
SELECT *
FROM dbo.vw_ModulePermissions
WHERE ModulePermissionID = @ModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUserRelationshipPreference' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteUserRelationshipPreference]
@PreferenceID INT
AS
BEGIN
DELETE FROM dbo.UserRelationshipPreferences
WHERE PreferenceID = @PreferenceID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateHostSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateHostSetting
@SettingName nvarchar(50),
@SettingValue nvarchar(256),
@SettingIsSecure bit,
@LastModifiedByUserID int
AS
UPDATE HostSettings
SET
SettingValue = @SettingValue,
SettingIsSecure = @SettingIsSecure,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_UpdateMessageArchivedStatus' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_UpdateMessageArchivedStatus]
@ConversationID int,
@UserID int,
@Archived bit
AS
BEGIN
UPDATE dbo.[CoreMessaging_MessageRecipients]
SET [Archived] = @Archived
WHERE UserID = @UserID
AND MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID = @ConversationID)
IF @Archived = 1 BEGIN
-- If archiving, set also as read
UPDATE dbo.[CoreMessaging_MessageRecipients]
SET [Read] = 1
WHERE [UserID] = @UserID
AND MessageID IN (SELECT MessageID FROM dbo.[CoreMessaging_Messages] WHERE ConversationID = @ConversationID)
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetExpiredPortals' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetExpiredPortals]
AS
SELECT * FROM dbo.vw_Portals
WHERE ExpiryDate < getDate()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SaveUserRelationshipPreference' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[SaveUserRelationshipPreference]
@PreferenceID INT,
@UserID INT,
@RelationshipID INT,
@DefaultResponse INT,
@CreateUpdateUserID INT
AS
IF ( @PreferenceID = -1 )
BEGIN
INSERT dbo.UserRelationshipPreferences
( UserID,
RelationshipID,
DefaultResponse,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @UserID , -- @UserID int
@RelationshipID, -- @RelationshipID int
@DefaultResponse , -- @DefaultResponse int
@CreateUpdateUserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @PreferenceID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.UserRelationshipPreferences
SET UserID = @UserID,
RelationshipID = @RelationshipID,
DefaultResponse = @DefaultResponse,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE PreferenceID = @PreferenceID
END
SELECT @PreferenceID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSearchItemWord
@SearchItemWordID int
AS
DELETE FROM dbo.SearchItemWord
WHERE
[SearchItemWordID] = @SearchItemWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddVendor' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.AddVendor
@PortalID int,
@VendorName nvarchar(50),
@Unit nvarchar(50),
@Street nvarchar(50),
@City nvarchar(50),
@Region nvarchar(50),
@Country nvarchar(50),
@PostalCode nvarchar(50),
@Telephone nvarchar(50),
@Fax nvarchar(50),
@Cell nvarchar(50),
@Email nvarchar(50),
@Website nvarchar(100),
@FirstName nvarchar(50),
@LastName nvarchar(50),
@UserName nvarchar(100),
@LogoFile nvarchar(100),
@KeyWords text,
@Authorized bit
as
insert into dbo.Vendors (
VendorName,
Unit,
Street,
City,
Region,
Country,
PostalCode,
Telephone,
PortalId,
Fax,
Cell,
Email,
Website,
FirstName,
Lastname,
ClickThroughs,
Views,
CreatedByUser,
CreatedDate,
LogoFile,
KeyWords,
Authorized
)
values (
@VendorName,
@Unit,
@Street,
@City,
@Region,
@Country,
@PostalCode,
@Telephone,
@PortalID,
@Fax,
@Cell,
@Email,
@Website,
@FirstName,
@LastName,
0,
0,
@UserName,
getdate(),
@LogoFile,
@KeyWords,
@Authorized
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Taxonomy_ScopeTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Taxonomy_ScopeTypes]
(
[ScopeTypeID] [int] NOT NULL IDENTITY(1, 1),
[ScopeType] [nvarchar] (250) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Taxonomy_ScopeTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Taxonomy_ScopeTypes] ADD CONSTRAINT [PK_ScopeTypes] PRIMARY KEY CLUSTERED ([ScopeTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddScopeType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddScopeType]
@ScopeType nvarchar(250)
AS
INSERT INTO dbo.Taxonomy_ScopeTypes (
ScopeType
)
VALUES (
@ScopeType
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRelationships' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRelationships]
@UserID INT
AS
SELECT UserRelationshipID,
UserID,
RelatedUserID,
RelationshipID,
Status,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.UserRelationships
WHERE UserID = @UserID OR RelatedUserID = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddMetaData' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddMetaData]
@ContentItemID int,
@Name nvarchar(100),
@Value nvarchar(MAX)
AS
DECLARE @MetaDataID int
SET @MetaDataID = (SELECT MetaDataID FROM MetaData WHERE MetaDataName = @Name)
IF @MetaDataID IS NULL
BEGIN
--Insert new item into MetaData table
INSERT INTO dbo.MetaData ( MetaDataName ) VALUES ( @Name )
SET @MetaDataID = (SELECT SCOPE_IDENTITY() )
END
INSERT INTO dbo.ContentItems_MetaData (
ContentItemID,
MetaDataID,
MetaDataValue
)
VALUES (
@ContentItemID,
@MetaDataID,
@Value
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPackages]
@PortalID int
AS
SELECT *
FROM dbo.Packages
WHERE (PortalID = @PortalID OR @PortalID IS NULL OR PortalID IS NULL)
ORDER BY PackageType ASC, [FriendlyName] ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRoleGroupByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetRoleGroupByName
@PortalID int,
@RoleGroupName nvarchar(50)
AS
SELECT *
FROM dbo.RoleGroups
WHERE PortalId = @PortalID
AND RoleGroupName = @RoleGroupName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleDefinitions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleDefinitions]
AS
SELECT *
FROM dbo.ModuleDefinitions
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateLanguagePack' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateLanguagePack]
@LanguagePackID int,
@PackageID int,
@LanguageID int,
@DependentPackageID int,
@LastModifiedByUserID int
AS
UPDATE dbo.LanguagePacks
SET
PackageID = @PackageID,
LanguageID = @LanguageID,
DependentPackageID = @DependentPackageID,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE LanguagePackID = @LanguagePackID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPropertyDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddPropertyDefinition]
@PortalId int,
@ModuleDefId int,
@DataType int,
@DefaultValue nvarchar(max),
@PropertyCategory nvarchar(50),
@PropertyName nvarchar(50),
@ReadOnly bit,
@Required bit,
@ValidationExpression nvarchar(2000),
@ViewOrder int,
@Visible bit,
@Length int,
@DefaultVisibility int,
@CreatedByUserID int
AS
DECLARE @PropertyDefinitionId int
SELECT @PropertyDefinitionId = PropertyDefinitionId
FROM dbo.ProfilePropertyDefinition
WHERE (PortalId = @PortalId OR (PortalId IS NULL AND @PortalId IS NULL))
AND PropertyName = @PropertyName
IF @vieworder=-1
BEGIN
SELECT @vieworder = MAX(ViewOrder) + 1
FROM dbo.ProfilePropertyDefinition
END
IF @PropertyDefinitionId IS NULL
BEGIN
INSERT dbo.ProfilePropertyDefinition (
PortalId,
ModuleDefId,
Deleted,
DataType,
DefaultValue,
PropertyCategory,
PropertyName,
ReadOnly,
Required,
ValidationExpression,
ViewOrder,
Visible,
Length,
DefaultVisibility,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalId,
@ModuleDefId,
0,
@DataType,
@DefaultValue,
@PropertyCategory,
@PropertyName,
@ReadOnly,
@Required,
@ValidationExpression,
@ViewOrder,
@Visible,
@Length,
@DefaultVisibility,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT @PropertyDefinitionId = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.ProfilePropertyDefinition
SET DataType = @DataType,
ModuleDefId = @ModuleDefId,
DefaultValue = @DefaultValue,
PropertyCategory = @PropertyCategory,
ReadOnly = @ReadOnly,
Required = @Required,
ValidationExpression = @ValidationExpression,
ViewOrder = @ViewOrder,
Deleted = 0,
Visible = @Visible,
Length = @Length,
DefaultVisibility = @DefaultVisibility,
[LastModifiedByUserID] = @CreatedByUserID,
[LastModifiedOnDate] = getdate()
WHERE PropertyDefinitionId = @PropertyDefinitionId
END
SELECT @PropertyDefinitionId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionByCodeAndKey' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionByCodeAndKey
@PermissionCode varchar(50),
@PermissionKey varchar(50)
AS
SELECT *
FROM dbo.Permission
WHERE
(PermissionCode = @PermissionCode or @PermissionCode IS NULL)
AND
(PermissionKey = @PermissionKey or @PermissionKey IS NULL)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteBanner' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteBanner
@BannerId int
as
delete
from dbo.Banners
where BannerId = @BannerId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteScopeType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteScopeType]
@ScopeTypeId int
AS
DELETE FROM dbo.Taxonomy_ScopeTypes
WHERE ScopeTypeId = @ScopeTypeId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePropertyDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePropertyDefinition]
@PropertyDefinitionId int,
@DataType int,
@DefaultValue nvarchar(50),
@PropertyCategory nvarchar(50),
@PropertyName nvarchar(50),
@ReadOnly bit,
@Required bit,
@ValidationExpression nvarchar(2000),
@ViewOrder int,
@Visible bit,
@Length int,
@DefaultVisibility int,
@LastModifiedByUserID int
AS
UPDATE dbo.ProfilePropertyDefinition
SET DataType = @DataType,
DefaultValue = @DefaultValue,
PropertyCategory = @PropertyCategory,
PropertyName = @PropertyName,
ReadOnly = @ReadOnly,
Required = @Required,
ValidationExpression = @ValidationExpression,
ViewOrder = @ViewOrder,
Visible = @Visible,
Length = @Length,
DefaultVisibility = @DefaultVisibility,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE PropertyDefinitionId = @PropertyDefinitionId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabModuleVersionByModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabModuleVersionByModule]
@ModuleID int
AS
UPDATE dbo.TabModules
SET VersionGuid = NEWID()
WHERE ModuleID = @ModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLogConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventLogConfig
@ID int
AS
SELECT c.*, t.LogTypeFriendlyName
FROM dbo.EventLogConfig AS c
INNER JOIN dbo.EventLogTypes AS t ON t.LogTypeKey = c.LogTypeKey
WHERE (ID = @ID or @ID IS NULL)
ORDER BY t.LogTypeFriendlyName ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ListSearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.ListSearchItemWord
AS
SELECT
[SearchItemWordID],
[SearchItemID],
[SearchWordsID],
[Occurrences]
FROM
dbo.SearchItemWord
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModuleLastContentModifiedOnDate' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModuleLastContentModifiedOnDate]
@ModuleID int
AS
UPDATE dbo.Modules
SET LastContentModifiedOnDate = GETDATE()
WHERE ModuleID = @ModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PackageTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PackageTypes]
(
[PackageType] [nvarchar] (100) NOT NULL,
[Description] [nvarchar] (500) NOT NULL,
[SecurityAccessLevel] [int] NOT NULL,
[EditorControlSrc] [nvarchar] (250) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PackageTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PackageTypes] ADD CONSTRAINT [PK_PackageTypes_1] PRIMARY KEY CLUSTERED ([PackageType])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackageType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPackageType
@PackageType nvarchar(50)
AS
SELECT *
FROM dbo.PackageTypes
WHERE PackageType = @PackageType
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUrlTracking' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteUrlTracking
@PortalID int,
@Url nvarchar(255),
@ModuleID int
as
delete
from dbo.UrlTracking
where PortalID = @PortalID
and Url = @Url
and ((ModuleId = @ModuleId) or (ModuleId is null and @ModuleId is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScopeTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetScopeTypes]
AS
SELECT *
FROM dbo.Taxonomy_ScopeTypes
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSimpleTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteSimpleTerm]
@TermId int
AS
DELETE FROM dbo.Taxonomy_Terms
WHERE TermID = @TermID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabPanes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetTabPanes
@TabId int
as
select distinct(PaneName) as PaneName
from dbo.TabModules
where TabId = @TabId
order by PaneName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinControlByKey' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSkinControlByKey]
@ControlKey nvarchar(50)
AS
SELECT *
FROM dbo.SkinControls
WHERE ControlKey = @ControlKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetHostSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetHostSetting
@SettingName nvarchar(50)
as
select SettingValue
from dbo.HostSettings
where SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSearchItem
@SearchItemID int
AS
DELETE FROM dbo.SearchItem
WHERE
[SearchItemID] = @SearchItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUrlTracking' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetUrlTracking
@PortalID int,
@Url nvarchar(255),
@ModuleId int
as
select *
from dbo.UrlTracking
where PortalID = @PortalID
and Url = @Url
and ((ModuleId = @ModuleId) or (ModuleId is null and @ModuleId is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackageByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPackageByName
@PortalID int,
@Name nvarchar(128)
AS
SELECT *
FROM dbo.Packages
WHERE [Name] = @Name
AND (PortalID = @PortalID OR @PortalID IS NULL Or PortalID IS Null)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddAuthentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddAuthentication
@PackageID int,
@AuthenticationType nvarchar(100),
@IsEnabled bit,
@SettingsControlSrc nvarchar(250),
@LoginControlSrc nvarchar(250),
@LogoffControlSrc nvarchar(250),
@CreatedByUserID int
AS
INSERT INTO Authentication (
PackageID,
AuthenticationType,
IsEnabled,
SettingsControlSrc,
LoginControlSrc,
LogoffControlSrc,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PackageID,
@AuthenticationType,
@IsEnabled,
@SettingsControlSrc,
@LoginControlSrc,
@LogoffControlSrc,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteRoleGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteRoleGroup]
@RoleGroupId int
AS
DELETE
FROM dbo.RoleGroups
WHERE RoleGroupId = @RoleGroupId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateServerActivity' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateServerActivity
@ServerName nvarchar(50),
@IISAppName nvarchar(200),
@CreatedDate datetime,
@LastActivityDate datetime
AS
DECLARE @ServerID int
SET @ServerID = (SELECT ServerID FROM dbo.WebServers WHERE ServerName = @ServerName AND IISAppName = @IISAppName)
IF @ServerID IS NULL
BEGIN
-- Insert
INSERT INTO dbo.WebServers (
ServerName,
IISAppName,
CreatedDate,
LastActivityDate,
[Enabled]
)
VALUES (
@ServerName,
@IISAppName,
@CreatedDate,
@LastActivityDate,
0
)
END
ELSE
BEGIN
-- Update
UPDATE dbo.WebServers
SET
LastActivityDate = @LastActivityDate
WHERE ServerName = @ServerName AND IISAppName = @IISAppName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalDefaultLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPortalDefaultLanguage
@PortalId int
AS
SELECT defaultlanguage
FROM dbo.Portals
where portalid=@PortalId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateAuthentication' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateAuthentication
@AuthenticationID int,
@PackageID int,
@AuthenticationType nvarchar(100),
@IsEnabled bit,
@SettingsControlSrc nvarchar(250),
@LoginControlSrc nvarchar(250),
@LogoffControlSrc nvarchar(250),
@LastModifiedByUserID int
AS
UPDATE dbo.Authentication
SET PackageID = @PackageID,
AuthenticationType = @AuthenticationType,
IsEnabled = @IsEnabled,
SettingsControlSrc = @SettingsControlSrc,
LoginControlSrc = @LoginControlSrc,
LogoffControlSrc = @LogoffControlSrc,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE AuthenticationID = @AuthenticationID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalDefaultLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdatePortalDefaultLanguage
@PortalId int,
@CultureCode nvarchar(50)
AS
UPDATE dbo.Portals
SET defaultlanguage=@CultureCode
where portalid=@PortalId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateUrlTracking' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateUrlTracking
@PortalID int,
@Url nvarchar(255),
@LogActivity bit,
@TrackClicks bit,
@ModuleId int,
@NewWindow bit
as
update dbo.UrlTracking
set LogActivity = @LogActivity,
TrackClicks = @TrackClicks,
NewWindow = @NewWindow
where PortalID = @PortalID
and Url = @Url
and ((ModuleId = @ModuleId) or (ModuleId is null and @ModuleId is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSkinControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateSkinControl]
@SkinControlID int,
@PackageID int,
@ControlKey nvarchar(50),
@ControlSrc nvarchar(256),
@SupportsPartialRendering bit,
@LastModifiedByUserID int
AS
UPDATE dbo.SkinControls
SET
PackageID = @PackageID,
ControlKey = @ControlKey,
ControlSrc = @ControlSrc,
SupportsPartialRendering = @SupportsPartialRendering,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE SkinControlID = @SkinControlID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FolderMappings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[FolderMappings]
(
[FolderMappingID] [int] NOT NULL IDENTITY(1, 1),
[PortalID] [int] NULL,
[MappingName] [nvarchar] (50) NOT NULL,
[FolderProviderType] [nvarchar] (50) NOT NULL,
[Priority] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'FolderMappings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[FolderMappings] ADD CONSTRAINT [PK_FolderMappings] PRIMARY KEY CLUSTERED ([FolderMappingID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddFolderMapping' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddFolderMapping]
@PortalID int,
@MappingName nvarchar(50),
@FolderProviderType nvarchar(50),
@CreatedByUserID int
AS
BEGIN
DECLARE @Priority int
SELECT TOP 1 @Priority = Priority + 1
FROM dbo.[FolderMappings]
WHERE [PortalID] = @PortalID
ORDER BY Priority DESC
INSERT INTO dbo.[FolderMappings] (
PortalID,
MappingName,
FolderProviderType,
Priority,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalID,
@MappingName,
@FolderProviderType,
@Priority,
@CreatedByUserID,
GETDATE(),
@CreatedByUserID,
GETDATE()
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEnabledAuthenticationServices' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEnabledAuthenticationServices
AS
SELECT *
FROM dbo.Authentication
WHERE IsEnabled = 1
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPackageTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[GetPackageTypes]
AS
SELECT PackageType, Description, SecurityAccessLevel, EditorControlSrc
FROM dbo.PackageTypes
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabPermissionsByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetTabPermissionsByPortal
@PortalID int
AS
IF @portalid is not null
BEGIN
SELECT *
FROM dbo.vw_TabPermissions
WHERE PortalID = @PortalID
END
ELSE
BEGIN
SELECT *
FROM dbo.vw_TabPermissions
WHERE PortalID IS NULL
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionsByFolder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionsByFolder
AS
SELECT *
FROM dbo.Permission
WHERE PermissionCode = 'SYSTEM_FOLDER'
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleByScheduleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetScheduleByScheduleID
@ScheduleID int
AS
SELECT S.*
FROM dbo.Schedule S
WHERE S.ScheduleID = @ScheduleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSkinControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSkinControl]
@PackageID int,
@ControlKey nvarchar(50),
@ControlSrc nvarchar(256),
@SupportsPartialRendering bit,
@CreatedByUserID int
AS
INSERT INTO dbo.SkinControls (
PackageID,
ControlKey,
ControlSrc,
SupportsPartialRendering,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PackageID,
@ControlKey,
@ControlSrc,
@SupportsPartialRendering,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLogPendingNotif' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventLogPendingNotif
@LogConfigID int
AS
SELECT *
FROM dbo.EventLog
WHERE LogNotificationPending = 1
AND LogConfigID = @LogConfigID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRoles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRoles]
AS
SELECT
R.*,
(SELECT COUNT(*) FROM dbo.UserRoles U WHERE U.RoleID = R.RoleID) AS UserCount
FROM dbo.Roles AS R
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPropertyDefinitionsByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPropertyDefinitionsByPortal
@PortalID int
AS
SELECT dbo.ProfilePropertyDefinition.*
FROM dbo.ProfilePropertyDefinition
WHERE (PortalId = @PortalID OR (PortalId IS NULL AND @PortalID IS NULL))
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVendorsByEmail' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetVendorsByEmail
@Filter nvarchar(50),
@PortalID int,
@PageSize int,
@PageIndex int
AS
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int
-- Set the page bounds
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageLowerBound + @PageSize + 1
CREATE TABLE #PageIndex
(
IndexID int IDENTITY (1, 1) NOT NULL,
VendorId int
)
INSERT INTO #PageIndex (VendorId)
SELECT VendorId
FROM dbo.Vendors
WHERE ( (Email like @Filter + '%') AND ((PortalId = @PortalID) or (@PortalID is null and PortalId is null)) )
ORDER BY VendorId DESC
SELECT COUNT(*) as TotalRecords
FROM #PageIndex
SELECT dbo.Vendors.*,
( select count(*) from dbo.Banners where dbo.Banners.VendorId = dbo.Vendors.VendorId ) AS 'Banners'
FROM dbo.Vendors
INNER JOIN #PageIndex PageIndex
ON dbo.Vendors.VendorId = PageIndex.VendorId
WHERE ( (PageIndex.IndexID > @PageLowerBound) OR @PageLowerBound is null )
AND ( (PageIndex.IndexID < @PageUpperBound) OR @PageUpperBound is null )
ORDER BY
PageIndex.IndexID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateScopeType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateScopeType]
@ScopeTypeId int,
@ScopeType nvarchar(250)
AS
UPDATE dbo.Taxonomy_ScopeTypes
SET
ScopeType = @ScopeType
WHERE ScopeTypeId = @ScopeTypeId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddPermission
@ModuleDefID int,
@PermissionCode varchar(50),
@PermissionKey varchar(50),
@PermissionName varchar(50),
@CreatedByUserID int
AS
INSERT INTO dbo.Permission (
[ModuleDefID],
[PermissionCode],
[PermissionKey],
[PermissionName],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@ModuleDefID,
@PermissionCode,
@PermissionKey,
@PermissionName,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'TabSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[TabSettings]
(
[TabID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (2000) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_TabSettings_TabID_SettingName' already exists on table 'dbo.TabSettings'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE CLUSTERED INDEX [IX_TabSettings_TabID_SettingName] ON dbo.[TabSettings] ([TabID], [SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddTabSetting
@TabID INT,
@SettingName NVARCHAR(50),
@SettingValue NVARCHAR(2000),
@CreatedByUserID INT
AS
INSERT INTO dbo.TabSettings (
TabID,
SettingName,
SettingValue,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@TabId,
@SettingName,
@SettingValue,
@CreatedByUserID,
GETDATE(),
@CreatedByUserID,
GETDATE()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabModules]
@TabId int
AS
SELECT *
FROM dbo.vw_TabModules
WHERE TabId = @TabId
ORDER BY ModuleOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.DeleteRole
@RoleId int
as
delete
from dbo.FolderPermission
where RoleId = @RoleId
delete
from dbo.ModulePermission
where RoleId = @RoleId
delete
from dbo.TabPermission
where RoleId = @RoleId
delete
from dbo.Roles
where RoleId = @RoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Classification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Classification]
(
[ClassificationId] [int] NOT NULL IDENTITY(1, 1),
[ClassificationName] [nvarchar] (200) NOT NULL,
[ParentId] [int] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Classification' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Classification] ADD CONSTRAINT [PK_VendorCategory] PRIMARY KEY CLUSTERED ([ClassificationId])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Classification' already exists on table 'dbo.Classification'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Classification] ON dbo.[Classification] ([ParentId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVendorClassifications' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetVendorClassifications
@VendorId int
as
select ClassificationId,
ClassificationName,
case when exists ( select 1 from dbo.VendorClassification vc where vc.VendorId = @VendorId and vc.ClassificationId = Classification.ClassificationId ) then 1 else 0 end AS 'IsAssociated'
from dbo.Classification
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionsByModuleDefID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionsByModuleDefID
@ModuleDefID int
AS
SELECT *
FROM dbo.Permission
WHERE ModuleDefID = @ModuleDefID
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFolderMapping' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateFolderMapping]
@FolderMappingID int,
@MappingName nvarchar(50),
@Priority int,
@LastModifiedByUserID int
AS
BEGIN
UPDATE dbo.[FolderMappings]
SET
MappingName = @MappingName,
Priority = @Priority,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE FolderMappingID = @FolderMappingID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetListParentKey' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetListParentKey]
(
@ParentID AS int,
@ListName as nvarchar(50),
@Type as nvarchar(50),
@Count as int
)
RETURNS nvarchar(2000)
AS
BEGIN
DECLARE @KeyValue nvarchar(2000)
DECLARE @ListValue nvarchar(2000)
DECLARE @TextValue nvarchar(2000)
DECLARE @ReturnValue nvarchar(2000)
DECLARE @Key nvarchar(2000)
IF @ParentID = 0
IF @Count = 0
SET @ReturnValue = ''
ELSE
SET @ReturnValue = @ListName
ELSE
BEGIN
SELECT @KeyValue = ListName + '.' + [Value],
@TextValue = ListName + '.' + [Text],
@ListValue = ListName,
@ParentID = ParentID
FROM dbo.Lists
WHERE EntryID = @ParentID
If @Type = 'ParentKey' Or (@Type = 'ParentList' AND @Count > 0)
SET @ReturnValue = @KeyValue
ELSE
IF @Type = 'ParentList'
SET @ReturnValue = @ListValue
ELSE
SET @ReturnValue = @TextValue
IF @Count > 0
If @Count = 1 AND @Type = 'ParentList'
SET @ReturnValue = @ReturnValue + ':' + @ListName
ELSE
SET @ReturnValue = @ReturnValue + '.' + @ListName
SET @ReturnValue = dbo.GetListParentKey(@ParentID, @ReturnValue, @Type, @Count+1)
END
RETURN @ReturnValue
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Lists' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_Lists]
AS
SELECT
EntryID,
ListName,
Value,
Text,
[Level],
SortOrder,
DefinitionID,
ParentID,
Description,
PortalID,
SystemList,
dbo.GetListParentKey(ParentID, ListName, N'ParentKey', 0) AS ParentKey,
dbo.GetListParentKey(ParentID, ListName, N'Parent', 0) AS Parent,
dbo.GetListParentKey(ParentID, ListName, N'ParentList', 0) AS ParentList,
(SELECT MAX(SortOrder) FROM dbo.[Lists] WHERE (ListName = L.ListName) AND (ParentID = L.ParentID)) AS MaxSortOrder,
(SELECT COUNT(EntryID) FROM dbo.[Lists] AS Lists_1 WHERE (ListName = L.ListName) AND (ParentID = L.ParentID)) AS EntryCount,
(SELECT COUNT(DISTINCT ParentID) FROM dbo.[Lists] AS Lists_2 WHERE (ParentID = L.EntryID)) AS HasChildren,
L.CreatedByUserID,
L.CreatedOnDate,
L.LastModifiedByUserID,
L.LastModifiedOnDate
FROM dbo.[Lists] AS L
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateEventLogType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateEventLogType
@LogTypeKey nvarchar(35),
@LogTypeFriendlyName nvarchar(50),
@LogTypeDescription nvarchar(128),
@LogTypeOwner nvarchar(100),
@LogTypeCSSClass nvarchar(40)
AS
UPDATE dbo.EventLogTypes
SET LogTypeFriendlyName = @LogTypeFriendlyName,
LogTypeDescription = @LogTypeDescription,
LogTypeOwner = @LogTypeOwner,
LogTypeCSSClass = @LogTypeCSSClass
WHERE LogTypeKey = @LogTypeKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdatePermission
@PermissionID int,
@PermissionCode varchar(50),
@ModuleDefID int,
@PermissionKey varchar(50),
@PermissionName varchar(50),
@LastModifiedByUserID int
AS
UPDATE dbo.Permission SET
[ModuleDefID] = @ModuleDefID,
[PermissionCode] = @PermissionCode,
[PermissionKey] = @PermissionKey,
[PermissionName] = @PermissionName,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE
[PermissionID] = @PermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLogPendingNotifConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventLogPendingNotifConfig
AS
SELECT COUNT(*) as PendingNotifs,
elc.ID,
elc.LogTypeKey,
elc.LogTypePortalID,
elc.LoggingIsActive,
elc.KeepMostRecent,
elc.EmailNotificationIsActive,
elc.NotificationThreshold,
elc.NotificationThresholdTime,
elc.NotificationThresholdTimeType,
elc.MailToAddress,
elc.MailFromAddress
FROM dbo.EventLogConfig elc
INNER JOIN dbo.EventLog
ON dbo.EventLog.LogConfigID = elc.ID
WHERE dbo.EventLog.LogNotificationPending = 1
GROUP BY elc.ID,
elc.LogTypeKey,
elc.LogTypePortalID,
elc.LoggingIsActive,
elc.KeepMostRecent,
elc.EmailNotificationIsActive,
elc.NotificationThreshold,
elc.NotificationThresholdTime,
elc.NotificationThresholdTimeType,
elc.MailToAddress,
elc.MailFromAddress
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteTabSetting
@TabID INT,
@SettingName NVARCHAR(50)
AS
DELETE FROM dbo.TabSettings
WHERE TabID = @TabID
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetTabSetting
@TabID INT,
@SettingName NVARCHAR(50)
AS
SELECT
CASE WHEN LEFT(LOWER(dbo.TabSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + CONVERT(VARCHAR,dbo.Files.FileID) = dbo.TabSettings.SettingValue
)
ELSE
dbo.TabSettings.SettingValue
END
AS SettingValue
FROM dbo.TabSettings
WHERE TabID = @TabID
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDatabaseVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetDatabaseVersion
as
select Major,
Minor,
Build
from dbo.Version
where VersionId = ( select max(VersionId) from dbo.Version )
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetOnlineUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetOnlineUser]
@UserID int
AS
SELECT
U.UserID,
U.UserName
FROM dbo.Users U
WHERE U.UserID = @UserID
AND EXISTS (
select 1 from dbo.UsersOnline UO where UO.UserID = U.UserID
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ModuleSettings]
(
[ModuleID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (max) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ModuleSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ModuleSettings] ADD CONSTRAINT [PK_ModuleSettings] PRIMARY KEY CLUSTERED ([ModuleID], [SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteModuleSettings
@ModuleId int
as
DELETE FROM dbo.ModuleSettings
WHERE ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RoleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[RoleSettings]
(
[RoleSettingID] [int] NOT NULL IDENTITY(1, 1),
[RoleID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (2000) NOT NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_RoleSettings_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_RoleSettings_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'RoleSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[RoleSettings] ADD CONSTRAINT [PK_RoleSettings] PRIMARY KEY CLUSTERED ([RoleSettingID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRoleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRoleSettings]
@RoleId int
AS
SELECT *
FROM dbo.RoleSettings
WHERE RoleID = @RoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetTabSettings
@TabID int
AS
SELECT
SettingName,
CASE WHEN LEFT(LOWER(dbo.TabSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + CONVERT(VARCHAR,dbo.Files.FileID) = dbo.TabSettings.SettingValue
)
ELSE
dbo.TabSettings.SettingValue
END AS SettingValue
FROM dbo.TabSettings
WHERE TabID = @TabID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddContentItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddContentItem]
@Content nvarchar(max),
@ContentTypeID int,
@TabID int,
@ModuleID int,
@ContentKey nvarchar(250),
@Indexed bit,
@CreatedByUserID int
AS
INSERT INTO dbo.ContentItems (
Content,
ContentTypeID,
TabID,
ModuleID,
ContentKey,
Indexed,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@Content,
@ContentTypeID,
@TabID,
@ModuleID,
@ContentKey,
@Indexed,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateRoleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateRoleSetting]
@RoleID int,
@SettingName nvarchar(50),
@SettingValue nvarchar(2000),
@UserID int
AS
IF (SELECT COUNT(*) FROM dbo.RoleSettings WHERE RoleID = @RoleID AND SettingName = @SettingName) > 0
--Update
UPDATE dbo.RoleSettings
SET SettingValue = @SettingValue,
[LastModifiedByUserID]=@UserID,
[LastModifiedOnDate]=getdate()
WHERE RoleID = @RoleID
AND SettingName = @SettingName
ELSE
--Add
INSERT INTO dbo.RoleSettings
(
RoleID,
SettingName,
SettingValue,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES
(
@RoleID,
@SettingName,
@SettingValue ,
@UserID ,
getdate() ,
@UserID,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IsUserInRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.IsUserInRole
@UserID int,
@RoleId int,
@PortalID int
as
select dbo.UserRoles.UserId,
dbo.UserRoles.RoleId
from dbo.UserRoles
inner join dbo.Roles on dbo.UserRoles.RoleId = dbo.Roles.RoleId
where dbo.UserRoles.UserId = @UserID
and dbo.UserRoles.RoleId = @RoleId
and dbo.Roles.PortalId = @PortalID
and (dbo.UserRoles.ExpiryDate >= getdate() or dbo.UserRoles.ExpiryDate is null)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_Controls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Dashboard_Controls]
(
[DashboardControlID] [int] NOT NULL IDENTITY(1, 1),
[DashboardControlKey] [nvarchar] (50) NOT NULL,
[IsEnabled] [bit] NOT NULL,
[DashboardControlSrc] [nvarchar] (250) NOT NULL,
[DashboardControlLocalResources] [nvarchar] (250) NOT NULL,
[ControllerClass] [nvarchar] (250) NULL,
[ViewOrder] [int] NOT NULL CONSTRAINT [DF_Dashboard_Controls_ViewOrder] DEFAULT ((0)),
[PackageID] [int] NOT NULL CONSTRAINT [DF_Dashboard_Controls_PackageID] DEFAULT ((-1))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Dashboard_Controls' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Dashboard_Controls] ADD CONSTRAINT [PK_Dashboard] PRIMARY KEY CLUSTERED ([DashboardControlID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_AddControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.Dashboard_AddControl
@PackageId int,
@DashboardControlKey nvarchar(50),
@IsEnabled bit,
@DashboardControlSrc nvarchar(250),
@DashboardControlLocalResources nvarchar(250),
@ControllerClass nvarchar(250),
@ViewOrder int
AS
IF @ViewOrder = -1
SET @ViewOrder = (SELECT TOP 1 ViewOrder FROM Dashboard_Controls ORDER BY ViewOrder DESC) + 1
INSERT INTO dbo.Dashboard_Controls (
PackageId,
DashboardControlKey,
IsEnabled,
DashboardControlSrc,
DashboardControlLocalResources,
ControllerClass,
ViewOrder
)
VALUES (
@PackageId,
@DashboardControlKey,
@IsEnabled,
@DashboardControlSrc,
@DashboardControlLocalResources,
@ControllerClass,
@ViewOrder
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFileContent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFileContent]
@FileId int
AS
BEGIN
SELECT Content
FROM dbo.[Files]
WHERE FileId = @FileId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_SearchItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_SearchItems]
AS
SELECT
si.SearchItemID,
m.PortalID,
tm.TabID,
m.ModuleID,
si.Title,
si.Description,
si.Author,
si.PubDate,
si.SearchKey,
si.Guid,
si.HitCount,
si.ImageFileId,
u.DisplayName AS AuthorName
FROM dbo.SearchItem AS si
LEFT OUTER JOIN dbo.Users AS u ON si.Author = u.UserID
INNER JOIN dbo.Modules AS m ON si.ModuleId = m.ModuleID
INNER JOIN dbo.TabModules AS tm ON m.ModuleID = tm.ModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUrlTracking' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddUrlTracking
@PortalID int,
@Url nvarchar(255),
@UrlType char(1),
@LogActivity bit,
@TrackClicks bit,
@ModuleId int,
@NewWindow bit
as
insert into dbo.UrlTracking (
PortalID,
Url,
UrlType,
Clicks,
LastClick,
CreatedDate,
LogActivity,
TrackClicks,
ModuleId,
NewWindow
)
values (
@PortalID,
@Url,
@UrlType,
0,
null,
getdate(),
@LogActivity,
@TrackClicks,
@ModuleId,
@NewWindow
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_FolderPermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_FolderPermissions]
AS
SELECT
FP.FolderPermissionID,
F.FolderID,
F.FolderPath,
P.PermissionID,
FP.RoleID,
CASE FP.RoleID WHEN - 1 THEN 'All Users' WHEN - 2 THEN 'Superuser' WHEN - 3 THEN 'Unauthenticated Users' ELSE R.RoleName END AS RoleName,
FP.AllowAccess,
FP.UserID,
U.Username,
U.DisplayName,
P.PermissionCode,
P.ModuleDefID,
P.PermissionKey,
P.PermissionName,
F.PortalID,FP.CreatedByUserID,
FP.CreatedOnDate, FP.LastModifiedByUserID, FP.LastModifiedOnDate
FROM dbo.FolderPermission AS FP
LEFT OUTER JOIN dbo.Folders AS F ON FP.FolderID = F.FolderID
LEFT OUTER JOIN dbo.Permission AS P ON FP.PermissionID = P.PermissionID
LEFT OUTER JOIN dbo.Roles AS R ON FP.RoleID = R.RoleID
LEFT OUTER JOIN dbo.Users AS U ON FP.UserID = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderPermissionsByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderPermissionsByPortal]
@PortalId int
AS
BEGIN
IF @PortalId IS NOT NULL BEGIN
SELECT *
FROM dbo.vw_FolderPermissions
WHERE PortalID = @PortalID
END
ELSE BEGIN
SELECT *
FROM dbo.vw_FolderPermissions
WHERE PortalID IS NULL
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSearchItems]
@PortalID int,
@TabId int,
@ModuleId int
AS
SELECT DISTINCT
SearchItemID,
ModuleID,
Title,
[Description],
Author,
PubDate,
SearchKey,
[Guid],
HitCount,
ImageFileId,
AuthorName
FROM dbo.vw_SearchItems
WHERE (PortalId = @PortalID or @PortalID is null)
AND (TabId = @TabId or @TabId is null)
AND (ModuleId = @ModuleId or @ModuleId is null)
ORDER BY PubDate DESC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUserRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteUserRole
@UserID int,
@RoleId int
as
delete
from dbo.UserRoles
where UserId = @UserID
and RoleId = @RoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalInfo' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeletePortalInfo
@PortalID int
AS
/* Delete all the Portal Modules */
DELETE
FROM dbo.Modules
WHERE PortalId = @PortalID
/* Delete all the Portal Skins */
DELETE
FROM dbo.Packages
WHERE PortalId = @PortalID
/* Delete Portal */
DELETE
FROM dbo.Portals
WHERE PortalId = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_SaveMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_SaveMessage]
@MessageID INT,
@PortalID INT,
@To nvarchar(2000),
@From nvarchar(200),
@Subject nvarchar(400),
@Body nvarchar(max),
@ConversationID int,
@ReplyAllAllowed bit,
@SenderUserID int,
@CreateUpdateUserID INT
AS
IF ( @MessageID = -1 )
BEGIN
INSERT dbo.CoreMessaging_Messages(
[PortalID],
[To],
[From],
[Subject],
[Body],
[ConversationID],
[ReplyAllAllowed],
[SenderUserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalID,
@To,
@From,
@Subject,
@Body,
NULL,
@ReplyAllAllowed,
@SenderUserID,
@CreateUpdateUserID , -- CreatedBy - int
GETUTCDATE(), -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @MessageID = SCOPE_IDENTITY()
UPDATE dbo.CoreMessaging_Messages SET [ConversationID] = @MessageID WHERE [MessageID] = @MessageID
END
ELSE
BEGIN
UPDATE dbo.CoreMessaging_Messages
SET [To] = @To,
[From] = @From,
[Subject] = @Subject,
[Body] = @Body,
[ConversationID] = @ConversationID,
[ReplyAllAllowed] = @ReplyAllAllowed,
[SenderUserID] = SenderUserID,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE MessageID = @MessageID
END
SELECT @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_UserRoles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_UserRoles]
AS
SELECT
UR.UserRoleID,
R.RoleID,
U.UserID,
R.PortalID,
R.RoleName,
U.Username,
R.Description,
U.DisplayName,
U.Email,
UR.Status,
UR.IsOwner,
R.SecurityMode,
R.ServiceFee,
R.BillingFrequency,
R.TrialPeriod,
R.TrialFrequency,
R.BillingPeriod,
R.TrialFee,
R.IsPublic,
R.AutoAssignment,
R.RoleGroupID,
R.RSVPCode,
R.IconFile,
UR.EffectiveDate,
UR.ExpiryDate,
UR.IsTrialUsed,
UR.CreatedByUserID,
UR.CreatedOnDate,
UR.LastModifiedByUserID,
UR.LastModifiedOnDate
FROM dbo.UserRoles AS UR
INNER JOIN dbo.Users AS U ON UR.UserID = U.UserID
INNER JOIN dbo.Roles AS R ON UR.RoleID = R.RoleID
WHERE R.Status = 1
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRolesByUsername' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRolesByUsername]
@PortalID int,
@Username nvarchar(100),
@Rolename nvarchar(50)
AS
IF @UserName Is Null
BEGIN
SELECT *
FROM dbo.vw_UserRoles
WHERE PortalId = @PortalID AND (Rolename = @Rolename or @RoleName is NULL)
END
ELSE
BEGIN
IF @RoleName Is NULL
BEGIN
SELECT *
FROM dbo.vw_UserRoles
WHERE PortalId = @PortalID AND (Username = @Username or @Username is NULL)
END
ELSE
BEGIN
SELECT *
FROM dbo.vw_UserRoles
WHERE PortalId = @PortalID
AND (Rolename = @Rolename or @RoleName is NULL)
AND (Username = @Username or @Username is NULL)
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetControls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Dashboard_GetControls]
@IsEnabled bit
AS
BEGIN
IF @IsEnabled = 0 BEGIN
SELECT *
FROM dbo.[Dashboard_Controls]
ORDER BY ViewOrder
END
ELSE BEGIN
SELECT *
FROM dbo.[Dashboard_Controls]
WHERE IsEnabled = 1
ORDER BY ViewOrder
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteList' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[DeleteList]
@ListName nvarchar(50),
@ParentKey nvarchar(150)
AS
DELETE
FROM dbo.vw_Lists
WHERE ListName = @ListName
AND ParentKey =@ParentKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetRolesBasicSearch' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetRolesBasicSearch]
(
@PortalID int, -- portal
@PageSize int, -- page size
@FilterBy nvarchar(100) -- filter field
)
AS
BEGIN
SELECT TOP (@PageSize)
RoleID,PortalID,RoleName,Description,ServiceFee,BillingFrequency,TrialPeriod,TrialFrequency,BillingPeriod,TrialFee,IsPublic,AutoAssignment,RoleGroupID,RSVPCode,CASE WHEN LEFT(LOWER(IconFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName
FROM dbo.[Files]
WHERE fileid = CAST((RIGHT(LOWER(IconFile), Len(IconFile) - 7)) AS int)
) ELSE ''
END AS IconFile,
CreatedByUserID,CreatedOnDate,LastModifiedByUserID,LastModifiedOnDate, Status, SecurityMode
FROM dbo.[Roles]
WHERE RoleName LIKE '%' + @FilterBy + '%'
AND (PortalID = @PortalID OR (@PortalID is null))
ORDER BY RoleName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddScheduleItemSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddScheduleItemSetting]
@ScheduleID int,
@Name nvarchar(50),
@Value nvarchar(256)
AS
BEGIN
UPDATE dbo.[ScheduleItemSettings]
SET SettingValue = @Value
WHERE ScheduleID = @ScheduleID
AND SettingName = @Name
IF @@ROWCOUNT = 0 BEGIN
INSERT INTO dbo.[ScheduleItemSettings] (ScheduleID, SettingName, Settingvalue)
VALUES (@ScheduleID, @Name, @Value)
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteTabSettings
@TabID INT
AS
DELETE FROM dbo.TabSettings
WHERE TabID = @TabID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetLists' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[GetLists]
@PortalID int
AS
SELECT DISTINCT
ListName,
[Level],
DefinitionID,
PortalID,
SystemList,
EntryCount,
ParentID,
ParentKey,
Parent,
ParentList,
MaxSortOrder
FROM dbo.vw_Lists
WHERE PortalID = @PortalID
ORDER BY [Level], ListName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Users' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_Users]
AS
SELECT DISTINCT
U.UserID,
(CASE WHEN IsSuperUser = 1 THEN NULL ELSE UP.PortalId END) AS PortalId,
U.Username,
U.FirstName,
U.LastName,
U.DisplayName,
U.IsSuperUser,
U.Email,
U.AffiliateId,
U.UpdatePassword,
UP.Authorised,
(CASE WHEN UP.PortalId IS NULL THEN U.IsDeleted ELSE UP.IsDeleted END) AS IsDeleted,
UP.RefreshRoles,
U.LastIPAddress,
U.CreatedByUserID,
U.CreatedOnDate,
U.LastModifiedByUserID,
U.LastModifiedOnDate
FROM dbo.Users AS U
LEFT OUTER JOIN dbo.UserPortals AS UP ON U.UserID = UP.UserId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserByDisplayName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserByDisplayName]
@PortalID int,
@DisplayName nvarchar(128)
AS
SELECT * FROM dbo.vw_Users
WHERE DisplayName = @DisplayName
AND ((@PortalId IS NULL) OR (PortalId = @PortalID) OR IsSuperUser = 1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleSettings]
@ModuleId int
AS
SELECT
SettingName,
CASE WHEN LEFT(LOWER(dbo.ModuleSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM Files
WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.ModuleSettings.SettingValue
)
ELSE
dbo.ModuleSettings.SettingValue
END
AS SettingValue
FROM dbo.ModuleSettings
WHERE ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessagesBySender' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessagesBySender]
@SenderUserID INT,
@PortalID INT
AS
BEGIN
SELECT [MessageID], [To], [From], [Subject], [Body], [ConversationID], [ReplyAllAllowed], [SenderUserID], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_Messages]
WHERE [SenderUserID] = @SenderUserID AND [PortalID] = @PortalID
AND [NotificationTypeID] IS NULL
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFolderMapping' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteFolderMapping]
@FolderMappingID int
AS
BEGIN
DELETE
FROM dbo.[FolderMappings]
WHERE FolderMappingID = @FolderMappingID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.DeleteSearchItems
(
@ModuleID int
)
AS
DELETE
FROM dbo.SearchItem
WHERE ModuleID = @ModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTermToContent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTermToContent]
@TermID int,
@ContentItemID int
AS
INSERT INTO dbo.ContentItems_Tags (
TermID,
ContentItemID
)
VALUES (
@TermID,
@ContentItemID
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNextMessagesForDispatch' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNextMessagesForDispatch]
@SchedulerInstance uniqueidentifier,
@BatchSize int
AS
BEGIN
WITH CTE AS
(
SELECT TOP (@BatchSize) *
FROM dbo.CoreMessaging_MessageRecipients
WHERE EmailSent = 0 AND (EmailSchedulerInstance IS NULL OR EmailSchedulerInstance = '00000000-0000-0000-0000-000000000000')
ORDER BY CreatedOnDate DESC
)
UPDATE CTE
SET EmailSchedulerInstance = @SchedulerInstance
SELECT TOP (@BatchSize) *
FROM dbo.CoreMessaging_MessageRecipients
WHERE EmailSent = 0 AND EmailSchedulerInstance = @SchedulerInstance
ORDER BY CreatedOnDate DESC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddBanner' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddBanner
@BannerName nvarchar(100),
@VendorId int,
@ImageFile nvarchar(100),
@URL nvarchar(255),
@Impressions int,
@CPM float,
@StartDate datetime,
@EndDate datetime,
@UserName nvarchar(100),
@BannerTypeId int,
@Description nvarchar(2000),
@GroupName nvarchar(100),
@Criteria bit,
@Width int,
@Height int
as
insert into dbo.Banners (
VendorId,
ImageFile,
BannerName,
URL,
Impressions,
CPM,
Views,
ClickThroughs,
StartDate,
EndDate,
CreatedByUser,
CreatedDate,
BannerTypeId,
Description,
GroupName,
Criteria,
Width,
Height
)
values (
@VendorId,
@ImageFile,
@BannerName,
@URL,
@Impressions,
@CPM,
0,
0,
@StartDate,
@EndDate,
@UserName,
getdate(),
@BannerTypeId,
@Description,
@GroupName,
@Criteria,
@Width,
@Height
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteMessage]
@MessageID int
AS
DELETE FROM dbo.CoreMessaging_Messages
WHERE [MessageID] = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSiteLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteSiteLog]
@DateTime datetime,
@PortalID int
AS
DELETE FROM dbo.SiteLog WITH(READPAST)
WHERE PortalId = @PortalID
AND DateTime < @DateTime
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderMapping' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderMapping]
@FolderMappingID int
AS
BEGIN
SELECT *
FROM dbo.[FolderMappings]
WHERE FolderMappingID = @FolderMappingID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_MarkMessageAsDispatched' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_MarkMessageAsDispatched]
@MessageId int,
@RecipientId int
AS
BEGIN
Update dbo.CoreMessaging_MessageRecipients set EmailSent = 1, EmailSentDate =GETDATE() where MessageID =@MessageId AND RecipientId=@RecipientId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddListEntry' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddListEntry]
@ListName nvarchar(50),
@Value nvarchar(100),
@Text nvarchar(150),
@ParentID int,
@Level int,
@EnableSortOrder bit,
@DefinitionID int,
@Description nvarchar(500),
@PortalID int,
@SystemList bit,
@CreatedByUserID int
AS
DECLARE @SortOrder int
IF @EnableSortOrder = 1
SET @SortOrder = IsNull((SELECT MAX ([SortOrder]) From dbo.[Lists] Where [ListName] = @ListName), 0) + 1
ELSE
SET @SortOrder = 0
-- Check if this entry exists
If EXISTS (SELECT [EntryID] From dbo.[Lists] WHERE [ListName] = @ListName And [Value] = @Value And [Text] = @Text And [ParentID] = @ParentID)
BEGIN
SELECT -1
RETURN
END
INSERT INTO dbo.[Lists]
(
[ListName],
[Value],
[Text],
[Level],
[SortOrder],
[DefinitionID],
[ParentID],
[Description],
[PortalID],
[SystemList],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@ListName,
@Value,
@Text,
@Level,
@SortOrder,
@DefinitionID,
@ParentID,
@Description,
@PortalID,
@SystemList,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_SaveMessageRecipient' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_SaveMessageRecipient]
@RecipientID int,
@MessageID int,
@UserID int,
@Read bit,
@Archived bit,
@CreateUpdateUserID INT
AS
BEGIN
IF ( @RecipientID = -1 )
BEGIN
INSERT dbo.CoreMessaging_MessageRecipients(
[MessageID],
[UserID],
[Read],
[Archived],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@MessageID,
@UserID,
@Read,
@Archived,
@CreateUpdateUserID , -- CreatedBy - int
GETDATE(), -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @RecipientID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.CoreMessaging_MessageRecipients
SET [MessageID] = @MessageID,
[UserID] = @UserID,
[Read] = @Read,
[Archived] = @Archived,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE RecipientID = @RecipientID
END
SELECT @RecipientID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleHistory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetScheduleHistory @ScheduleID INT
AS
SELECT S.* ,
SH.*
FROM dbo.Schedule S
INNER JOIN dbo.ScheduleHistory SH ON S.ScheduleID = SH.ScheduleID
WHERE S.ScheduleID = @ScheduleID
OR @ScheduleID = -1
ORDER BY SH.StartDate DESC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSystemMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSystemMessages
as
select MessageName
from dbo.SystemMessages
where PortalID is null
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionsByModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionsByModuleID
@ModuleID int
AS
SELECT *
FROM dbo.Permission
WHERE ModuleDefID = (SELECT ModuleDefID FROM dbo.Modules WHERE ModuleID = @ModuleID)
OR PermissionCode = 'SYSTEM_MODULE_DEFINITION'
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteUserPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteUserPortal]
@UserID int,
@PortalID int
AS
IF @PortalID IS NULL
BEGIN
UPDATE dbo.Users
SET
IsDeleted = 1
WHERE UserId = @UserID
END
ELSE
BEGIN
UPDATE dbo.UserPortals
SET
IsDeleted = 1
WHERE UserId = @UserID
AND PortalId = @PortalID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSkinControl]
@SkinControlID int
AS
SELECT *
FROM dbo.SkinControls
WHERE SkinControlID = @SkinControlID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ConvertListToTable' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[ConvertListToTable]
(
@Delimiter nvarchar(5),
@List nvarchar(max)
)
RETURNS @TableOfValues TABLE
(
RowNumber smallint IDENTITY(1,1),
RowValue nvarchar(50)
)
AS
BEGIN
DECLARE @LenString int
WHILE len( @List ) > 0
BEGIN
SELECT @LenString =
(CASE charindex( @Delimiter, @List )
WHEN 0 THEN len( @List )
ELSE ( charindex( @Delimiter, @List ) -1 )
END
)
INSERT INTO @TableOfValues
SELECT substring( @List, 1, @LenString )
SELECT @List =
(CASE ( len( @List ) - @LenString )
WHEN 0 THEN ''
ELSE right( @List, len( @List ) - @LenString - 1 )
END
)
END
RETURN
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CreateMessageRecipientsForRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CreateMessageRecipientsForRole]
@MessageID int, -- message id
@RoleIDs nvarchar(max), -- comma separated list of RoleIds
@CreateUpdateUserID INT -- create / update user id
AS
BEGIN
;WITH CTE_RoleIDs(RowNumber, RowValue)
AS
(
SELECT * FROM dbo.ConvertListToTable(',', @RoleIDs)
),
CTE_DistinctUserIDs(UserID)
AS
(
SELECT DISTINCT UserID
FROM dbo.vw_UserRoles ur
INNER JOIN CTE_RoleIDs cr ON ur.RoleID = cr.RowValue
)
INSERT dbo.CoreMessaging_MessageRecipients(
[MessageID],
[UserID],
[Read],
[Archived],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
SELECT
@MessageID,
UserID,
0,
0,
@CreateUpdateUserID , -- CreatedBy - int
GETDATE(), -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
FROM CTE_DistinctUserIDs
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllProfiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetAllProfiles
AS
SELECT * FROM dbo.Profile
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RemoveUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[RemoveUser]
@UserID int,
@PortalID int
AS
IF @PortalID IS NULL
BEGIN
-- Delete SuperUser
DELETE FROM dbo.Users
WHERE UserId = @UserID
END
ELSE
BEGIN
-- Remove User from Portal
DELETE FROM dbo.UserPortals
WHERE UserId = @UserID
AND PortalId = @PortalID
IF NOT EXISTS (SELECT 1 FROM dbo.UserPortals WHERE UserId = @UserID)
-- Delete User (but not if SuperUser)
BEGIN
DELETE FROM dbo.Users
WHERE UserId = @UserID
AND IsSuperUser = 0
DELETE FROM dbo.UserRoles
WHERE UserID = @UserID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRole]
@PortalID int,
@UserID int,
@RoleId int
AS
SELECT *
FROM dbo.vw_UserRoles
WHERE UserId = @UserID
AND PortalId = @PortalID
AND RoleId = @RoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPortalAlias' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddPortalAlias
@PortalID int,
@HTTPAlias nvarchar(200),
@CreatedByUserID int
AS
INSERT INTO dbo.PortalAlias (
PortalID,
HTTPAlias,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalID,
@HTTPAlias,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageRecipient' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageRecipient]
@RecipientID INT
AS
SELECT [RecipientID], [MessageID], [UserID], [Read], [Archived], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageRecipients
WHERE [RecipientID] = @RecipientID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderMappingByMappingName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderMappingByMappingName]
@PortalID int,
@MappingName nvarchar(50)
AS
BEGIN
SELECT *
FROM dbo.[FolderMappings]
WHERE ISNULL(PortalID, -1) = ISNULL(@PortalID, -1) AND MappingName = @MappingName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModulePackagesInUse' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModulePackagesInUse]
@PortalID INT,
@ForHost BIT
AS
IF (@ForHost = 1)
-- Get in use for all host pages and portal pages
SELECT AllPackages.* FROM dbo.Packages AS AllPackages
INNER JOIN (
SELECT DISTINCT P.PackageID
FROM dbo.Packages P
INNER JOIN dbo.DesktopModules DM
ON P.PackageID=DM.PackageID
INNER JOIN dbo.vw_Modules M
ON M.DesktopModuleID=DM.DesktopModuleID
INNER JOIN dbo.tabs T
ON T.TabID=M.TabID
WHERE T.IsDeleted=0
AND M.IsDeleted=0) AS InUsePackages
ON AllPackages.PackageID = InUsePackages.PackageID
ORDER BY AllPackages.FriendlyName
ELSE
-- Get in use for portal or host only
SELECT AllPackages.* FROM dbo.Packages AS AllPackages
INNER JOIN (
SELECT DISTINCT P.PackageID
FROM dbo.Packages P
INNER JOIN dbo.DesktopModules DM
ON P.PackageID=DM.PackageID
INNER JOIN dbo.vw_Modules M
ON M.DesktopModuleID=DM.DesktopModuleID
INNER JOIN dbo.tabs T
ON T.TabID=M.TabID
WHERE ((@PortalID IS NULL AND T.PortalID IS NULL) OR T.PortalID = @PortalID)
AND T.IsDeleted=0
AND M.IsDeleted=0) AS InUsePackages
ON AllPackages.PackageID = InUsePackages.PackageID
ORDER BY AllPackages.FriendlyName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateEventLogConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateEventLogConfig
@ID int,
@LogTypeKey nvarchar(35),
@LogTypePortalID int,
@LoggingIsActive bit,
@KeepMostRecent int,
@EmailNotificationIsActive bit,
@NotificationThreshold int,
@NotificationThresholdTime int,
@NotificationThresholdTimeType int,
@MailFromAddress nvarchar(50),
@MailToAddress nvarchar(50)
AS
UPDATE dbo.EventLogConfig
SET LogTypeKey = @LogTypeKey,
LogTypePortalID = @LogTypePortalID,
LoggingIsActive = @LoggingIsActive,
KeepMostRecent = @KeepMostRecent,
EmailNotificationIsActive = @EmailNotificationIsActive,
NotificationThreshold = @NotificationThreshold,
NotificationThresholdTime = @NotificationThresholdTime,
NotificationThresholdTimeType = @NotificationThresholdTimeType,
MailFromAddress = @MailFromAddress,
MailToAddress = @MailToAddress
WHERE ID = @ID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVendorsByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetVendorsByName
@Filter nvarchar(50),
@PortalID int,
@PageSize int,
@PageIndex int
AS
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int
-- Set the page bounds
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageLowerBound + @PageSize + 1
CREATE TABLE #PageIndex
(
IndexID int IDENTITY (1, 1) NOT NULL,
VendorId int
)
INSERT INTO #PageIndex (VendorId)
SELECT VendorId
FROM dbo.Vendors
WHERE ( (VendorName like @Filter + '%') AND ((PortalId = @PortalID) or (@PortalID is null and PortalId is null)) )
ORDER BY VendorId DESC
SELECT COUNT(*) as TotalRecords
FROM #PageIndex
SELECT dbo.Vendors.*,
( select count(*) from dbo.Banners where dbo.Banners.VendorId = Vendors.VendorId ) AS 'Banners'
FROM dbo.Vendors
INNER JOIN #PageIndex PageIndex
ON dbo.Vendors.VendorId = PageIndex.VendorId
WHERE ( (PageIndex.IndexID > @PageLowerBound) OR @PageLowerBound is null )
AND ( (PageIndex.IndexID < @PageUpperBound) OR @PageUpperBound is null )
ORDER BY
PageIndex.IndexID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageRecipientsByUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageRecipientsByUser]
@UserID INT
AS
SELECT [RecipientID], [MessageID], [UserID], [Read], [Archived], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageRecipients
WHERE [UserID] = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteLanguagePack' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteLanguagePack]
@LanguagePackID int
AS
DELETE
FROM dbo.LanguagePacks
WHERE LanguagePackID = @LanguagePackID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModule]
@ModuleId int,
@TabId int
AS
SELECT *
FROM dbo.vw_Modules
WHERE ModuleId = @ModuleId
AND (TabId = @TabId or @TabId is null)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteModulePermission
@ModulePermissionID int
AS
DELETE FROM dbo.ModulePermission
WHERE
[ModulePermissionID] = @ModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabModuleOrder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetTabModuleOrder
@TabId int,
@PaneName nvarchar(50)
as
select *
from dbo.TabModules
where TabId = @TabId
and PaneName = @PaneName
order by ModuleOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageRecipientsByMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageRecipientsByMessage]
@MessageID INT
AS
SELECT [RecipientID], [MessageID], [UserID], [Read], [Archived], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageRecipients
WHERE [MessageID] = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetTabModuleSetting
@TabModuleId int,
@SettingName nvarchar(50)
as
select SettingName,
SettingValue
from dbo.TabModuleSettings
where TabModuleId = @TabModuleId
and SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetInstalledModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Dashboard_GetInstalledModules]
AS
SELECT
DesktopModuleID,
ModuleName,
FriendlyName,
Version,
(SELECT COUNT(*) AS Instances
FROM dbo.DesktopModules
INNER JOIN dbo.ModuleDefinitions ON dbo.DesktopModules.DesktopModuleID = dbo.ModuleDefinitions.DesktopModuleID
INNER JOIN dbo.Modules ON dbo.ModuleDefinitions.ModuleDefID = dbo.Modules.ModuleDefID
WHERE (dbo.DesktopModules.DesktopModuleID = DM.DesktopModuleID)) AS Instances
FROM dbo.DesktopModules AS DM
WHERE (IsAdmin = 0)
ORDER BY [FriendlyName] ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUserRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddUserRole]
@PortalID int,
@UserID int,
@RoleId int,
@Status int,
@IsOwner bit,
@EffectiveDate datetime = null,
@ExpiryDate datetime = null,
@CreatedByUserID int
AS
DECLARE @UserRoleId int
SELECT @UserRoleId = null
SELECT @UserRoleId = UserRoleId
FROM dbo.UserRoles
WHERE UserId = @UserID AND RoleId = @RoleId
IF @UserRoleId IS NOT NULL
BEGIN
UPDATE dbo.UserRoles
SET
Status = @Status,
IsOwner = @IsOwner,
ExpiryDate = @ExpiryDate,
EffectiveDate = @EffectiveDate,
IsTrialUsed = 1,
LastModifiedByUserID = @CreatedByUserID,
LastModifiedOnDate = getdate()
WHERE UserRoleId = @UserRoleId
SELECT @UserRoleId
END
ELSE
BEGIN
INSERT INTO dbo.UserRoles (
UserId,
RoleId,
Status,
IsOwner,
EffectiveDate,
ExpiryDate,
IsTrialUsed,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@UserID,
@RoleId,
@Status,
@IsOwner,
@EffectiveDate,
@ExpiryDate,
1,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDesktopModulePermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDesktopModulePermissions]
AS
SELECT *
FROM dbo.vw_DesktopModulePermissions
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageRecipientsByMessageAndUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageRecipientsByMessageAndUser]
@MessageID INT,
@UserID INT
AS
SELECT [RecipientID], [MessageID], [UserID], [Read], [Archived], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageRecipients
WHERE [MessageID] = @MessageID
AND [UserID] = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderPermission]
@FolderPermissionID int
AS
SELECT *
FROM dbo.vw_FolderPermissions
WHERE FolderPermissionID = @FolderPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabModuleSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteTabModuleSettings
@TabModuleId int
as
DELETE FROM dbo.TabModuleSettings
WHERE TabModuleId = @TabModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUser]
@PortalID int,
@UserID int
AS
SELECT * FROM dbo.vw_Users U
WHERE UserId = @UserID
AND (PortalId = @PortalID or IsSuperUser = 1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateUserRole' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateUserRole]
@UserRoleId int,
@Status int,
@IsOwner bit,
@EffectiveDate datetime = null,
@ExpiryDate datetime = null,
@LastModifiedByUserID int
AS
UPDATE dbo.UserRoles
SET
Status = @Status,
IsOwner = @IsOwner,
ExpiryDate = @ExpiryDate,
EffectiveDate = @EffectiveDate,
IsTrialUsed = 1,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE UserRoleId = @UserRoleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateBannerClickThrough' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateBannerClickThrough
@BannerId int,
@VendorId int
as
update dbo.Banners
set ClickThroughs = ClickThroughs + 1
where BannerId = @BannerId
and VendorId = @VendorId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteMessageRecipient' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteMessageRecipient]
@RecipientID int
AS
DELETE FROM dbo.CoreMessaging_MessageRecipients
WHERE [RecipientID] = @RecipientID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_DeleteControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.Dashboard_DeleteControl
@DashboardControlID int
AS
DELETE dbo.Dashboard_Controls
WHERE DashboardControlID = @DashboardControlID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalAlias' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdatePortalAlias
@PortalAliasID int,
@PortalID int,
@HTTPAlias nvarchar(200),
@LastModifiedByUserID int
AS
UPDATE dbo.PortalAlias
SET HTTPAlias = @HTTPAlias,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE PortalID = @PortalID
AND PortalAliasID = @PortalAliasID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetOnlineUsers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetOnlineUsers]
@PortalID int
AS
SELECT *
FROM dbo.UsersOnline UO
INNER JOIN dbo.vw_Users U ON UO.UserID = U.UserID
INNER JOIN dbo.UserPortals UP ON U.UserID = UP.UserId
WHERE UP.PortalID = @PortalID AND U.PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddModuleSetting]
@ModuleId int,
@SettingName nvarchar(50),
@SettingValue nvarchar(max),
@CreatedByUserID int
AS
INSERT INTO dbo.ModuleSettings (
ModuleId,
SettingName,
SettingValue,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@ModuleId,
@SettingName,
@SettingValue,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddModuleControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddModuleControl]
@ModuleDefID int,
@ControlKey nvarchar(50),
@ControlTitle nvarchar(50),
@ControlSrc nvarchar(256),
@IconFile nvarchar(100),
@ControlType int,
@ViewOrder int,
@HelpUrl nvarchar(200),
@SupportsPartialRendering bit,
@SupportsPopUps bit,
@CreatedByUserID int
AS
INSERT INTO dbo.ModuleControls (
ModuleDefID,
ControlKey,
ControlTitle,
ControlSrc,
IconFile,
ControlType,
ViewOrder,
HelpUrl,
SupportsPartialRendering,
SupportsPopUps,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@ModuleDefID,
@ControlKey,
@ControlTitle,
@ControlSrc,
@IconFile,
@ControlType,
@ViewOrder,
@HelpUrl,
@SupportsPartialRendering,
@SupportsPopUps,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteMessageRecipientByMessageAndUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteMessageRecipientByMessageAndUser]
@MessageID int,
@UserID int
AS
BEGIN
DELETE
FROM dbo.[CoreMessaging_MessageRecipients]
WHERE [MessageID] = @MessageID AND [UserID] = @UserID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderMappings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderMappings]
@PortalID int
AS
BEGIN
SELECT *
FROM dbo.[FolderMappings]
WHERE ISNULL(PortalID, -1) = ISNULL(@PortalID, -1)
ORDER BY Priority
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchItemWords' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteSearchItemWords
@SearchItemID int
AS
delete from dbo.SearchItemWord
where
[SearchItemID] = @SearchItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTabModuleSetting]
@TabModuleId int,
@SettingName nvarchar(50),
@SettingValue nvarchar(max),
@CreatedByUserID int
AS
INSERT INTO dbo.TabModuleSettings (
TabModuleId,
SettingName,
SettingValue,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@TabModuleId,
@SettingName,
@SettingValue,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSkinControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteSkinControl]
@SkinControlId int
AS
DELETE
FROM dbo.SkinControls
WHERE SkinControlId = @SkinControlId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_SaveMessageAttachment' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_SaveMessageAttachment]
@MessageAttachmentID int,
@MessageID int,
@FileID int,
@CreateUpdateUserID INT
AS
IF ( @MessageAttachmentID = -1 )
BEGIN
INSERT dbo.CoreMessaging_MessageAttachments(
[FileID],
[MessageID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@FileID,
@MessageID,
@CreateUpdateUserID , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@CreateUpdateUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @MessageAttachmentID = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.CoreMessaging_MessageAttachments
SET [FileID] = @FileID,
[MessageID] = @MessageID,
LastModifiedByUserID = @CreateUpdateUserID,
LastModifiedOnDate = GETDATE()
WHERE MessageAttachmentID = @MessageAttachmentID
END
SELECT @MessageAttachmentID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateTabSetting
@TabID INT,
@SettingName NVARCHAR(50),
@SettingValue NVARCHAR(2000),
@LastModifiedByUserID INT
AS
UPDATE dbo.TabSettings
SET SettingValue = @SettingValue,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabID
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllTabsModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[GetAllTabsModules]
@PortalID int,
@AllTabs bit
AS
SELECT *
FROM dbo.vw_Modules M
WHERE M.PortalID = @PortalID
AND M.IsDeleted = 0
AND M.AllTabs = @AllTabs
AND M.TabModuleID =(SELECT min(TabModuleID)
FROM dbo.TabModules
WHERE ModuleID = M.ModuleID)
ORDER BY M.ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModuleSetting]
@ModuleId int,
@SettingName nvarchar(50),
@SettingValue nvarchar(max),
@LastModifiedByUserID int
AS
UPDATE dbo.ModuleSettings
SET SettingValue = @SettingValue,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE ModuleId = @ModuleId
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModuleControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModuleControl]
@ModuleControlId int,
@ModuleDefID int,
@ControlKey nvarchar(50),
@ControlTitle nvarchar(50),
@ControlSrc nvarchar(256),
@IconFile nvarchar(100),
@ControlType int,
@ViewOrder int,
@HelpUrl nvarchar(200),
@SupportsPartialRendering bit,
@SupportsPopUps bit,
@LastModifiedByUserID int
AS
UPDATE dbo.ModuleControls
SET
ModuleDefId = @ModuleDefId,
ControlKey = @ControlKey,
ControlTitle = @ControlTitle,
ControlSrc = @ControlSrc,
IconFile = @IconFile,
ControlType = @ControlType,
ViewOrder = ViewOrder,
HelpUrl = @HelpUrl,
SupportsPartialRendering = @SupportsPartialRendering,
SupportsPopUps = @SupportsPopUps,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE ModuleControlId = @ModuleControlId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageAttachment' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageAttachment]
@MessageAttachmentID INT
AS
SELECT [MessageID], [FileID], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageAttachments
WHERE [MessageAttachmentID] = @MessageAttachmentID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionsByPortalDesktopModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionsByPortalDesktopModule
AS
SELECT *
FROM dbo.Permission
WHERE PermissionCode = 'SYSTEM_DESKTOPMODULE'
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabModuleSetting]
@TabModuleId int,
@SettingName nvarchar(50),
@SettingValue nvarchar(max),
@LastModifiedByUserID int
AS
UPDATE dbo.TabModuleSettings
SET SettingValue = @SettingValue,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabModuleId = @TabModuleId
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FindBanners' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[FindBanners]
@PortalID int,
@BannerTypeId int,
@GroupName nvarchar(100)
AS
SELECT B.BannerId,
B.VendorId,
BannerName,
URL,
CASE WHEN LEFT(LOWER(ImageFile), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = ImageFile
)
ELSE
ImageFile
END
AS ImageFile,
Impressions,
CPM,
B.Views,
B.ClickThroughs,
StartDate,
EndDate,
BannerTypeId,
Description,
GroupName,
Criteria,
B.Width,
B.Height,
B.ImageFile AS ImageFileRaw
FROM dbo.Banners B
INNER JOIN dbo.Vendors V ON B.VendorId = V.VendorId
WHERE (B.BannerTypeId = @BannerTypeId or @BannerTypeId is null)
AND (B.GroupName = @GroupName or @GroupName is null)
AND ((V.PortalId = @PortalID) or (@PortalID is null and V.PortalId is null))
AND V.Authorized = 1
AND (getdate() <= B.EndDate or B.EndDate is null)
ORDER BY BannerId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessageAttachmentsByMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessageAttachmentsByMessage]
@MessageID INT
AS
SELECT [MessageID], [FileID], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.CoreMessaging_MessageAttachments
WHERE [MessageID] = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteListEntryByID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.DeleteListEntryByID
@EntryId int,
@DeleteChild bit
as
Delete
From dbo.Lists
Where [EntryID] = @EntryID
If @DeleteChild = 1
Begin
Delete
From dbo.Lists
Where [ParentID] = @EntryID
End
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDeletedUsers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetDeletedUsers
@PortalID int
AS
IF @PortalID is null
BEGIN
SELECT *
FROM dbo.vw_Users
WHERE PortalId IS Null
AND IsDeleted = 1
ORDER BY UserName
END ELSE BEGIN
SELECT *
FROM dbo.vw_Users
WHERE PortalId = @PortalID
AND IsDeleted = 1
ORDER BY UserName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SearchIndexer' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[SearchIndexer]
(
[SearchIndexerID] [int] NOT NULL IDENTITY(1, 1),
[SearchIndexerAssemblyQualifiedName] [char] (200) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'SearchIndexer' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[SearchIndexer] ADD CONSTRAINT [PK_SearchIndexer] PRIMARY KEY CLUSTERED ([SearchIndexerID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchIndexers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSearchIndexers
as
select dbo.SearchIndexer.*
from dbo.SearchIndexer
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetServices' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetServices]
@PortalId int,
@UserId int
AS
SELECT
R.*,
UR.IsOwner,
UR.UserRoleID,
UR.UserID,
UR.ExpiryDate,
UR.IsTrialUsed,
UR.EffectiveDate,
U.DisplayName,
U.Email
FROM dbo.Users U
INNER JOIN dbo.UserRoles AS UR ON U.UserID = UR.UserID
RIGHT OUTER JOIN dbo.Roles AS R ON UR.RoleID = R.RoleID AND UR.UserID = @UserId
WHERE R.PortalId = @PortalId AND R.IsPublic = 1
ORDER BY R.RoleName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteMessageAttachment' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteMessageAttachment]
@MessageAttachmentID int
AS
DELETE FROM dbo.CoreMessaging_MessageAttachments
WHERE [MessageAttachmentID] = @MessageAttachmentID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetDashboardControlByKey' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.Dashboard_GetDashboardControlByKey
@DashboardControlKey nvarchar(50)
AS
SELECT *
FROM dbo.Dashboard_Controls
WHERE DashboardControlKey = @DashboardControlKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPortalDesktopModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddPortalDesktopModule
@PortalID int,
@DesktopModuleId int,
@CreatedByUserID int
as
insert into dbo.PortalDesktopModules (
PortalId,
DesktopModuleId,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
values (
@PortalID,
@DesktopModuleId,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Tabs' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_Tabs]
AS
SELECT
T.TabID,
T.TabOrder,
T.PortalID,
T.TabName,
T.ParentId,
T.[Level],
T.TabPath,
T.UniqueId,
T.VersionGuid,
T.DefaultLanguageGuid,
T.LocalizedVersionGuid,
T.IsVisible,
CASE WHEN LEFT(LOWER(T .IconFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE fileid = CAST((RIGHT(LOWER(T.IconFile), Len(T.IconFile) - 7)) AS int)
) ELSE T.IconFile
END AS IconFile,
CASE WHEN LEFT(LOWER(T .IconFileLarge), 7) = 'fileid=' THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE fileid = CAST((RIGHT(LOWER(T.IconFileLarge), Len(T.IconFileLarge) - 7)) AS int)
) ELSE T.IconFileLarge
END AS IconFileLarge,
T.DisableLink,
T.Title,
T.Description,
T.KeyWords,
T.IsDeleted,
T.SkinSrc,
T.ContainerSrc,
T.StartDate,
T.EndDate,
T.Url,
CASE WHEN EXISTS (SELECT 1 FROM dbo.Tabs T2 WHERE T2.ParentId = T.TabId) THEN 'true' ELSE 'false' END AS HasChildren,
T.RefreshInterval,
T.PageHeadText,
T.IsSecure,
T.PermanentRedirect,
T.SiteMapPriority,
CI.ContentItemID,
CI.[Content],
CI.ContentTypeID,
CI.ModuleID,
CI.ContentKey,
CI.Indexed,
T.CultureCode,
T.CreatedByUserID,
T.CreatedOnDate,
T.LastModifiedByUserID,
T.LastModifiedOnDate
FROM dbo.Tabs AS T
LEFT OUTER JOIN dbo.ContentItems AS CI ON T.ContentItemID = CI.ContentItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabsByPackageID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabsByPackageID]
@PortalID INT,
@PackageID INT,
@ForHost BIT
AS
IF (@ForHost = 1)
-- Get all host pages and portal pages
SELECT DISTINCT T.*
FROM dbo.vw_Modules M
INNER JOIN dbo.DesktopModules DM
ON M.DesktopModuleID=DM.DesktopModuleID
INNER JOIN dbo.vw_Tabs T
ON T.TabID=M.TabID
WHERE DM.PackageID=@PackageID
AND T.IsDeleted=0
AND M.IsDeleted=0
ORDER BY T.PortalID, T.TabName
ELSE
-- Get pages for a specific portal (or host pages only)
SELECT DISTINCT T.*
FROM dbo.vw_Modules M
INNER JOIN dbo.DesktopModules DM
ON M.DesktopModuleID=DM.DesktopModuleID
INNER JOIN dbo.vw_Tabs T
ON T.TabID=M.TabID
WHERE DM.PackageID=@PackageID
AND ((@PortalID IS NULL AND T.PortalID IS NULL) OR T.PortalID = @PortalID)
AND T.IsDeleted=0
AND M.IsDeleted=0
ORDER BY T.TabName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFoldersByPermissions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFoldersByPermissions]
@PortalID int,
@Permissions nvarchar(300),
@UserID int,
@FolderID int,
@FolderPath nvarchar(300)
AS
DECLARE @IsSuperUser BIT
DECLARE @Admin BIT
DECLARE @Read INT
DECLARE @Write INT
DECLARE @Browse INT
DECLARE @Add INT
--Determine Admin or SuperUser
IF @UserId IN (SELECT UserId FROM dbo.UserRoles WHERE RoleId IN (SELECT RoleId FROM dbo.Roles WHERE PortalId = @PortalId AND RoleName = 'Administrators')) BEGIN SET @Admin = 1 END;
SELECT @IsSuperUser = IsSuperUser FROM dbo.Users WHERE UserId = @UserId;
--Retrieve Permission Ids
IF @Permissions LIKE '%READ%' BEGIN SELECT TOP 1 @Read = PermissionID FROM dbo.Permission WHERE PermissionCode = 'SYSTEM_FOLDER' AND PermissionKey = 'READ' END;
IF @Permissions LIKE '%WRITE%' BEGIN SELECT TOP 1 @Write = PermissionID FROM dbo.Permission WHERE PermissionCode = 'SYSTEM_FOLDER' AND PermissionKey = 'WRITE' END;
IF @Permissions LIKE '%BROWSE%' BEGIN SELECT TOP 1 @Browse = PermissionID FROM dbo.Permission WHERE PermissionCode = 'SYSTEM_FOLDER' AND PermissionKey = 'BROWSE' END;
IF @Permissions LIKE '%ADD%' BEGIN SELECT TOP 1 @Add = PermissionID FROM dbo.Permission WHERE PermissionCode = 'SYSTEM_FOLDER' AND PermissionKey = 'ADD' END;
IF @PortalID IS NULL
BEGIN
SELECT DISTINCT F.*
FROM dbo.Folders F
WHERE F.PortalID IS NULL
AND (F.FolderID = @FolderID OR @FolderID = -1)
AND (F.FolderPath = @FolderPath OR @FolderPath = '')
ORDER BY F.FolderPath
END
ELSE
BEGIN
WITH Skip_Folders (folderid)
AS
(
SELECT DISTINCT folderid FROM dbo.FolderPermission FP
JOIN dbo.Permission P ON FP.PermissionID = P.PermissionID
WHERE
((P.PermissionKey = 'WRITE' OR @IsSuperUser=1 OR @Admin=1) OR
FP.PermissionID = CASE WHEN @Read > 0 THEN @Read END OR
FP.PermissionID = CASE WHEN @Write > 0 THEN @Write END OR
FP.PermissionID = CASE WHEN @Browse > 0 THEN @Browse END OR
FP.PermissionID = CASE WHEN @Add > 0 THEN @Add END)
AND FP.FolderID NOT IN (SELECT DISTINCT folderid FROM dbo.FolderPermission WHERE allowaccess=0 AND (userid=@UserId OR roleid=-1 OR roleid IN (SELECT roleid FROM dbo.UserRoles WHERE UserID=@UserId)))
)
SELECT DISTINCT F.*
FROM dbo.Folders F
JOIN dbo.FolderPermission FP ON F.FolderId = FP.FolderID
JOIN dbo.Permission P ON FP.PermissionID = P.PermissionID
JOIN dbo.UserRoles UR ON UR.RoleID = FP.RoleID
JOIN dbo.Users U ON U.UserId = UR.UserId
JOIN Skip_Folders sf ON sf.folderid=f.folderid
WHERE ((F.PortalID = @PortalID) OR (F.PortalID IS NULL AND @PortalID IS NULL))
AND (F.FolderID = @FolderID OR @FolderID = -1)
AND (F.FolderPath = @FolderPath OR @FolderPath = '')
AND
((P.PermissionKey = 'WRITE' OR @IsSuperUser=1 OR @Admin=1) OR
FP.PermissionID = CASE WHEN @Read > 0 THEN @Read END OR
FP.PermissionID = CASE WHEN @Write > 0 THEN @Write END OR
FP.PermissionID = CASE WHEN @Browse > 0 THEN @Browse END OR
FP.PermissionID = CASE WHEN @Add > 0 THEN @Add END)
AND FP.AllowAccess = 1
ORDER BY F.FolderPath
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddPackage]
@PortalID int,
@Name nvarchar(128),
@FriendlyName nvarchar(250),
@Description nvarchar(2000),
@PackageType nvarchar(50),
@Version nvarchar(50),
@License ntext,
@Manifest ntext,
@Owner nvarchar(100),
@Organization nvarchar(100),
@Url nvarchar(250),
@Email nvarchar(100),
@ReleaseNotes ntext,
@IsSystemPackage bit,
@CreatedByUserID int,
@FolderName nvarchar(127),
@IconFile nvarchar(100)
AS
INSERT INTO dbo.Packages
(
PortalID,
[Name],
FriendlyName,
[Description],
PackageType,
Version,
License,
Manifest,
ReleaseNotes,
[Owner],
Organization,
Url,
Email,
IsSystemPackage,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate],
FolderName,
IconFile
)
VALUES (
@PortalID,
@Name,
@FriendlyName,
@Description,
@PackageType,
@Version,
@License,
@Manifest,
@ReleaseNotes,
@Owner,
@Organization,
@Url,
@Email,
@IsSystemPackage,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@FolderName,
@IconFile
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteLegacyMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteLegacyMessage]
@MessageID int
AS
DELETE FROM dbo.Messaging_Messages
WHERE [MessageID] = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddDefaultFolderTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddDefaultFolderTypes]
@PortalID int
AS
BEGIN
INSERT INTO dbo.[FolderMappings] (PortalID, MappingName, FolderProviderType, Priority)
SELECT @PortalID, 'Standard', 'StandardFolderProvider', 1
UNION ALL
SELECT @PortalID, 'Secure', 'SecureFolderProvider', 2
UNION ALL
SELECT @PortalID, 'Database', 'DatabaseFolderProvider', 3
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePackage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePackage]
@PortalID int,
@Name nvarchar(128),
@FriendlyName nvarchar(250),
@Description nvarchar(2000),
@PackageType nvarchar(50),
@Version nvarchar(50),
@License ntext,
@Manifest ntext,
@Owner nvarchar(100),
@Organization nvarchar(100),
@Url nvarchar(250),
@Email nvarchar(100),
@ReleaseNotes ntext,
@IsSystemPackage bit,
@LastModifiedByUserID int,
@FolderName nvarchar(128),
@IconFile nvarchar(100)
AS
UPDATE dbo.Packages
SET
PortalID = @PortalID,
FriendlyName = @FriendlyName,
[Description] = @Description,
PackageType = @PackageType,
Version = @Version,
License = @License,
Manifest = @Manifest,
[Owner] = @Owner,
Organization = @Organization,
Url = @Url,
Email = @Email,
ReleaseNotes = @ReleaseNotes,
IsSystemPackage = @IsSystemPackage,
[LastModifiedByUserID] = @LastModifiedByUserID, [LastModifiedOnDate] = getdate(),
FolderName = @FolderName,
IconFile = @IconFile
WHERE [Name] = @Name
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountLegacyMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountLegacyMessages]
AS
--Return total records
SELECT COUNT(*) AS TotalRecords
FROM dbo.[Messaging_Messages]
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateScheduleHistory' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateScheduleHistory
@ScheduleHistoryID int,
@EndDate datetime,
@Succeeded bit,
@LogNotes ntext,
@NextStart datetime
AS
UPDATE dbo.ScheduleHistory
SET EndDate = @EndDate,
Succeeded = @Succeeded,
LogNotes = @LogNotes,
NextStart = @NextStart
WHERE ScheduleHistoryID = @ScheduleHistoryID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RemoveTermsFromContent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[RemoveTermsFromContent]
@ContentItemID int
AS
DELETE dbo.ContentItems_Tags
WHERE ContentItemID = @ContentItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateListSortOrder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateListSortOrder
(
@EntryID int,
@MoveUp bit
)
AS
DECLARE @EntryListName nvarchar(50)
DECLARE @ParentID int
DECLARE @CurrentSortValue int
DECLARE @ReplaceSortValue int
-- Get the current sort order
SELECT @CurrentSortValue = [SortOrder], @EntryListName = [ListName], @ParentID = [ParentID]
FROM dbo.Lists WITH (nolock)
WHERE [EntryID] = @EntryID
-- Move the item up or down?
IF (@MoveUp = 1)
BEGIN
IF (@CurrentSortValue != 1) -- we rearrange sort order only if list enable sort order - sortorder >= 1
BEGIN
SET @ReplaceSortValue = @CurrentSortValue - 1
UPDATE dbo.Lists
SET [SortOrder] = @CurrentSortValue
WHERE [SortOrder] = @ReplaceSortValue And [ListName] = @EntryListName And [ParentID] = @ParentID
UPDATE dbo.Lists
SET [SortOrder] = @ReplaceSortValue
WHERE [EntryID] = @EntryID
END
END
ELSE
BEGIN
IF (@CurrentSortValue < (SELECT MAX([SortOrder]) FROM dbo.Lists))
BEGIN
SET @ReplaceSortValue = @CurrentSortValue + 1
UPDATE dbo.Lists
SET [SortOrder] = @CurrentSortValue
WHERE SortOrder = @ReplaceSortValue And [ListName] = @EntryListName And [ParentID] = @ParentID
UPDATE dbo.Lists
SET [SortOrder] = @ReplaceSortValue
WHERE EntryID = @EntryID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_ConvertLegacyMessages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_ConvertLegacyMessages]
@PageIndex int,
@PageSize int
AS
-- Set the page bounds
DECLARE @PageLowerBound INT, @PageUpperBound INT;
SET @PageLowerBound = (@PageIndex * @PageSize) + 1
SET @PageUpperBound = (@PageIndex * @PageSize) + @PageSize
DECLARE @MessageID bigint
DECLARE @PortalID INT
DECLARE @FromUserName nvarchar(50)
DECLARE @FromUserID INT
DECLARE @ToUserName nvarchar(50)
DECLARE @ToUserID int
DECLARE @Status tinyint
DECLARE @Subject nvarchar(max)
DECLARE @Body nvarchar(max)
DECLARE @Date datetime
DECLARE @EmailSent bit
DECLARE @EmailSentDate datetime
DECLARE @EmailSchedulerInstance UNIQUEIDENTIFIER
DECLARE @RowNumber INT
DECLARE @NewMessageID int
DECLARE @Counter int
DECLARE MessageList cursor FAST_FORWARD for
WITH messageItems AS
(
SELECT [MessageID], [PortalID],[FromUserName],[FromUserID], [ToUserName], [ToUserID], [Status], [Subject], [Body], [Date], [EmailSent], [EmailSentDate], [EmailSchedulerInstance]
,ROW_NUMBER() OVER(ORDER BY MessageID ASC) AS RowNumber
FROM dbo.[Messaging_Messages]
)
SELECT * from messageItems where RowNumber BETWEEN @PageLowerBound AND @PageUpperBound
ORDER BY RowNumber ASC
OPEN MessageList
FETCH NEXT FROM MessageList
INTO @MessageID, @PortalID, @FromUserName, @FromUserID, @ToUserName, @ToUserID, @Status, @Subject, @Body, @Date, @EmailSent, @EmailSentDate, @EmailSchedulerInstance, @RowNumber
WHILE @@FETCH_STATUS = 0
BEGIN
--Create SocialMessage Record
INSERT dbo.[CoreMessaging_Messages](
[PortalID],
[To],
[From],
[Subject],
[Body],
[ConversationID],
[ReplyAllAllowed],
[SenderUserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalID,
@ToUserName,
@FromUserName,
@Subject,
@Body,
NULL,
1, --ReplyAllAllowed,
@FromUserID,
@FromUserID , -- CreatedBy - int
dateadd(second, (-1 * datediff(second, getutcdate(), getdate())), @Date), -- CreatedOn - utc datetime
@FromUserID , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
-- update conversation id
SELECT @NewMessageID = SCOPE_IDENTITY()
UPDATE dbo.[CoreMessaging_Messages] SET [ConversationID] = @NewMessageID WHERE [MessageID] = @NewMessageID
--Create SocialRecipient Record for recipient and sender. 2 records total
Set @Counter = 0
--No need to create two records if message sent to self
IF @ToUserID = @FromUserID BEGIN Set @Counter = 1 END
WHILE @Counter < 2
BEGIN
SET @Counter = @Counter + 1
INSERT dbo.[CoreMessaging_MessageRecipients](
[MessageID],
[UserID],
[Read],
[Archived],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate],
[EmailSent],
[EmailSentDate],
[EmailSchedulerInstance]
)
VALUES (
@NewMessageID,
CASE @Counter
WHEN 1 THEN @ToUserID
ELSE @FromUserID
END,
CASE @Status
WHEN 1 THEN 0 --Status 1 means Unread, 2 means Read, 3 means Deleted
ELSE 1
END,
CASE @Status
WHEN 3 THEN 1 --Status 1 means Unread, 2 means Read, 3 means Deleted
ELSE 0
END,
@FromUserID , -- CreatedBy - int
@Date , -- CreatedOn - datetime
@FromUserID , -- LastModifiedBy - int
@Date, -- LastModifiedOn - datetime
@EmailSent,
@EmailSentDate,
@EmailSchedulerInstance
)
END
--Delete the Legacy record
DELETE FROM dbo.[Messaging_Messages] WHERE MessageID = @MessageID
FETCH NEXT FROM MessageList
INTO @MessageID,@PortalID, @FromUserName, @FromUserID, @ToUserName, @ToUserID, @Status, @Subject, @Body, @Date, @EmailSent, @EmailSentDate, @EmailSchedulerInstance, @RowNumber
END
CLOSE MessageList
DEALLOCATE MessageList
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserByAuthToken' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetUserByAuthToken
@PortalId int,
@UserToken nvarchar(1000),
@AuthType nvarchar(100)
AS
SELECT u.*
FROM dbo.vw_Users u
INNER JOIN dbo.UserAuthentication ua ON u.UserID = ua.UserID
WHERE ua.AuthenticationToken = @UserToken
AND ua.AuthenticationType = @AuthType
AND (PortalId = @PortalId OR IsSuperUser = 1 OR @PortalId is null)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabPermissionsByTabID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteTabPermissionsByTabID
@TabID int
AS
DELETE FROM dbo.TabPermission
WHERE
[TabID] = @TabID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateOnlineUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateOnlineUser
@UserID int,
@PortalID int,
@TabID int,
@LastActiveDate datetime
as
BEGIN
IF EXISTS (SELECT UserID FROM dbo.UsersOnline WHERE UserID = @UserID and PortalID = @PortalID)
UPDATE
dbo.UsersOnline
SET
TabID = @TabID,
LastActiveDate = @LastActiveDate
WHERE
UserID = @UserID
and
PortalID = @PortalID
ELSE
INSERT INTO
dbo.UsersOnline
(UserID, PortalID, TabID, CreationDate, LastActiveDate)
VALUES
(@UserID, @PortalID, @TabID, GetDate(), @LastActiveDate)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_NotificationTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[CoreMessaging_NotificationTypes]
(
[NotificationTypeID] [int] NOT NULL IDENTITY(1, 1),
[Name] [nvarchar] (100) NOT NULL,
[Description] [nvarchar] (2000) NULL,
[TTL] [int] NULL,
[DesktopModuleID] [int] NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'CoreMessaging_NotificationTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[CoreMessaging_NotificationTypes] ADD CONSTRAINT [PK_CoreMessaging_NotificationTypes] PRIMARY KEY CLUSTERED ([NotificationTypeID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_CoreMessaging_NotificationTypes' already exists on table 'dbo.CoreMessaging_NotificationTypes'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE UNIQUE NONCLUSTERED INDEX [IX_CoreMessaging_NotificationTypes] ON dbo.[CoreMessaging_NotificationTypes] ([Name])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CreateNotificationType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CreateNotificationType]
@Name nvarchar(100),
@Description nvarchar(2000),
@TTL int,
@DesktopModuleId int,
@CreatedUpdatedUserID int
AS
BEGIN
INSERT INTO dbo.[CoreMessaging_NotificationTypes] (
[Name],
[Description],
[TTL],
[DesktopModuleId],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@Name,
@Description,
@TTL,
@DesktopModuleId,
@CreatedUpdatedUserID,
GETDATE(),
@CreatedUpdatedUserID,
GETDATE()
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog9' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog9
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select dbo.Tabs.TabName AS 'Page',
count(*) AS 'Requests',
max(DateTime) AS 'LastRequest'
from dbo.SiteLog
inner join dbo.Tabs on dbo.SiteLog.TabId = dbo.Tabs.TabId
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
and dbo.SiteLog.TabId is not null
group by dbo.Tabs.TabName
order by Requests desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_PreviewProfiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Mobile_PreviewProfiles]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[PortalId] [int] NOT NULL,
[Name] [nvarchar] (50) NOT NULL,
[Width] [int] NOT NULL,
[Height] [int] NOT NULL,
[UserAgent] [nvarchar] (260) NOT NULL,
[SortOrder] [int] NOT NULL CONSTRAINT [DF_Mobile_PreviewProfiles_SortOrder] DEFAULT ((0)),
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Mobile_PreviewProfiles_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Mobile_PreviewProfiles_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Mobile_PreviewProfiles' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Mobile_PreviewProfiles] ADD CONSTRAINT [PK_Mobile_PreviewProfiles] PRIMARY KEY CLUSTERED ([Id])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Mobile_PreviewProfiles_SortOrder' already exists on table 'dbo.Mobile_PreviewProfiles'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Mobile_PreviewProfiles_SortOrder] ON dbo.[Mobile_PreviewProfiles] ([SortOrder])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_DeletePreviewProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_DeletePreviewProfile] @Id INT
AS
DELETE FROM dbo.Mobile_PreviewProfiles
WHERE Id = @Id
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetLanguages' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetLanguages]
AS
SELECT *
FROM dbo.Languages
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog8' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog8
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select datepart(month,DateTime) AS 'Month',
count(*) AS 'Views',
count(distinct dbo.SiteLog.UserHostAddress) AS 'Visitors',
count(distinct dbo.SiteLog.UserId) AS 'Users'
from dbo.SiteLog
where PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
group by datepart(month,DateTime)
order by Month
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'SetEventMessageComplete' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.SetEventMessageComplete
@EventMessageID int
AS
UPDATE dbo.EventQueue
SET IsComplete = 1
WHERE EventMessageID = @EventMessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_NotificationTypeActions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[CoreMessaging_NotificationTypeActions]
(
[NotificationTypeActionID] [int] NOT NULL IDENTITY(1, 1),
[NotificationTypeID] [int] NOT NULL,
[NameResourceKey] [nvarchar] (100) NOT NULL,
[DescriptionResourceKey] [nvarchar] (100) NULL,
[ConfirmResourceKey] [nvarchar] (100) NULL,
[Order] [int] NOT NULL,
[APICall] [nvarchar] (500) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'CoreMessaging_NotificationTypeActions' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[CoreMessaging_NotificationTypeActions] ADD CONSTRAINT [PK_CoreMessaging_NotificationTypeActions] PRIMARY KEY CLUSTERED ([NotificationTypeActionID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_CoreMessaging_NotificationTypeActions' already exists on table 'dbo.CoreMessaging_NotificationTypeActions'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_CoreMessaging_NotificationTypeActions] ON dbo.[CoreMessaging_NotificationTypeActions] ([NotificationTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteNotificationType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteNotificationType]
@NotificationTypeID int
AS
BEGIN
-- First delete related data
DELETE
FROM dbo.[CoreMessaging_Messages]
WHERE [NotificationTypeID] = @NotificationTypeID
DELETE
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeID] = @NotificationTypeID
-- Finally delete the Notification type
DELETE
FROM dbo.[CoreMessaging_NotificationTypes]
WHERE [NotificationTypeID] = @NotificationTypeID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPermissionsByTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPermissionsByTab
AS
SELECT *
FROM dbo.Permission
WHERE PermissionCode = 'SYSTEM_TAB'
ORDER BY ViewOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_Redirections' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Mobile_Redirections]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[PortalId] [int] NOT NULL,
[Name] [nvarchar] (50) NOT NULL,
[Type] [int] NOT NULL,
[SortOrder] [int] NOT NULL CONSTRAINT [DF_Mobile_Redirections_SortOrder] DEFAULT ((0)),
[SourceTabId] [int] NOT NULL,
[IncludeChildTabs] [bit] NOT NULL,
[TargetType] [int] NOT NULL,
[TargetValue] [nvarchar] (260) NOT NULL,
[Enabled] [bit] NOT NULL,
[CreatedByUserID] [int] NOT NULL,
[CreatedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Mobile_Redirections_CreatedOnDate] DEFAULT (getdate()),
[LastModifiedByUserID] [int] NOT NULL,
[LastModifiedOnDate] [datetime] NOT NULL CONSTRAINT [DF_Mobile_Redirections_LastModifiedOnDate] DEFAULT (getdate())
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Mobile_Redirections' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Mobile_Redirections] ADD CONSTRAINT [PK_Mobile_Redirections] PRIMARY KEY CLUSTERED ([Id])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_Mobile_Redirections_SortOrder' already exists on table 'dbo.Mobile_Redirections'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_Mobile_Redirections_SortOrder] ON dbo.[Mobile_Redirections] ([SortOrder])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_RedirectionRules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Mobile_RedirectionRules]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[RedirectionId] [int] NOT NULL,
[Capability] [nvarchar] (50) NOT NULL,
[Expression] [nvarchar] (50) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Mobile_RedirectionRules' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Mobile_RedirectionRules] ADD CONSTRAINT [PK_Mobile_RedirectionRules] PRIMARY KEY CLUSTERED ([Id])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_DeleteRedirection' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_DeleteRedirection] @Id INT
AS
DELETE FROM dbo.Mobile_RedirectionRules
WHERE RedirectionId = @id
DELETE FROM dbo.Mobile_Redirections
WHERE Id = @Id
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAuthenticationServiceByPackageID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetAuthenticationServiceByPackageID
@PackageID int
AS
SELECT *
FROM dbo.Authentication
WHERE PackageID = @PackageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchItemWordPosition
@SearchItemWordPositionID int
AS
SELECT
[SearchItemWordPositionID],
[SearchItemWordID],
[ContentPosition]
FROM
dbo.SearchItemWordPosition
WHERE
[SearchItemWordPositionID] = @SearchItemWordPositionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalSpaceUsed' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetPortalSpaceUsed
@PortalID int
AS
SELECT SUM(CAST(Size as bigint)) AS 'SpaceUsed'
FROM Files
WHERE ((PortalId = @PortalID) OR (@PortalID is null and PortalId is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationType]
@NotificationTypeID int
AS
BEGIN
SELECT [NotificationTypeID], [Name], [Description], [TTL], [DesktopModuleId], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_NotificationTypes]
WHERE [NotificationTypeID] = @NotificationTypeID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_UpdateControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.Dashboard_UpdateControl
@DashboardControlID int,
@DashboardControlKey nvarchar(50),
@IsEnabled bit,
@DashboardControlSrc nvarchar(250),
@DashboardControlLocalResources nvarchar(250),
@ControllerClass nvarchar(250),
@ViewOrder int
AS
UPDATE dbo.Dashboard_Controls
SET DashboardControlKey = @DashboardControlKey,
IsEnabled = @IsEnabled,
DashboardControlSrc = @DashboardControlSrc,
DashboardControlLocalResources = @DashboardControlLocalResources,
ControllerClass = @ControllerClass,
ViewOrder = @ViewOrder
WHERE DashboardControlID = @DashboardControlID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_DeleteRedirectionRule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_DeleteRedirectionRule] @Id INT
AS
DELETE FROM dbo.Mobile_RedirectionRules
WHERE Id = @id
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteContentItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteContentItem]
@ContentItemId int
AS
DELETE FROM dbo.ContentItems
WHERE ContentItemId = @ContentItemId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddEventLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddEventLog
@LogGUID varchar(36),
@LogTypeKey nvarchar(35),
@LogUserID int,
@LogUserName nvarchar(50),
@LogPortalID int,
@LogPortalName nvarchar(100),
@LogCreateDate datetime,
@LogServerName nvarchar(50),
@LogProperties ntext,
@LogConfigID int
AS
IF NOT EXISTS (SELECT * FROM dbo.[EventLogTypes] WHERE LogTypeKey = @LogTypeKey)
BEGIN
-- Add new Event Type
EXEC dbo.[AddEventLogType] @LogTypeKey, @LogTypeKey, N'', N'DotNetNuke.Logging.EventLogType', N'GeneralAdminOperation'
-- Add new Event Type Config
EXEC dbo.[AddEventLogConfig] @LogTypeKey, NULL, 0, -1, 0, 1, 1, 1, N'', N''
-- As the new log config is unlogged, exit without logging
Return
END
INSERT INTO dbo.[EventLog]
(LogGUID,
LogTypeKey,
LogUserID,
LogUserName,
LogPortalID,
LogPortalName,
LogCreateDate,
LogServerName,
LogProperties,
LogConfigID)
VALUES
(@LogGUID,
@LogTypeKey,
@LogUserID,
@LogUserName,
@LogPortalID,
@LogPortalName,
@LogCreateDate,
@LogServerName,
@LogProperties,
@LogConfigID)
DECLARE @NotificationActive bit
DECLARE @NotificationThreshold bit
DECLARE @ThresholdQueue int
DECLARE @NotificationThresholdTime int
DECLARE @NotificationThresholdTimeType int
DECLARE @MinDateTime smalldatetime
DECLARE @CurrentDateTime smalldatetime
SET @CurrentDateTime = getDate()
SELECT TOP 1 @NotificationActive = EmailNotificationIsActive,
@NotificationThreshold = NotificationThreshold,
@NotificationThresholdTime = NotificationThresholdTime,
@NotificationThresholdTimeType = NotificationThresholdTimeType,
@MinDateTime =
CASE
--seconds
WHEN NotificationThresholdTimeType=1 THEN DateAdd(second, NotificationThresholdTime * -1, @CurrentDateTime)
--minutes
WHEN NotificationThresholdTimeType=2 THEN DateAdd(minute, NotificationThresholdTime * -1, @CurrentDateTime)
--hours
WHEN NotificationThresholdTimeType=3 THEN DateAdd(Hour, NotificationThresholdTime * -1, @CurrentDateTime)
--days
WHEN NotificationThresholdTimeType=4 THEN DateAdd(Day, NotificationThresholdTime * -1, @CurrentDateTime)
END
FROM dbo.[EventLogConfig]
WHERE ID = @LogConfigID
IF @NotificationActive=1
BEGIN
SELECT @ThresholdQueue = COUNT(*)
FROM dbo.[EventLog] el
INNER JOIN dbo.[EventLogConfig] elc
ON el.LogConfigID = elc.ID
WHERE LogCreateDate > @MinDateTime
IF @ThresholdQueue >= @NotificationThreshold
BEGIN
UPDATE dbo.[EventLog]
SET LogNotificationPending = 1
WHERE LogConfigID = @LogConfigID
AND LogNotificationPending IS NULL
AND LogCreateDate > @MinDateTime
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetList' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[GetList]
@ListName nvarchar(50),
@ParentKey nvarchar(150),
@PortalID int
AS
SELECT DISTINCT
ListName,
[Level],
DefinitionID,
PortalID,
SystemList,
EntryCount,
ParentID,
ParentKey,
Parent,
ParentList,
MaxSortOrder
FROM dbo.vw_Lists
WHERE ListName = @ListName
AND ParentKey = @ParentKey
AND PortalID = @PortalID
ORDER BY [Level], ListName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationTypeByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationTypeByName]
@Name nvarchar(100)
AS
BEGIN
SELECT [NotificationTypeID], [Name], [Description], [TTL], [DesktopModuleId], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_NotificationTypes]
WHERE [Name] LIKE @Name
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateHeirarchicalTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateHeirarchicalTerm]
@TermID int,
@VocabularyID int,
@ParentTermID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@LastModifiedByUserID int
AS
DECLARE @Left int
DECLARE @Right int
DECLARE @Width int
SET @Left = (SELECT TermLeft FROM dbo.Taxonomy_Terms WHERE TermID = @TermID)
SET @Right = (SELECT TermRight FROM dbo.Taxonomy_Terms WHERE TermID = @TermID)
SET @Width = @Right - @Left + 1
BEGIN TRANSACTION
BEGIN
-- Temporarily remove term from heirarchy - but retain information about term and children
-- (these should now be -n, ...,-2,-1 etc)
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft - @Right - 1,
TermRight = TermRight - @Right - 1
WHERE TermLeft >= @Left
AND TermRight <= @Right
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Left values for all items that are after the original term
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft - @Width
WHERE TermLeft >= @Left + @Width
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Right values for all items that are after the original term
UPDATE dbo.Taxonomy_Terms
SET TermRight = TermRight - @Width
WHERE TermRight >= @Right
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Get Left value of Sibling that we are inserting before
SET @Left = (SELECT TOP 1 TermLeft FROM dbo.Taxonomy_Terms
WHERE VocabularyID = @VocabularyID
AND ParentTermID = @ParentTermID
AND Name > @Name
ORDER BY Name)
-- Term is to be inserted at end of sibling list so get the Right value of the parent, which will become our new left value
IF @Left IS NULL
SET @Left = (SELECT TermRight FROM dbo.Taxonomy_Terms
WHERE VocabularyID = @VocabularyID
AND TermID = @ParentTermID)
-- Left is still null means this is the first term in this vocabulary - set the Left to 1
IF @Left IS NULL
SET @Left = 1
SET @Right = @Left + @Width - 1
-- Update Left values for all items that are after the updated term
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft + @Width
WHERE TermLeft >= @Left
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Right values for all items that are after the term
UPDATE dbo.Taxonomy_Terms
SET TermRight = TermRight + @Width
WHERE TermRight >= @Left
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Left/Right values for all items temporarily removed from heirarchy
UPDATE dbo.Taxonomy_Terms
SET TermLeft = TermLeft + @Left + @Width,
TermRight = TermRight + @Left + @Width
WHERE TermLeft < 0
AND TermRight < 0
AND VocabularyID = @VocabularyID
IF @@ERROR = 0
BEGIN
-- Update Term
UPDATE dbo.Taxonomy_Terms
SET
VocabularyID = @VocabularyID,
ParentTermID = @ParentTermID,
[Name] = @Name,
Description = @Description,
Weight = @Weight,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TermID = @TermID
IF @@ERROR = 0
BEGIN
COMMIT TRANSACTION
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
ELSE
BEGIN
-- Rollback the transaction
ROLLBACK TRANSACTION
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_GetPreviewProfiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_GetPreviewProfiles] @PortalId INT
AS
SELECT Id, PortalId, Name, Width, Height, UserAgent, SortOrder, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate
FROM dbo.Mobile_PreviewProfiles
WHERE PortalId = @PortalId
ORDER BY SortOrder ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUnAuthorizedUsers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetUnAuthorizedUsers
@PortalID int,
@IncludeDeleted bit,
@SuperUsersOnly bit
AS
SELECT *
FROM dbo.vw_Users
WHERE PortalId = @PortalID
AND Authorised = 0
AND IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
AND IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
ORDER BY UserName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'MoveTabAfter' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[MoveTabAfter]
@TabId int,
@AfterTabId int,
@LastModifiedByUserID int
AS
BEGIN
DECLARE @OldParentId int
DECLARE @NewParentId int
SET @OldParentId = (SELECT ParentId FROM Tabs WHERE TabID = @TabId)
SET @NewParentId = (SELECT ParentId FROM Tabs WHERE TabID = @AfterTabId)
DECLARE @TabOrder int
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @TabId)
IF (@OldParentId <> @NewParentId OR NOT (@OldParentId IS NULL AND @NewParentId IS NULL))
-- Parent has changed
BEGIN
-- update TabOrder of Tabs with same original Parent
UPDATE Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
-- Get TabOrder of AfterTab
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @AfterTabId)
-- update TabOrder of Tabs with same new Parent
UPDATE Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @NewParentId OR (ParentId IS NULL AND @NewParentId IS NULL))
AND TabOrder > @TabOrder
-- Update Tab with new TabOrder
UPDATE Tabs
SET
ParentId = @NewParentId,
TabOrder = @TabOrder + 2,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabId
EXEC dbo.BuildTabLevelAndPath @TabId, 1
END
ELSE
-- Parent has not changed
BEGIN
-- Remove Tab from TabOrder
UPDATE Tabs
SET TabOrder = -1
WHERE TabID = @TabId
-- Reorder
UPDATE Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
AND TabId <> @TabId
-- Get TabOrder of AfterTab
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @AfterTabId)
-- Reorder
UPDATE Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
-- Update Tab with new TabOrder
UPDATE Tabs
SET
TabOrder = @TabOrder + 2,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabId
EXEC dbo.BuildTabLevelAndPath @TabId
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortalSetting]
@PortalID int,
@SettingName nvarchar(50),
@CultureCode nvarchar(50)
AS
SELECT
CASE WHEN LEFT(LOWER(dbo.PortalSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.PortalSettings.SettingValue
)
ELSE
dbo.PortalSettings.SettingValue
END
AS SettingValue
FROM dbo.PortalSettings
WHERE PortalID = @PortalID
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_AddNotificationTypeAction' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_AddNotificationTypeAction]
@NotificationTypeID int,
@NameResourceKey nvarchar(100),
@DescriptionResourceKey nvarchar(100),
@ConfirmResourceKey nvarchar(100),
@APICall nvarchar(500),
@CreatedByUserID int
AS
BEGIN
DECLARE @Order int
SELECT @Order = MAX([Order])
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeID] = @NotificationTypeID
IF @Order IS NULL
SET @Order = 1
ELSE
SET @Order = @Order + 2
INSERT INTO dbo.[CoreMessaging_NotificationTypeActions] (
[NotificationTypeID],
[NameResourceKey],
[DescriptionResourceKey],
[ConfirmResourceKey],
[Order],
[APICall],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@NotificationTypeID,
@NameResourceKey,
@DescriptionResourceKey,
@ConfirmResourceKey,
@Order,
@APICall,
@CreatedByUserID,
GETDATE(),
@CreatedByUserID,
GETDATE()
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'MoveTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.MoveTabModule
@FromTabId int,
@ModuleId int,
@ToTabId int,
@PaneName nvarchar(50),
@LastModifiedByUserID int
AS
UPDATE dbo.TabModules
SET
TabId = @ToTabId,
ModuleOrder = -1,
PaneName = @PaneName,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TabId = @FromTabId
AND ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_GetRedirectionRules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_GetRedirectionRules] @RedirectionId INT
AS
SELECT Id ,
RedirectionId ,
Capability ,
Expression
FROM Mobile_RedirectionRules
WHERE RedirectionId = @RedirectionId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchModules
@PortalID int
AS
SELECT *
FROM dbo.vw_Modules M
INNER JOIN dbo.Tabs T ON T.TabId = M.TabId
WHERE M.IsDeleted = 0
AND T.IsDeleted = 0
AND M.IsAdmin = 0
AND (M.SupportedFeatures & 2 = 2)
AND (T.EndDate > GETDATE() or T.EndDate IS NULL)
AND (T.StartDate <= GETDATE() or T.StartDate IS NULL)
AND (M.StartDate <= GETDATE() or M.StartDate IS NULL)
AND (M.EndDate > GETDATE() or M.EndDate IS NULL)
AND (NOT (M.BusinessControllerClass IS NULL))
AND (T.PortalID = @PortalID OR (T.PortalID IS NULL AND @PortalID Is NULL))
ORDER BY ModuleOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateProfile
@UserID int,
@PortalID int,
@ProfileData ntext
as
update dbo.Profile
set ProfileData = @ProfileData,
CreatedDate = getdate()
where UserId = @UserID
and PortalId = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'MoveTabBefore' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[MoveTabBefore]
@TabId int,
@BeforeTabId int,
@LastModifiedByUserID int
AS
BEGIN
DECLARE @OldParentId int
DECLARE @NewParentId int
SET @OldParentId = (SELECT ParentId FROM Tabs WHERE TabID = @TabId)
SET @NewParentId = (SELECT ParentId FROM Tabs WHERE TabID = @BeforeTabId)
DECLARE @TabOrder int
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @TabId)
IF (@OldParentId <> @NewParentId OR NOT (@OldParentId IS NULL AND @NewParentId IS NULL))
-- Parent has changed
BEGIN
-- update TabOrder of Tabs with same original Parent
UPDATE Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
-- Get TabOrder of AfterTab
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @BeforeTabId)
-- update TabOrder of Tabs with same new Parent
UPDATE Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @NewParentId OR (ParentId IS NULL AND @NewParentId IS NULL))
AND TabOrder >= @TabOrder
-- Update Tab with new TabOrder
UPDATE Tabs
SET
ParentId = @NewParentId,
TabOrder = @TabOrder,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabId
EXEC dbo.BuildTabLevelAndPath @TabId, 1
END
ELSE
-- Parent has not changed
BEGIN
-- Remove Tab from TabOrder
UPDATE Tabs
SET TabOrder = -1
WHERE TabID = @TabId
-- Reorder
UPDATE Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
AND TabId <> @TabId
-- Get TabOrder of BeforeTab
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @BeforeTabId)
-- Reorder
UPDATE Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder >= @TabOrder
-- Update Tab with new TabOrder
UPDATE Tabs
SET
TabOrder = @TabOrder,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabId
EXEC dbo.BuildTabLevelAndPath @TabId
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteNotificationTypeAction' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteNotificationTypeAction]
@NotificationTypeActionID int
AS
BEGIN
DELETE
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeActionID] = @NotificationTypeActionID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddFolder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddFolder]
@PortalID int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@FolderPath nvarchar(300),
@StorageLocation int,
@IsProtected bit,
@IsCached bit,
@LastUpdated datetime,
@CreatedByUserID int,
@FolderMappingID int = 0
AS
BEGIN
IF @FolderMappingID = 0 BEGIN
SELECT @FolderMappingID = FM.FolderMappingID
FROM dbo.[FolderMappings] as FM
WHERE ISNULL(FM.PortalID, -1) = ISNULL(@PortalID, -1)
AND FolderProviderType = (
CASE @StorageLocation
WHEN 0 THEN 'StandardFolderProvider'
WHEN 1 THEN 'SecureFolderProvider'
WHEN 2 THEN 'DatabaseFolderProvider'
ELSE 'StandardFolderProvider'
END
)
END
INSERT INTO dbo.[Folders] (
PortalID,
UniqueId,
VersionGuid,
FolderPath,
StorageLocation,
IsProtected,
IsCached,
LastUpdated,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate,
FolderMappingID
)
VALUES (
@PortalID,
@UniqueId,
@VersionGuid,
@FolderPath,
@StorageLocation,
@IsProtected,
@IsCached,
@LastUpdated,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@FolderMappingID
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_GetRedirections' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_GetRedirections] @PortalId INT
AS
SELECT Id ,
PortalId ,
Name ,
[Type] ,
SortOrder ,
SourceTabId ,
IncludeChildTabs ,
TargetType ,
TargetValue ,
Enabled ,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.Mobile_Redirections
WHERE PortalId = @PortalId
ORDER BY SortOrder ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_PortalsDefaultLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_PortalsDefaultLanguage]
AS
SELECT DISTINCT
P.PortalID,
P.PortalGroupID,
PL.PortalName,
PL.LogoFile,
PL.FooterText,
P.ExpiryDate,
P.UserRegistration,
P.BannerAdvertising,
P.AdministratorId,
P.Currency,
P.HostFee,
P.HostSpace,
P.PageQuota,
P.UserQuota,
P.AdministratorRoleId,
P.RegisteredRoleId,
PL.Description,
PL.KeyWords,
PL.BackgroundFile,
P.GUID,
P.PaymentProcessor,
P.ProcessorUserId,
P.ProcessorPassword,
P.SiteLogHistory,
U.Email,
P.DefaultLanguage,
P.TimezoneOffset,
PL.AdminTabId,
P.HomeDirectory,
PL.SplashTabId,
PL.HomeTabId,
PL.LoginTabId,
PL.RegisterTabId,
PL.UserTabId,
PL.SearchTabId,
(SELECT TOP (1) TabID
FROM dbo.Tabs
WHERE (PortalID IS NULL) AND (ParentId IS NULL))
AS SuperTabId,
P.CreatedByUserID,
P.CreatedOnDate,
P.LastModifiedByUserID,
P.LastModifiedOnDate,
PL.CultureCode
FROM dbo.Portals AS P
INNER JOIN (SELECT
PortalID,
PortalName,
CASE WHEN LEFT(LOWER(LogoFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE fileid = CAST((RIGHT(LOWER(LogoFile), LEN(LogoFile) - 7)) AS INT))
ELSE
LogoFile
END AS LogoFile,
FooterText,
Description,
KeyWords,
CASE WHEN LEFT(LOWER(BackgroundFile), 7) = 'fileid=' THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE fileid = CAST((RIGHT(LOWER(BackgroundFile), LEN(BackgroundFile) - 7)) AS INT))
ELSE
BackgroundFile
END AS BackgroundFile,
AdminTabId,
SplashTabId,
HomeTabId,
LoginTabId,
RegisterTabId,
UserTabId,
SearchTabId,
CultureCode
FROM dbo.PortalLocalization)
AS PL ON P.PortalID = PL.PortalID AND PL.CultureCode = P.DefaultLanguage
LEFT OUTER JOIN dbo.Users AS U ON P.AdministratorId = U.UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalsByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortalsByName]
@NameToMatch nvarchar(256),
@PageIndex int,
@PageSize int
AS
BEGIN
-- Set the page bounds
DECLARE @PageLowerBound INT
DECLARE @PageUpperBound INT
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageSize - 1 + @PageLowerBound
-- Create a temp table TO store the select results
CREATE TABLE #PageIndexForPortals
(
IndexId int IDENTITY (0, 1) NOT NULL,
PortalId int
)
-- Insert into our temp table
INSERT INTO #PageIndexForPortals (PortalId)
SELECT PortalId FROM dbo.vw_PortalsDefaultLanguage
WHERE PortalName LIKE @NameToMatch
ORDER BY PortalName
SELECT *
FROM dbo.vw_PortalsDefaultLanguage p,
#PageIndexForPortals i
WHERE p.PortalId = i.PortalId
AND i.IndexId >= @PageLowerBound AND i.IndexId <= @PageUpperBound
ORDER BY p.PortalName
SELECT TotalRecords = COUNT(*)
FROM #PageIndexForPortals
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog12' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog12
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select AffiliateId,
count(*) AS 'Requests',
max(DateTime) AS 'LastReferral'
from dbo.SiteLog
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
and AffiliateId is not null
group by AffiliateId
order by Requests desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'MoveTabToParent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[MoveTabToParent]
@TabId int,
@NewParentId int,
@LastModifiedByUserID int
AS
BEGIN
DECLARE @OldParentId int
SET @OldParentId = (SELECT ParentId FROM Tabs WHERE TabID = @TabId)
DECLARE @TabOrder int
SET @TabOrder = (SELECT TabOrder FROM Tabs WHERE TabID = @TabId)
-- Get New TabOrder
DECLARE @NewTabOrder int
SET @NewTabOrder = (SELECT MAX(TabOrder) FROM Tabs WHERE (ParentId = @NewParentId OR (ParentId IS NULL AND @NewParentId IS NULL)))
IF @NewTabOrder IS NULL
SET @NewTabOrder = 1
ELSE
SET @NewTabOrder = @NewTabOrder + 2
BEGIN
-- update TabOrder of Tabs with same original Parent
UPDATE Tabs
SET TabOrder = TabOrder - 2
WHERE (ParentId = @OldParentId OR (ParentId IS NULL AND @OldParentId IS NULL))
AND TabOrder > @TabOrder
-- Update Tab with new TabOrder
UPDATE Tabs
SET
ParentId = @NewParentId,
TabOrder = @NewTabOrder,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabID = @TabId
END
IF @OldParentId <> @NewParentId
BEGIN
EXEC dbo.BuildTabLevelAndPath @TabId, 1
END
ELSE
BEGIN
EXEC dbo.BuildTabLevelAndPath @TabId
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationTypeAction' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationTypeAction]
@NotificationTypeActionID int
AS
BEGIN
SELECT [NotificationTypeActionID], [NotificationTypeID], [NameResourceKey], [DescriptionResourceKey], [ConfirmResourceKey], [Order], [APICall], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeActionID] = @NotificationTypeActionID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSimpleTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateSimpleTerm]
@TermID int,
@VocabularyID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@LastModifiedByUserID int
AS
UPDATE dbo.Taxonomy_Terms
SET
VocabularyID = @VocabularyID,
[Name] = @Name,
Description = @Description,
Weight = @Weight,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE TermID = @TermID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_GetAllRedirections' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_GetAllRedirections]
AS
SELECT Id ,
PortalId ,
Name ,
[Type] ,
SortOrder ,
SourceTabId ,
IncludeChildTabs ,
TargetType ,
TargetValue ,
Enabled ,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
FROM dbo.Mobile_Redirections
ORDER BY PortalId ASC, SortOrder ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FolderMappingsSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[FolderMappingsSettings]
(
[FolderMappingID] [int] NOT NULL,
[SettingName] [nvarchar] (50) NOT NULL,
[SettingValue] [nvarchar] (2000) NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'FolderMappingsSettings' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[FolderMappingsSettings] ADD CONSTRAINT [PK_FolderMappingsSettings] PRIMARY KEY CLUSTERED ([FolderMappingID], [SettingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddFolderMappingsSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddFolderMappingsSetting]
@FolderMappingID int,
@SettingName nvarchar(50),
@SettingValue nvarchar(2000),
@CreatedByUserID int
AS
BEGIN
INSERT INTO dbo.[FolderMappingsSettings] (
FolderMappingID,
SettingName,
SettingValue,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@FolderMappingID,
@SettingName,
@SettingValue,
@CreatedByUserID,
GETDATE(),
@CreatedByUserID,
GETDATE()
)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTab]
@TabId int
AS
SELECT *
FROM dbo.vw_Tabs
WHERE TabId = @TabId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteModuleSetting
@ModuleId int,
@SettingName nvarchar(50)
as
DELETE FROM dbo.ModuleSettings
WHERE ModuleId = @ModuleId
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabOrder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabOrder]
@TabId int,
@TabOrder int,
@ParentId int,
@LastModifiedByUserID int
AS
DECLARE @OldParentId INT
SELECT @OldParentId = ParentId FROM dbo.Tabs WHERE TabID = @TabId
UPDATE Tabs
SET
TabOrder = @TabOrder,
ParentId = @ParentId,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE TabId = @TabId
IF @OldParentId <> @ParentId
BEGIN
EXEC dbo.BuildTabLevelAndPath @TabId, 1
END
ELSE
BEGIN
EXEC dbo.BuildTabLevelAndPath @TabId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CanDeleteSkin' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CanDeleteSkin]
@SkinType char(1),
@SkinFolderName nvarchar(200)
AS
BEGIN
IF exists(SELECT * FROM dbo.Tabs WHERE (SkinSrc like '%![' + @SkinType + '!]' + @SkinFolderName + '%' ESCAPE '!')
OR (ContainerSrc like '%![' + @SkinType + '!]' + @SkinFolderName + '%' ESCAPE '!'))
SELECT 0
ELSE
BEGIN
IF exists(SELECT * FROM dbo.TabModules WHERE ContainerSrc like '%![' + @SkinType + '!]' + @SkinFolderName + '%' ESCAPE '!')
SELECT 0
ELSE
SELECT 1
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationTypeActionByName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationTypeActionByName]
@NotificationTypeID int,
@NameResourceKey nvarchar(100)
AS
BEGIN
SELECT [NotificationTypeActionID], [NotificationTypeID], [NameResourceKey], [DescriptionResourceKey], [ConfirmResourceKey], [Order], [APICall], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeID] = @NotificationTypeID AND [NameResourceKey] LIKE @NameResourceKey
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_SavePreviewProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_SavePreviewProfile]
@Id INT ,
@PortalId INT ,
@Name NVARCHAR(50) ,
@Width INT ,
@Height INT ,
@UserAgent NVARCHAR(260) ,
@SortOrder INT ,
@UserId INT
AS
IF ( @Id = -1 )
BEGIN
INSERT dbo.Mobile_PreviewProfiles
( PortalId ,
Name ,
Width ,
Height ,
UserAgent ,
SortOrder ,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @PortalId , -- PortalId - int
@Name , -- Name - nvarchar(50)
@Width , -- Width - int
@Height , -- Height - int
@UserAgent ,
@SortOrder ,
@UserId , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@UserId , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT @Id = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.Mobile_PreviewProfiles
SET Name = @Name ,
Width = @Width ,
Height = @Height ,
UserAgent = @UserAgent ,
SortOrder = @SortOrder ,
LastModifiedByUserID = @UserId ,
LastModifiedOnDate = GETDATE()
WHERE Id = @Id
END
SELECT @Id
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleNextTask' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetScheduleNextTask
@Server varchar(150)
AS
SELECT TOP 1 S.*,
SH.NextStart
FROM dbo.Schedule S
LEFT JOIN dbo.ScheduleHistory SH ON S.ScheduleID = SH.ScheduleID
WHERE ((SH.ScheduleHistoryID = (SELECT TOP 1 S1.ScheduleHistoryID FROM dbo.ScheduleHistory S1
WHERE S1.ScheduleID = S.ScheduleID
ORDER BY S1.NextStart DESC)
OR SH.ScheduleHistoryID IS NULL)
AND S.Enabled = 1)
AND (S.Servers LIKE ',%' + @Server + '%,' or S.Servers IS NULL)
ORDER BY SH.NextStart ASC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog1' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog1
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select convert(varchar,DateTime,102) AS 'Date',
count(*) AS 'Views',
count(distinct dbo.SiteLog.UserHostAddress) AS 'Visitors',
count(distinct dbo.SiteLog.UserId) 'Users'
from dbo.SiteLog
where PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
group by convert(varchar,DateTime,102)
order by Date desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationTypeActions' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationTypeActions]
@NotificationTypeID int
AS
BEGIN
SELECT [NotificationTypeActionID], [NotificationTypeID], [NameResourceKey], [DescriptionResourceKey], [ConfirmResourceKey], [Order], [APICall], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_NotificationTypeActions]
WHERE [NotificationTypeID] = @NotificationTypeID
ORDER BY [Order]
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_SaveRedirection' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Mobile_SaveRedirection]
@Id INT ,
@PortalId INT ,
@Name NVARCHAR(50) ,
@Type INT ,
@SortOrder INT ,
@SourceTabId INT ,
@IncludeChildTabs BIT ,
@TargetType INT ,
@TargetValue NVARCHAR(260) ,
@Enabled BIT,
@UserId INT
AS
IF ( @Id = -1 )
BEGIN
INSERT dbo.Mobile_Redirections
( PortalId ,
Name ,
Type ,
SortOrder ,
SourceTabId ,
IncludeChildTabs ,
TargetType ,
TargetValue ,
Enabled ,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES ( @PortalId , -- PortalId - int
@Name , -- Name - nvarchar(50)
@Type , -- Type - int
@SortOrder , -- SortOrder - int
@SourceTabId , -- SourceTabId - int
@IncludeChildTabs ,
@TargetType ,
@TargetValue ,
@Enabled ,
@UserId , -- CreatedBy - int
GETDATE() , -- CreatedOn - datetime
@UserId , -- LastModifiedBy - int
GETDATE() -- LastModifiedOn - datetime
)
SELECT SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.Mobile_Redirections
SET Name = @Name ,
[Type] = @Type ,
SortOrder = @SortOrder ,
SourceTabId = @SourceTabId ,
IncludeChildTabs = @IncludeChildTabs ,
TargetType = @TargetType ,
TargetValue = @TargetValue ,
Enabled = @Enabled ,
LastModifiedByUserID = @UserId ,
LastModifiedOnDate = GETDATE()
WHERE Id = @Id
SELECT @Id
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabs' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabs]
@PortalID int
AS
SELECT *
FROM dbo.vw_Tabs
WHERE PortalId = @PortalID OR (PortalID IS NULL AND @PortalID IS NULL)
ORDER BY Level, ParentID, TabOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[UserProfile]
(
[ProfileID] [int] NOT NULL IDENTITY(1, 1),
[UserID] [int] NOT NULL,
[PropertyDefinitionID] [int] NOT NULL,
[PropertyValue] [nvarchar] (3750) NULL,
[PropertyText] [nvarchar] (max) NULL,
[Visibility] [int] NOT NULL CONSTRAINT [DF__UserP__Visib__1352D76D] DEFAULT ((0)),
[LastUpdatedDate] [datetime] NOT NULL,
[ExtendedVisibility] [varchar] (400) NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'UserProfile' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[UserProfile] ADD CONSTRAINT [PK_UserProfile] PRIMARY KEY CLUSTERED ([ProfileID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserProfile' already exists on table 'dbo.UserProfile'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserProfile] ON dbo.[UserProfile] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): The operation failed because an index or statistics with name 'IX_UserProfile_UserID_PropertyDefinitionID' already exists on table 'dbo.UserProfile'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1913,State:1,Class:16
CREATE NONCLUSTERED INDEX [IX_UserProfile_UserID_PropertyDefinitionID] ON dbo.[UserProfile] ([UserID], [PropertyDefinitionID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'vw_Profile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE VIEW dbo.[vw_Profile]
AS
SELECT
UP.UserID,
PD.PortalID,
PD.PropertyName,
CASE WHEN PropertyText IS NULL THEN PropertyValue ELSE PropertyText END AS PropertyValue,
UP.Visibility
FROM dbo.UserProfile AS UP
INNER JOIN dbo.ProfilePropertyDefinition AS PD ON PD.PropertyDefinitionID = UP.PropertyDefinitionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVendors' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetVendors
@PortalID int,
@UnAuthorized bit,
@PageSize int,
@PageIndex int
AS
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int
-- Set the page bounds
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageLowerBound + @PageSize + 1
CREATE TABLE #PageIndex
(
IndexID int IDENTITY (1, 1) NOT NULL,
VendorId int
)
INSERT INTO #PageIndex (VendorId)
SELECT VendorId
FROM Vendors
WHERE ( ((Authorized = 0 AND @UnAuthorized = 1) OR @UnAuthorized = 0 ) AND ((PortalId = @PortalID) or (@PortalID is null and PortalId is null)) )
ORDER BY VendorId DESC
SELECT COUNT(*) as TotalRecords
FROM #PageIndex
SELECT dbo.Vendors.*,
( select count(*) from dbo.Banners where dbo.Banners.VendorId = dbo.Vendors.VendorId ) AS 'Banners'
FROM dbo.Vendors
INNER JOIN #PageIndex PageIndex
ON dbo.Vendors.VendorId = PageIndex.VendorId
WHERE ( (PageIndex.IndexID > @PageLowerBound) OR @PageLowerBound is null )
AND ( (PageIndex.IndexID < @PageUpperBound) OR @PageUpperBound is null )
ORDER BY
PageIndex.IndexID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_SendNotification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_SendNotification]
@NotificationTypeID int,
@PortalID INT,
@To nvarchar(2000),
@From nvarchar(200),
@Subject nvarchar(400),
@Body nvarchar(max),
@SenderUserID int,
@CreateUpdateUserID int,
@ExpirationDate datetime,
@IncludeDismissAction bit,
@Context nvarchar(200)
AS
BEGIN
INSERT dbo.[CoreMessaging_Messages] (
[NotificationTypeID],
[PortalID],
[To],
[From],
[Subject],
[Body],
[SenderUserID],
[ExpirationDate],
[IncludeDismissAction],
[Context],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@NotificationTypeID,
@PortalID,
@To,
@From,
@Subject,
@Body,
@SenderUserID,
@ExpirationDate,
@IncludeDismissAction,
@Context,
@CreateUpdateUserID, -- CreatedBy
GETUTCDATE(), -- CreatedOn
@CreateUpdateUserID, -- LastModifiedBy
GETDATE() -- LastModifiedOn
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Mobile_SaveRedirectionRule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROC dbo.[Mobile_SaveRedirectionRule]
@Id INT ,
@RedirectionId INT ,
@Capbility NVARCHAR(50) ,
@Expression NVARCHAR(50)
AS
IF @Id = -1
BEGIN
INSERT INTO dbo.Mobile_RedirectionRules
( RedirectionId ,
Capability ,
Expression
)
VALUES ( @RedirectionId , -- RedirectionId - int
@Capbility , -- Capability - nvarchar(50)
@Expression -- Expression - nvarchar(50)
)
END
ELSE
BEGIN
UPDATE dbo.Mobile_RedirectionRules
SET Capability = @Capbility ,
Expression = @Expression
WHERE Id = @Id
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFolderMappingsSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateFolderMappingsSetting]
@FolderMappingID int,
@SettingName nvarchar(50),
@SettingValue nvarchar(2000),
@LastModifiedByUserID int
AS
BEGIN
UPDATE dbo.[FolderMappingsSettings]
SET
SettingValue = @SettingValue,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = GETDATE()
WHERE FolderMappingID = @FolderMappingID AND SettingName = @SettingName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchResults' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSearchResults]
@PortalID int,
@TabId int,
@ModuleId int
AS
SELECT DISTINCT
*
FROM dbo.vw_SearchItems
WHERE (PortalId = @PortalID or @PortalID is null)
AND (TabId = @TabId or @TabId is null)
AND (ModuleId = @ModuleId or @ModuleId is null)
ORDER BY PubDate DESC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersAdvancedSearch' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersAdvancedSearch]
(
@PortalID int, -- portal
@UserId int, -- for determining correct visibility permissions
@FilterUserId int, -- for filtering relationships on
@FilterRoleId int, -- for filtering by roles
@RelationshipTypeId int, -- for filtering by relationships
@IsAdmin bit, -- determines visibility
@PageSize int, -- page size
@PageIndex int, -- 0 based page index
@SortBy nvarchar(100), -- sort field
@SortAscending bit, -- sort flag indicating whether sort is asc or desc
@PropertyNames nvarchar(max), -- list of property names to filter
@PropertyValues nvarchar(max) -- list of property values to filter
)
AS
-- Setup Top XX
DECLARE @topSql nvarchar(20) SET @topSql = ''
IF @PageSize > -1 BEGIN SET @topSql = ' TOP ' + CONVERT(nvarchar(20), @PageSize) END
-- Setup Specific Page
DECLARE @minRowNumberSql nvarchar(20) SET @minRowNumberSql = CONVERT(nvarchar(20), ((@PageIndex * @PageSize) + 1))
-- Setup Pivot Field List
DECLARE @pivotSql nvarchar(max) SELECT @pivotSql = dbo.GetProfileFieldSql(@PortalID, '')
-- Get User specific columns
DECLARE @UserColumns TABLE(ColumnName NVARCHAR(100))
INSERT INTO @UserColumns SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'vw_Users'
-- Lists Filters names and values into tables
DECLARE @PropertyNamesTable TABLE (RowNumber INT, RowValue nvarchar(MAX))
DECLARE @PropertyValuesTable TABLE (RowNumber INT, RowValue nvarchar(MAX))
INSERT INTO @PropertyNamesTable SELECT * FROM dbo.ConvertListToTable(',', @PropertyNames)
INSERT INTO @PropertyValuesTable SELECT * FROM dbo.ConvertListToTable(',', @PropertyValues)
-- Gets filters that are on the User rather than Profile Properties
DECLARE @UserFiltersTable TABLE (RowNumber Int, RowValue NVARCHAR(MAX))
INSERT INTO @UserFiltersTable SELECT * FROM dbo.ConvertListToTable(',',@PropertyNames) WHERE RowValue IN (SELECT * FROM @UserColumns)
DECLARE @sql nvarchar(max) SET @sql = ''
DECLARE @filterSql nvarchar(max)SET @filterSql = ''
-- ///////////////////////////////////////////////////
-- FILTERING by PROFILE PROPERTY or USER PROPERTY
-- ///////////////////////////////////////////////////
--IF @PropertyNames IS NOT NULL AND @PropertyNames <> ''
IF ((SELECT COUNT(*) FROM @PropertyNamesTable) > 0) AND ((SELECT COUNT(*) FROM @PropertyValuesTable)> 0)
BEGIN
DECLARE @propertyFilter nvarchar(max)
DECLARE @userFilter nvarchar(max)
DECLARE @userFilterJoin nvarchar(max) SET @userFilterJoin = ''
DECLARE @profilePropertyCount INT
DECLARE @userFilterCount INT
DECLARE @propertyAndUserFilter nvarchar(10) SET @propertyAndUserFilter = ''
DECLARE @groupBy NVARCHAR(300)
-- Filters on Profile Properties
;WITH CTE_PropertyNames(RowNumber, RowValue) AS
( SELECT * FROM @PropertyNamesTable
WHERE RowValue NOT IN (SELECT ColumnName FROM @UserColumns)),
CTE_PropertyValues(RowNumber, RowValue) AS
( SELECT * FROM @PropertyValuesTable
WHERE RowValue NOT IN (SELECT ColumnName FROM @UserColumns))
SELECT @propertyFilter = COALESCE(@propertyFilter + ' OR ' , ' ')
+ ' (PropertyName=''' + N.RowValue
+ ''' AND ((PropertyValue LIKE ''' + V.RowValue +'%'') OR (PropertyValue LIKE ''% ' + V.RowValue +'%'')))'
FROM CTE_PropertyNames AS N INNER JOIN CTE_PropertyValues AS V ON N.RowNumber = V.RowNumber
-- Filters on User Property
SELECT @userFilter = COALESCE(@userFilter + ' AND ', ' ')
+ ' ((u.' + N.RowValue + ' LIKE ''' + V.RowValue +'%'') OR (u.' + N.RowValue + ' LIKE ''% ' + V.RowValue +'%'')) '
FROM @UserFiltersTable AS N INNER JOIN @PropertyValuesTable AS V ON N.RowNumber = V.RowNumber
SELECT @userFilterCount = COUNT(*) FROM @UserFiltersTable
IF @userFilterCount > 0 BEGIN SET @userFilterJoin = ' INNER JOIN vw_Users u ON u.UserId = p.UserId ' END
-- Determining the Group By Clause -- dependant on types of filters used
SELECT @profilePropertyCount = COUNT(*) FROM dbo.ConvertListToTable(',', @PropertyNames)
WHERE RowValue IN (SELECT PropertyName FROM ProfilePropertyDefinition WHERE PortalID = @PortalId)
AND RowValue NOT IN (SELECT ColumnName FROM @UserColumns)
IF @profilePropertyCount > 0
BEGIN SET @groupBy = ' GROUP BY p.UserId HAVING COUNT(*) = ' + CONVERT(nvarchar(20),@profilePropertyCount ) END
ELSE
BEGIN SET @groupBy = ' GROUP BY p.UserId HAVING COUNT(*) > 0 ' END
IF ( @profilePropertyCount > 0 AND @userFilterCount > 0)
BEGIN SET @propertyAndUserFilter = ' AND ' END
-- CREATE FINAL FILTER
SET @filterSql = ' DECLARE @MatchingUsers TABLE (UserID INT, Occurrances INT) INSERT INTO @MatchingUsers SELECT p.UserID, COUNT(*) AS occurances '
+ ' FROM dbo.vw_profile p ' + @userFilterJoin
+ ' WHERE ' + COALESCE(' ( ' + @propertyFilter + ') ', ' ') + @propertyAndUserFilter + COALESCE(@userFilter, ' ')
+ ' AND ((Visibility = 0) OR (Visibility = 1 AND ' + CONVERT(nvarchar(20), @UserId) + ' > 0) OR (Visibility = 2 AND ' + CONVERT(nvarchar(20), @IsAdmin) + ' = 1))'
+ @groupBy
END
-- ///////////////////////////////////////////////////
-- SETUP ROLE AND RELATIONSHIP FILTERS
-- ///////////////////////////////////////////////////
DECLARE @roleAndRelationshipFilter nvarchar(1000)
DECLARE @roleFilter nvarchar(100) SET @roleFilter = ''
DECLARE @relationshipFilter nvarchar(1000) SET @relationshipFilter = ''
DECLARE @roleAndRelationshipFlag bit SET @roleAndRelationshipFlag = 0
DECLARE @RoleAndRelationshipSelect nvarchar(100) SET @RoleAndRelationshipSelect = ''
-- Filter by Role
IF @FilterRoleId <> -1
BEGIN
SET @roleAndRelationshipFlag = 1
SET @roleFilter = ' JOIN UserRoles UR ON U.UserID = UR.UserID AND UR.RoleID = ' + CONVERT(nvarchar(20), @FilterRoleId)
END
-- Filter by Relationship
IF @RelationshipTypeId <> -1
BEGIN
SET @roleAndRelationshipFlag = 1
SET @relationshipFilter = ' JOIN Relationships REL ON REL.PortalID = ' + CONVERT(nvarchar(20), @PortalID)
+ ' AND RelationshipTypeID = ' + CONVERT(nvarchar(20), @RelationshipTypeId)
+ ' JOIN UserRelationships UREL ON REL.RelationshipID = UREL.RelationshipID AND
((UREL.UserID = ' + CONVERT(nvarchar(20), @FilterUserId) + ' AND UREL.RelatedUserID = U.UserID) OR
(UREL.UserID = U.UserID AND UREL.RelatedUserID = ' + CONVERT(nvarchar(20), @FilterUserId) + '))'
+ ' WHERE UREL.Status = 2'
END
IF @roleAndRelationshipFlag = 1 BEGIN SET @RoleAndRelationshipSelect = ' AND s.UserId IN (SELECT userID FROM RoleAndRelationUsers) ' END
SET @roleAndRelationshipFilter = ', RoleAndRelationUsers AS ( SELECT U.userId FROM vw_Users U ' + @roleFilter + @relationshipFilter + ' )'
-- ///////////////////////////////////////////////////
-- SET UP SORT
-- ///////////////////////////////////////////////////
DECLARE @sortSql nvarchar(1000) SET @sortSql = ''
DECLARE @propertySort nvarchar(1000) SET @propertySort = ''
DECLARE @filterJoin nvarchar(100) SET @filterJoin = ''
DECLARE @filterSortSql nvarchar(1000) SET @filterSortSql = ''
DECLARE @sortByUserProperty BIT
SELECT @sortByUserProperty = COUNT(*) FROM @UserColumns WHERE ColumnName = @SortBy
IF ( @profilePropertyCount > 0 OR @userFilterCount > 0)
BEGIN SET @filterJoin = ' INNER JOIN @MatchingUsers m ON m.UserID = s.UserID ' END
-- Determine the Type of Sort
IF (@SortBy IS NOT NULL AND @SortBy <> '') AND @sortByUserProperty <> 1
BEGIN -- Sort By Profile Property
SET @sortSql = dbo.GetSortSql(@SortBy,@SortAscending,'UserID')
SET @propertySort = dbo.GetSortSql('PropertyValue',@SortAscending,'UserID')
SET @filterSortSql = ' ;WITH SortedUsers AS ( SELECT ROW_NUMBER() OVER( ' + @propertySort + ' ) AS RowNumber, * '
+ ' FROM vw_Profile WHERE PortalId = ' + CONVERT(nvarchar(20), @PortalID) + ' AND PropertyName = ''' + @SortBy + ''' )'
+ ' , MatchingSorted AS ( SELECT ROW_NUMBER() OVER(ORDER BY [RowNumber]) AS RowNumber, s.UserId FROM SortedUsers s '
+ @filterJoin + ' ) '
END
ELSE
BEGIN
-- Sort By User Property
IF @sortByUserProperty = 1 BEGIN SET @sortSql = dbo.GetSortSql(@SortBy,@SortAscending,'UserID')END
-- Default: Sort By UserID
ELSE BEGIN SET @sortSql = dbo.GetSortSql('UserID',@SortAscending,'UserID') END
SET @filterSortSql = ' ;WITH SortedUsers AS ( SELECT ROW_NUMBER() OVER( ' + @sortSql + ' ) AS RowNumber, * '
+ ' FROM vw_Users WHERE (PortalID = ' + CONVERT(nvarchar(20), @PortalID) + ' OR PortalID Is NULL))'
+ ' , MatchingSorted AS ( SELECT ROW_NUMBER() OVER(ORDER BY [RowNumber]) AS RowNumber, s.UserId FROM SortedUsers s '
+ @filterJoin + ' ) '
END
-- ///////////////////////////////////////////////////
-- CREATE FINAL QUERY
-- ///////////////////////////////////////////////////
SET @sql = @filterSql
+ ' DECLARE @TempUsers TABLE (SortOrder INT, UserID INT) '
+ @filterSortSql
+ @roleAndRelationshipFilter
+ ' INSERT INTO @TempUsers SELECT ' + @topSql
+ ' s.RowNumber, s.UserId FROM MatchingSorted s '
+ ' WHERE RowNumber >= ' + @minRowNumberSql
+ @roleAndRelationshipSelect
+ ' ;WITH PivotedUsers AS ( SELECT U.UserID, U.PortalID, U.Username, U.Email, U.DisplayName, U.IsSuperUser, U.IsDeleted,
U.AffiliateID, U.UpdatePassword, U.Authorised, Prop.PropertyName,
CASE
WHEN (P.Visibility = 0) THEN P.PropertyValue
WHEN (P.Visibility = 1 AND ' + CONVERT(nvarchar(20), @IsAdmin) + ' = 1) THEN P.PropertyValue
WHEN (P.Visibility = 1 AND ' + CONVERT(nvarchar(20), @IsAdmin) + ' = 0 AND ' + CONVERT(nvarchar(20), @UserId) + ' > 0) THEN P.PropertyValue
WHEN U.UserID = ' + CONVERT(nvarchar(20), @UserId) + ' OR (P.Visibility = 2 AND ' + CONVERT(nvarchar(20), @IsAdmin) + ' = 1) THEN P.PropertyValue
ELSE NULL
END AS PropertyValue
FROM vw_Users AS U
INNER JOIN UserProfile AS P ON U.UserID = P.UserID
INNER JOIN ProfilePropertyDefinition AS Prop ON Prop.PropertyDefinitionID = P.PropertyDefinitionID
WHERE U.UserId IN (SELECT UserId FROM @TempUsers)
AND (U.PortalID = ' + CONVERT(nvarchar(20), @PortalID) + ' OR U.PortalId Is NULL )
AND U.IsDeleted = 0
)
SELECT * FROM PivotedUsers PIVOT (MAX(PropertyValue) for PropertyName in (' + @pivotSql + ') ) as pivotTable '
+ @sortSql
EXEC(@sql)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotifications' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotifications]
@UserID int,
@PortalID int,
@AfterNotificationID int,
@NumberOfRecords int
AS
BEGIN
--Get the top message for each conversation
;WITH Notifications AS
(
SELECT
M.[MessageID],
M.[NotificationTypeId],
M.[To],
M.[From],
M.[Subject],
M.[Body],
M.[SenderUserID],
M.[ExpirationDate],
M.[IncludeDismissAction],
M.[CreatedByUserID],
M.[CreatedOnDate],
M.[LastModifiedByUserID],
M.[LastModifiedOnDate],
M.[Context],
ROW_NUMBER() OVER(ORDER BY M.[CreatedOnDate] DESC) AS RowNumber
FROM dbo.[CoreMessaging_Messages] AS M
JOIN dbo.[CoreMessaging_MessageRecipients] MR ON M.MessageID = MR.MessageID
WHERE [NotificationTypeId] IS NOT NULL
AND MR.UserID = @UserID
AND M.PortalID = @PortalID
AND (M.[ExpirationDate] IS NULL OR (M.[ExpirationDate] IS NOT NULL AND M.[ExpirationDate] > GETUTCDATE()))
)
SELECT * FROM Notifications
WHERE (@AfterNotificationID > 0 AND RowNumber BETWEEN (SELECT RowNumber + 1 FROM Notifications WHERE [MessageID] = @AfterNotificationID) AND (SELECT RowNumber + @NumberOfRecords FROM Notifications WHERE [MessageID] = @AfterNotificationID)) OR
(@AfterNotificationID = -1 AND RowNumber BETWEEN 1 AND @NumberOfRecords)
ORDER BY RowNumber ASC
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateBanner' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateBanner
@BannerId int,
@BannerName nvarchar(100),
@ImageFile nvarchar(100),
@URL nvarchar(255),
@Impressions int,
@CPM float,
@StartDate datetime,
@EndDate datetime,
@UserName nvarchar(100),
@BannerTypeId int,
@Description nvarchar(2000),
@GroupName nvarchar(100),
@Criteria bit,
@Width int,
@Height int
as
update dbo.Banners
set ImageFile = @ImageFile,
BannerName = @BannerName,
URL = @URL,
Impressions = @Impressions,
CPM = @CPM,
StartDate = @StartDate,
EndDate = @EndDate,
CreatedByUser = @UserName,
CreatedDate = getdate(),
BannerTypeId = @BannerTypeId,
Description = @Description,
GroupName = @GroupName,
Criteria = @Criteria,
Width = @Width,
Height = @Height
where BannerId = @BannerId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddAffiliate' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddAffiliate
@VendorId int,
@StartDate datetime,
@EndDate datetime,
@CPC float,
@CPA float
as
insert into dbo.Affiliates (
VendorId,
StartDate,
EndDate,
CPC,
Clicks,
CPA,
Acquisitions
)
values (
@VendorId,
@StartDate,
@EndDate,
@CPC,
0,
@CPA,
0
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSearchItem]
@Title NVARCHAR(200),
@Description NVARCHAR(2000),
@Author INT,
@PubDate DATETIME,
@ModuleId INT,
@SearchKey NVARCHAR(100),
@Guid NVARCHAR(200),
@ImageFileId INT
AS
DECLARE @ID INT
SELECT @ID = SearchItemId
FROM dbo.SearchItem
WHERE ModuleId = @ModuleID
AND SearchKey = @SearchKey
IF @ID IS NULL
BEGIN
INSERT INTO dbo.SearchItem
([Title],
[Description],
[Author],
[PubDate],
[ModuleId],
[SearchKey],
[guId],
[HitCount],
[ImageFileId])
VALUES (@Title,
@Description,
@Author,
@PubDate,
@ModuleId,
@SearchKey,
@Guid,
0,
@ImageFileId)
SELECT Scope_identity()
END
ELSE
BEGIN
UPDATE dbo.SearchItem
SET [Title] = @Title,
[Description] = @Description,
[Author] = @Author,
[PubDate] = @PubDate,
[ModuleId] = @ModuleId,
[SearchKey] = @SearchKey,
[guId] = @Guid,
[HitCount] = [HitCount] + 1,
[ImageFileId] = @ImageFileId
WHERE SearchItemId = @ID
SELECT @ID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotification]
@NotificationId int
AS
BEGIN
SELECT
M.[MessageID],
M.[NotificationTypeId],
M.[To],
M.[From],
M.[Subject],
M.[Body],
M.[SenderUserID],
M.[ExpirationDate],
M.[IncludeDismissAction],
M.[CreatedByUserID],
M.[CreatedOnDate],
M.[LastModifiedByUserID],
M.[LastModifiedOnDate],
M.[Context]
FROM dbo.[CoreMessaging_Messages] AS M
WHERE [NotificationTypeId] IS NOT NULL
AND M.MessageID = @NotificationId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CalculatePagingInformation' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CalculatePagingInformation]
(
@pageIndex int,
@pageSize int,
@rowsToReturn int = null output,
@pageLowerBound int = null output,
@pageUpperBound int = null output
)
as
begin
declare
@minValue int,
@maxValue int,
@maxPageIndex int,
@pageSizeBig bigint,
@pageIndexBig bigint,
@rowsToReturnBig bigint,
@pageLowerBoundBig bigint,
@pageUpperBoundBig bigint
select
@minValue = 0,
@maxValue = cast(0x7fffffff as int),
@maxPageIndex = @maxValue / @pageSize,
@pageSizeBig = @pageSize,
@pageIndexBig = @pageIndex
if (@pageSize = 0 and @pageIndex = 0)
or @pageSize = @maxValue
or @pageIndex < 0
or @pageSize < 0
or @pageSize is null
or @pageIndex is null
begin
select
@rowsToReturn = @maxValue,
@pageLowerBound = 0,
@pageUpperBound = @maxValue
end
else
begin
select
@rowsToReturnBig = @pageSizeBig * (@pageIndexBig + 1),
@pageLowerBoundBig = @pageSizeBig * @pageIndexBig,
@pageUpperBoundBig = @pageLowerBoundBig + @pageSizeBig + 1
select
@rowsToReturn = case when @rowsToReturnBig <= @maxValue then cast(@rowsToReturnBig as int) else @maxValue end,
@pageLowerBound = case when @pageLowerBoundBig <= @maxValue then cast(@pageLowerBoundBig as int) else @maxValue end,
@pageUpperBound = case when @pageUpperBoundBig <= @maxValue then cast(@pageUpperBoundBig as int) else @maxValue end
end
end
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_GetInbox' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_GetInbox]
@PortalID int,
@UserID int,
@PageNumber int,
@PageSize int
AS
-- Set the page bounds
DECLARE
@PageLowerBound INT,
@PageUpperBound INT,
@RowsToReturn int,
@PageIndex int
/* this is 1-based rather than 0-based indexing. Accomodating so that we are consistent with paging */
SET @PageIndex = @PageNumber - 1
exec dbo.[CalculatePagingInformation] @PageIndex, @PageSize, @RowsToReturn output, @PageLowerBound output, @PageUpperBound output
begin
with UserInbox as (
select * , ROW_NUMBER() over (order by Date desc) as RowNumber
from dbo.Messaging_Messages
where (ToUserID = @UserID AND Status IN (1,2) AND SkipPortal = '0')
OR (FromUserID = @UserID AND Status = 0)
)
select * from UserInbox
where RowNumber > @PageLowerBound AND RowNumber < @PageUpperBound
order by RowNumber
end
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllTabsModulesByModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllTabsModulesByModuleID]
@ModuleID int
AS
SELECT *
FROM dbo.vw_Modules
WHERE ModuleID = @ModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog7' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog7
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select datepart(weekday,DateTime) AS 'WeekDay',
count(*) AS 'Views',
count(distinct dbo.SiteLog.UserHostAddress) AS 'Visitors',
count(distinct dbo.SiteLog.UserId) AS 'Users'
from dbo.SiteLog
where PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
group by datepart(weekday,DateTime)
order by WeekDay
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTab' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTab]
@ContentItemID int,
@PortalID int,
@TabOrder int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@TabName nvarchar(50),
@IsVisible bit,
@DisableLink bit,
@ParentId int,
@IconFile nvarchar(100),
@IconFileLarge nvarchar(100),
@Title nvarchar(200),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@Url nvarchar(255),
@SkinSrc nvarchar(200),
@ContainerSrc nvarchar(200),
@StartDate datetime,
@EndDate datetime,
@RefreshInterval int,
@PageHeadText nvarchar(Max),
@IsSecure bit,
@PermanentRedirect bit,
@SiteMapPriority float,
@CreatedByUserID int,
@CultureCode nvarchar(50)
AS
INSERT INTO dbo.Tabs (
ContentItemID,
PortalID,
TabOrder,
UniqueId,
VersionGuid,
DefaultLanguageGuid,
LocalizedVersionGuid,
TabName,
IsVisible,
DisableLink,
ParentId,
IconFile,
IconFileLarge,
Title,
Description,
KeyWords,
IsDeleted,
Url,
SkinSrc,
ContainerSrc,
StartDate,
EndDate,
RefreshInterval,
PageHeadText,
IsSecure,
PermanentRedirect,
SiteMapPriority,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate,
CultureCode
)
VALUES (
@ContentItemID,
@PortalID,
@TabOrder,
@UniqueId,
@VersionGuid,
@DefaultLanguageGuid,
@LocalizedVersionGuid,
@TabName,
@IsVisible,
@DisableLink,
@ParentId,
@IconFile,
@IconFileLarge,
@Title,
@Description,
@KeyWords,
0,
@Url,
@SkinSrc,
@ContainerSrc,
@StartDate,
@EndDate,
@RefreshInterval,
@PageHeadText,
@IsSecure,
@PermanentRedirect,
@SiteMapPriority,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@CultureCode
)
DECLARE @TabId INT
SELECT @TabId = SCOPE_IDENTITY()
EXEC dbo.BuildTabLevelAndPath @TabId
SELECT @TabId
RETURN @TabId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabAfter' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTabAfter]
@AfterTabID int,
@ContentItemID int,
@PortalID int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@TabName nvarchar(50),
@IsVisible bit,
@DisableLink bit,
@ParentId int,
@IconFile nvarchar(100),
@IconFileLarge nvarchar(100),
@Title nvarchar(200),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@Url nvarchar(255),
@SkinSrc nvarchar(200),
@ContainerSrc nvarchar(200),
@StartDate datetime,
@EndDate datetime,
@RefreshInterval int,
@PageHeadText nvarchar(max),
@IsSecure bit,
@PermanentRedirect bit,
@SiteMapPriority float,
@CreatedByUserID int,
@CultureCode nvarchar(50)
AS
BEGIN
DECLARE @TabId int
DECLARE @TabOrder INT
SET @TabOrder = (SELECT TabOrder FROM dbo.Tabs WHERE TabID = @AfterTabID)
-- Update TabOrders for all Tabs higher than @TabOrder
UPDATE dbo.Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @ParentId OR (ParentId IS NULL AND @ParentID IS NULL))
AND TabOrder > @TabOrder
-- Create Tab
SET @TabOrder = @TabOrder + 2
EXECUTE @TabId = dbo.AddTab
@ContentItemID,
@PortalID,
@TabOrder,
@UniqueId,
@VersionGuid,
@DefaultLanguageGuid,
@LocalizedVersionGuid,
@TabName,
@IsVisible,
@DisableLink,
@ParentId,
@IconFile,
@IconFileLarge,
@Title,
@Description,
@KeyWords,
@Url,
@SkinSrc,
@ContainerSrc,
@StartDate,
@EndDate,
@RefreshInterval,
@PageHeadText,
@IsSecure,
@PermanentRedirect,
@SiteMapPriority,
@CreatedByUserID,
@CultureCode;
-- Update Content Item
UPDATE dbo.ContentItems
SET TabID = @TabId
WHERE ContentItemID = @ContentItemID
SELECT @TabId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetNotificationByContext' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetNotificationByContext]
@notificationTypeId int,
@Context nvarchar(200)
AS
BEGIN
SELECT
M.[MessageID],
M.[NotificationTypeId],
M.[To],
M.[From],
M.[Subject],
M.[Body],
M.[SenderUserID],
M.[ExpirationDate],
M.[IncludeDismissAction],
M.[CreatedByUserID],
M.[CreatedOnDate],
M.[LastModifiedByUserID],
M.[LastModifiedOnDate],
M.[Context]
FROM dbo.[CoreMessaging_Messages] AS M
WHERE [NotificationTypeId] IS NOT NULL
AND M.NotificationTypeId = @notificationTypeId
AND M.Context = @context
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PortalGroups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[PortalGroups]
(
[PortalGroupID] [int] NOT NULL IDENTITY(1, 1),
[MasterPortalID] [int] NULL,
[PortalGroupName] [nvarchar] (100) NULL,
[PortalGroupDescription] [nvarchar] (2000) NULL,
[AuthenticationDomain] [nvarchar] (200) NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'PortalGroups' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[PortalGroups] ADD CONSTRAINT [PK_PortalGroup] PRIMARY KEY CLUSTERED ([PortalGroupID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPortalGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddPortalGroup]
@PortalGroupName nvarchar(100),
@PortalGroupDescription nvarchar(2000),
@MasterPortalID int,
@AuthenticationDomain nvarchar(200),
@CreatedByUserID int
AS
BEGIN
INSERT INTO dbo.PortalGroups
(
PortalGroupName ,
PortalGroupDescription ,
MasterPortalID,
AuthenticationDomain,
CreatedByUserID ,
CreatedOnDate ,
LastModifiedByUserID ,
LastModifiedOnDate
)
VALUES
(
@PortalGroupName ,
@PortalGroupDescription ,
@MasterPortalID,
@AuthenticationDomain,
@CreatedByUserID ,
getdate() ,
@CreatedByUserID ,
getdate()
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItem]
@ContentItemId int
AS
SELECT *
FROM dbo.ContentItems
WHERE ContentItemId = @ContentItemId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleByUniqueID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleByUniqueID]
@UniqueID uniqueidentifier
AS
SELECT *
FROM dbo.vw_Modules
WHERE UniqueID = @UniqueID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalAlias' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetPortalAlias
@HTTPAlias nvarchar(200),
@PortalID int
as
select *
from dbo.PortalAlias
where HTTPAlias = @HTTPAlias
and PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabBefore' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTabBefore]
@BeforeTabID int,
@ContentItemID int,
@PortalID int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@TabName nvarchar(50),
@IsVisible bit,
@DisableLink bit,
@ParentId int,
@IconFile nvarchar(100),
@IconFileLarge nvarchar(100),
@Title nvarchar(200),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@Url nvarchar(255),
@SkinSrc nvarchar(200),
@ContainerSrc nvarchar(200),
@StartDate datetime,
@EndDate datetime,
@RefreshInterval int,
@PageHeadText nvarchar(max),
@IsSecure bit,
@PermanentRedirect bit,
@SiteMapPriority float,
@CreatedByUserID int,
@CultureCode nvarchar(50)
AS
BEGIN
DECLARE @TabId int
DECLARE @TabOrder INT
SELECT @TabOrder = TabOrder FROM dbo.Tabs WHERE TabID = @BeforeTabID
-- Update TabOrders for all Tabs higher than @TabOrder
UPDATE dbo.Tabs
SET TabOrder = TabOrder + 2
WHERE (ParentId = @ParentId OR (ParentId IS NULL AND @ParentID IS NULL))
AND TabOrder >= @TabOrder
-- Create Tab
EXECUTE @TabId = dbo.AddTab
@ContentItemID,
@PortalID,
@TabOrder,
@UniqueId,
@VersionGuid,
@DefaultLanguageGuid,
@LocalizedVersionGuid,
@TabName,
@IsVisible,
@DisableLink,
@ParentId,
@IconFile,
@IconFileLarge,
@Title,
@Description,
@KeyWords,
@Url,
@SkinSrc,
@ContainerSrc,
@StartDate,
@EndDate,
@RefreshInterval,
@PageHeadText,
@IsSecure,
@PermanentRedirect,
@SiteMapPriority,
@CreatedByUserID,
@CultureCode;
-- Update Content Item
UPDATE dbo.ContentItems
SET TabID = @TabId
WHERE ContentItemID = @ContentItemID
SELECT @TabId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDesktopModules]
AS
SELECT *
FROM dbo.vw_DesktopModules
ORDER BY FriendlyName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_DeleteNotification' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_DeleteNotification]
@NotificationID int
AS
BEGIN
DELETE
FROM dbo.[CoreMessaging_Messages]
WHERE [MessageID] = @NotificationID AND [NotificationTypeID] IS NOT NULL
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog3' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog3
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select dbo.Users.FirstName + ' ' + dbo.Users.LastName AS 'Name',
count(*) AS 'Requests',
max(DateTime) AS 'LastRequest'
from dbo.SiteLog
inner join dbo.Users on dbo.SiteLog.UserId = dbo.Users.UserId
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
and dbo.SiteLog.UserId is not null
group by dbo.Users.FirstName + ' ' + dbo.Users.LastName
order by Requests desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeletePortalGroup]
@PortalGroupID int
AS
BEGIN
DELETE FROM dbo.PortalGroups
WHERE PortalGroupID = @PortalGroupID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderMappingsSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderMappingsSettings]
@FolderMappingID int
AS
BEGIN
SELECT SettingName, SettingValue
FROM dbo.[FolderMappingsSettings]
WHERE FolderMappingID = @FolderMappingID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModules]
@PortalID int
AS
SELECT *
FROM dbo.vw_Modules
WHERE PortalId = @PortalID
ORDER BY ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSearchItemWord]
@SearchItemID INT,
@SearchWordsID INT,
@Occurrences INT
AS
DECLARE @ID INT
SELECT @id = SearchItemWordId
FROM dbo.SearchItemWord
WHERE SearchItemId = @SearchItemID
AND SearchWordsId = @SearchWordsID
IF @ID IS NULL
BEGIN
INSERT INTO dbo.SearchItemWord
([SearchItemId],
[SearchWordsId],
[Occurrences])
VALUES (@SearchItemID,
@SearchWordsID,
@Occurrences)
SELECT Scope_identity()
END
ELSE
BEGIN
UPDATE dbo.SearchItemWord
SET Occurrences = @Occurrences
WHERE SearchItemWordId = @id
AND Occurrences <> @Occurrences
SELECT @id
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabToEnd' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTabToEnd]
@ContentItemID int,
@PortalID int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@TabName nvarchar(50),
@IsVisible bit,
@DisableLink bit,
@ParentId int,
@IconFile nvarchar(100),
@IconFileLarge nvarchar(100),
@Title nvarchar(200),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@Url nvarchar(255),
@SkinSrc nvarchar(200),
@ContainerSrc nvarchar(200),
@StartDate datetime,
@EndDate datetime,
@RefreshInterval int,
@PageHeadText nvarchar(500),
@IsSecure bit,
@PermanentRedirect bit,
@SiteMapPriority float,
@CreatedByUserID int,
@CultureCode nvarchar(50)
AS
BEGIN
DECLARE @TabId int
DECLARE @TabOrder int
SET @TabOrder = (SELECT MAX(TabOrder) FROM dbo.Tabs WHERE (ParentId = @ParentId OR (ParentId IS NULL AND @ParentID IS NULL)))
IF @TabOrder IS NULL
SET @TabOrder = 1
ELSE
SET @TabOrder = @TabOrder + 2
-- Create Tab
EXECUTE @TabId = dbo.AddTab
@ContentItemID,
@PortalID,
@TabOrder,
@UniqueId,
@VersionGuid,
@DefaultLanguageGuid,
@LocalizedVersionGuid,
@TabName,
@IsVisible,
@DisableLink,
@ParentId,
@IconFile,
@IconFileLarge,
@Title,
@Description,
@KeyWords,
@Url,
@SkinSrc,
@ContainerSrc,
@StartDate,
@EndDate,
@RefreshInterval,
@PageHeadText,
@IsSecure,
@PermanentRedirect,
@SiteMapPriority,
@CreatedByUserID,
@CultureCode;
-- Update Content Item
UPDATE dbo.ContentItems
SET TabID = @TabId
WHERE ContentItemID = @ContentItemID
SELECT @TabId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_CountNotifications' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_CountNotifications]
@UserID int,
@PortalID INT
AS
BEGIN
-- Return total notifications for user
SELECT COUNT(*) AS TotalNotifications
FROM dbo.[CoreMessaging_MessageRecipients] MR
JOIN dbo.[CoreMessaging_Messages] M ON MR.MessageID = M.MessageID
WHERE M.NotificationTypeId IS NOT NULL
AND M.PortalID=@PortalID
AND MR.UserID = @UserID
AND (M.ExpirationDate IS NULL OR (M.ExpirationDate IS NOT NULL AND M.ExpirationDate > GETDATE())) -- Do not return expired notifications
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalGroups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortalGroups]
AS
SELECT * FROM dbo.PortalGroups
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddTabPermission
@TabID int,
@PermissionID int,
@RoleID int,
@AllowAccess bit,
@UserID int,
@CreatedByUserID int
AS
INSERT INTO dbo.TabPermission (
[TabID],
[PermissionID],
[RoleID],
[AllowAccess],
[UserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@TabID,
@PermissionID,
@RoleID,
@AllowAccess,
@UserID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabByUniqueID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabByUniqueID]
@UniqueID uniqueidentifier
AS
SELECT *
FROM dbo.vw_Tabs
WHERE UniqueID = @UniqueID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog6' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog6
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select datepart(hour,DateTime) AS 'Hour',
count(*) AS 'Views',
count(distinct dbo.SiteLog.UserHostAddress) AS 'Visitors',
count(distinct dbo.SiteLog.UserId) AS 'Users'
from dbo.SiteLog
where PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
group by datepart(hour,DateTime)
order by Hour
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalSettings' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortalSettings]
@PortalID int,
@CultureCode nvarchar(50)
AS
SELECT
SettingName,
CASE WHEN LEFT(LOWER(dbo.PortalSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.PortalSettings.SettingValue
)
ELSE
dbo.PortalSettings.SettingValue
END
AS SettingValue,
dbo.PortalSettings.CreatedByUserID,
dbo.PortalSettings.CreatedOnDate,
dbo.PortalSettings.LastModifiedByUserID,
dbo.PortalSettings.LastModifiedOnDate,
dbo.PortalSettings.CultureCode
FROM dbo.PortalSettings
WHERE PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateUserProfileProperty' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROC dbo.[UpdateUserProfileProperty]
@ProfileID int,
@UserID int,
@PropertyDefinitionID int,
@PropertyValue ntext,
@Visibility int,
@ExtendedVisibility varchar(400),
@LastUpdatedDate datetime
AS
IF @ProfileID IS NULL OR @ProfileID = -1
-- Try the UserID/PropertyDefinitionID to see if the Profile property exists
SELECT @ProfileID = ProfileID
FROM dbo.UserProfile
WHERE UserID = @UserID AND PropertyDefinitionID = @PropertyDefinitionID
IF @ProfileID IS NOT NULL
-- Update Property
BEGIN
UPDATE dbo.UserProfile
SET PropertyValue = case when (DATALENGTH(@PropertyValue) > 7500) then NULL else @PropertyValue end,
PropertyText = case when (DATALENGTH(@PropertyValue) > 7500) then @PropertyValue else NULL end,
Visibility = @Visibility,
ExtendedVisibility = @ExtendedVisibility,
LastUpdatedDate = @LastUpdatedDate
WHERE ProfileID = @ProfileID
SELECT @ProfileID
END
ELSE
-- Insert New Property
BEGIN
INSERT INTO dbo.UserProfile (
UserID,
PropertyDefinitionID,
PropertyValue,
PropertyText,
Visibility,
ExtendedVisibility,
LastUpdatedDate
)
VALUES (
@UserID,
@PropertyDefinitionID,
case when (DATALENGTH(@PropertyValue) > 7500) then NULL else @PropertyValue end,
case when (DATALENGTH(@PropertyValue) > 7500) then @PropertyValue else NULL end,
@Visibility,
@ExtendedVisibility,
@LastUpdatedDate
)
SELECT SCOPE_IDENTITY()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalGroup' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePortalGroup]
@PortalGroupID int,
@PortalGroupName nvarchar(100),
@PortalGroupDescription nvarchar(2000),
@AuthenticationDomain nvarchar(200),
@LastModifiedByUserID int
AS
BEGIN
UPDATE dbo.PortalGroups
SET
PortalGroupName = @PortalGroupName,
PortalGroupDescription = @PortalGroupDescription,
AuthenticationDomain = @AuthenticationDomain,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE PortalGroupID = @PortalGroupID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderMappingsSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderMappingsSetting]
@FolderMappingID int,
@SettingName nvarchar(50)
AS
BEGIN
SELECT *
FROM dbo.[FolderMappingsSettings]
WHERE FolderMappingID = @FolderMappingID AND SettingName = @SettingName
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetListEntry' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetListEntry]
@ListName nvarchar(50),
@Value nvarchar(200),
@EntryID int
AS
SELECT *
FROM dbo.vw_Lists
WHERE ([ListName] = @ListName OR @ListName='')
AND ([EntryID]=@EntryID OR @EntryID = -1)
AND ([Value]=@Value OR @Value = '')
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddFile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddFile]
@PortalId int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@FileName nvarchar(246),
@Extension nvarchar(100),
@Size int,
@Width int,
@Height int,
@ContentType nvarchar(200),
@Folder nvarchar(246),
@FolderID int,
@CreatedByUserID int,
@Hash varchar(40),
@LastModificationTime DATETIME
AS
BEGIN
DECLARE @FileID int
UPDATE dbo.Files
SET
/* retrieves FileId from table */
@FileID = FileId,
FileName = @FileName,
VersionGuid = @VersionGuid,
Extension = @Extension,
Size = @Size,
Width = @Width,
Height = @Height,
ContentType = @ContentType,
Folder = @Folder,
FolderID = @FolderID,
LastModifiedByUserID = @CreatedByUserID,
LastModifiedOnDate = getdate(),
SHA1Hash = @Hash,
LastModificationTime = @LastModificationTime
WHERE
FolderID = @FolderID AND FileName = @FileName
IF @@ROWCOUNT = 0
BEGIN
INSERT INTO dbo.Files (
PortalId,
UniqueId,
VersionGuid,
FileName,
Extension,
Size,
Width,
Height,
ContentType,
Folder,
FolderID,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate,
SHA1Hash,
LastModificationTime
)
VALUES (
@PortalId,
@UniqueId,
@VersionGuid,
@FileName,
@Extension,
@Size,
@Width,
@Height,
@ContentType,
@Folder,
@FolderID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate(),
@Hash,
@LastModificationTime
)
SELECT @FileID = SCOPE_IDENTITY()
END
SELECT @FileID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDesktopModulesByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDesktopModulesByPortal]
@PortalId int
AS
SELECT DISTINCT DM.*
FROM dbo.vw_DesktopModules DM
WHERE ( IsPremium = 0 )
OR ( DesktopModuleID IN (
SELECT DesktopModuleID
FROM dbo.PortalDesktopModules PDM
WHERE PDM.PortalId = @PortalId ) )
ORDER BY FriendlyName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROC dbo.[GetUserProfile]
@UserID int
AS
SELECT
ProfileID,
UserID,
PropertyDefinitionID,
CASE WHEN (PropertyValue Is Null) THEN PropertyText ELSE PropertyValue END AS 'PropertyValue',
Visibility,
ExtendedVisibility,
LastUpdatedDate
FROM dbo.UserProfile
WHERE UserId = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateTabPermission
@TabPermissionID int,
@TabID int,
@PermissionID int,
@RoleID int ,
@AllowAccess bit,
@UserID int,
@LastModifiedByUserID int
AS
UPDATE dbo.TabPermission
SET
[TabID] = @TabID,
[PermissionID] = @PermissionID,
[RoleID] = @RoleID,
[AllowAccess] = @AllowAccess,
[UserID] = @UserID,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE [TabPermissionID] = @TabPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllModules]
AS
SELECT *
FROM dbo.vw_Modules
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateFile
@FileId int,
@VersionGuid uniqueidentifier,
@FileName nvarchar(246),
@Extension nvarchar(100),
@Size int,
@Width int,
@Height int,
@ContentType nvarchar(200),
@Folder nvarchar(246),
@FolderID int,
@LastModifiedByUserID int,
@Hash varchar(40),
@LastModificationTime DATETIME
AS
UPDATE dbo.Files
SET FileName = @FileName,
VersionGuid = @VersionGuid,
Extension = @Extension,
Size = @Size,
Width = @Width,
Height = @Height,
ContentType = @ContentType,
Folder = @Folder,
FolderID = @FolderID,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate(),
SHA1Hash = @Hash,
LastModificationTime = @LastModificationTime
WHERE FileId = @FileId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDesktopModulePermissionsByPortalDesktopModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDesktopModulePermissionsByPortalDesktopModuleID]
@PortalDesktopModuleID int
AS
SELECT *
FROM dbo.vw_DesktopModulePermissions
WHERE PortalDesktopModuleID = @PortalDesktopModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabsByModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabsByModuleID]
@ModuleID int
AS
BEGIN
SELECT * FROM dbo.vw_Tabs VT
INNER JOIN dbo.TabModules TM
ON VT.TabID=TM.TabID
WHERE TM.ModuleID = @ModuleID
AND TM.IsDeleted = 0
AND VT.IsDeleted = 0
ORDER BY VT.Level, VT.ParentID, VT.TabOrder
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'ContentTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[ContentTypes]
(
[ContentTypeID] [int] NOT NULL IDENTITY(1, 1),
[ContentType] [nvarchar] (100) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'ContentTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[ContentTypes] ADD CONSTRAINT [PK_ContentTypes] PRIMARY KEY CLUSTERED ([ContentTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddContentType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddContentType]
@ContentType nvarchar(250)
AS
INSERT INTO dbo.ContentTypes (
ContentType
)
VALUES (
@ContentType
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFiles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetFiles
@FolderID int
AS
BEGIN
SELECT
FileId,
FO.PortalId,
[FileName],
Extension,
Size,
Width,
Height,
ContentType,
F.FolderID,
FolderPath AS 'Folder',
StorageLocation,
IsCached,
FolderMappingID,
LastModificationTime
FROM dbo.[Files] F
INNER JOIN dbo.[Folders] FO ON F.FolderID = FO.FolderID
WHERE F.FolderID = @FolderID
ORDER BY [FileName]
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Taxonomy_Vocabularies' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Taxonomy_Vocabularies]
(
[VocabularyID] [int] NOT NULL IDENTITY(1, 1),
[VocabularyTypeID] [int] NOT NULL,
[Name] [nvarchar] (250) NOT NULL,
[Description] [nvarchar] (2500) NULL,
[Weight] [int] NOT NULL CONSTRAINT [DF_Taxonomy_Vocabularies_Weight] DEFAULT ((0)),
[ScopeID] [int] NULL,
[ScopeTypeID] [int] NOT NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[IsSystem] [bit] NOT NULL CONSTRAINT [DF_Taxonomy_Vocabularies_IsSystem] DEFAULT ((0))
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Taxonomy_Vocabularies' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Taxonomy_Vocabularies] ADD CONSTRAINT [PK_Taxonomy_Vocabulary] PRIMARY KEY CLUSTERED ([VocabularyID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddVocabulary' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddVocabulary]
@VocabularyTypeID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@ScopeID int,
@ScopeTypeID int,
@CreatedByUserID int
AS
INSERT INTO dbo.Taxonomy_Vocabularies (
VocabularyTypeID,
[Name],
Description,
Weight,
ScopeID,
ScopeTypeID,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@VocabularyTypeID,
@Name,
@Description,
@Weight,
@ScopeID,
@ScopeTypeID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalInfo' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePortalInfo]
@PortalID int,
@PortalGroupID int,
@PortalName nvarchar(128),
@LogoFile nvarchar(50),
@FooterText nvarchar(100),
@ExpiryDate datetime,
@UserRegistration int,
@BannerAdvertising int,
@Currency char(3),
@AdministratorId int,
@HostFee money,
@HostSpace int,
@PageQuota int,
@UserQuota int,
@PaymentProcessor nvarchar(50),
@ProcessorUserId nvarchar(50),
@ProcessorPassword nvarchar(50),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@BackgroundFile nvarchar(50),
@SiteLogHistory int,
@SplashTabId int,
@HomeTabId int,
@LoginTabId int,
@RegisterTabId int,
@UserTabId int,
@SearchTabId int,
@DefaultLanguage nvarchar(10),
@HomeDirectory varchar(100),
@LastModifiedByUserID int,
@CultureCode nvarchar(50)
AS
UPDATE dbo.Portals
SET
PortalGroupID = @PortalGroupID,
ExpiryDate = @ExpiryDate,
UserRegistration = @UserRegistration,
BannerAdvertising = @BannerAdvertising,
Currency = @Currency,
AdministratorId = @AdministratorId,
HostFee = @HostFee,
HostSpace = @HostSpace,
PageQuota = @PageQuota,
UserQuota = @UserQuota,
PaymentProcessor = @PaymentProcessor,
ProcessorUserId = @ProcessorUserId,
ProcessorPassword = @ProcessorPassword,
SiteLogHistory = @SiteLogHistory,
DefaultLanguage = @DefaultLanguage,
HomeDirectory = @HomeDirectory,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE PortalId = @PortalID
IF EXISTS (SELECT * FROM dbo.PortalLocalization WHERE PortalId = @PortalID AND CultureCode = @CultureCode)
BEGIN
UPDATE dbo.PortalLocalization
SET
PortalName = @PortalName,
LogoFile = @LogoFile,
FooterText = @FooterText,
Description = @Description,
KeyWords = @KeyWords,
BackgroundFile = @BackgroundFile,
HomeTabId = @HomeTabId,
LoginTabId = @LoginTabId,
RegisterTabId = @RegisterTabId,
UserTabId = @UserTabId,
SplashTabId = @SplashTabId,
SearchTabId = @SearchTabId,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE PortalId = @PortalID
AND CultureCode = @CultureCode
END
ELSE
BEGIN
DECLARE @AdminTabId int
SET @AdminTabId = (SELECT AdminTabId
FROM dbo.PortalLocalization
WHERE PortalID = @PortalID AND CultureCode='en-US')
INSERT INTO dbo.PortalLocalization (
[PortalID],
[CultureCode],
[PortalName],
[LogoFile],
[FooterText],
[Description],
[KeyWords],
[BackgroundFile],
[HomeTabId],
[LoginTabId],
[UserTabId],
[AdminTabId],
[SplashTabId],
[SearchTabId],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalID,
@CultureCode,
@PortalName,
@LogoFile,
@FooterText,
@Description,
@KeyWords,
@BackgroundFile,
@HomeTabId ,
@LoginTabId ,
@UserTabId,
@AdminTabid,
@SplashTabId ,
@SearchTabId,
-1,
getdate(),
-1,
getdate()
)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteVendor' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteVendor
@VendorId int
as
delete
from dbo.Vendors
where VendorId = @VendorId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PurgeEventLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.PurgeEventLog
AS
;WITH logcounts AS
(
SELECT
LogEventID,
LogConfigID,
ROW_NUMBER() OVER(PARTITION BY LogConfigID ORDER BY LogCreateDate DESC) AS logEventSequence
FROM dbo.EventLog
)
DELETE dbo.EventLog
FROM dbo.EventLog el
JOIN logcounts lc ON el.LogEventID = lc.LogEventID
INNER JOIN dbo.EventLogConfig elc ON elc.ID = lc.LogConfigID
WHERE elc.KeepMostRecent <> -1
AND lc.logEventSequence > elc.KeepMostRecent
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleByDefinition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleByDefinition]
@PortalId int,
@FriendlyName nvarchar(128)
AS
SELECT M.*
FROM dbo.vw_Modules M
INNER JOIN dbo.ModuleDefinitions as MD ON M.ModuleDefID = MD.ModuleDefID
INNER JOIN dbo.Tabs as T ON M.TabID = T.TabID
WHERE ((M.PortalId = @PortalId) or (M.PortalId is null and @PortalID is null))
AND MD.FriendlyName = @FriendlyName
AND M.IsDeleted = 0
AND T.IsDeleted = 0
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLogType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetEventLogType
AS
SELECT *
FROM dbo.EventLogTypes
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetFile
@FileName nvarchar(246),
@FolderID int
AS
BEGIN
SELECT FileId,
folders.PortalId,
[FileName],
Extension,
Size,
Width,
Height,
ContentType,
files.FolderID,
FolderPath AS 'Folder',
StorageLocation,
IsCached,
files.UniqueId,
files.VersionGuid,
files.SHA1Hash,
FolderMappingID,
LastModificationTime
FROM dbo.[Files] AS files
INNER JOIN dbo.[Folders] AS folders ON files.FolderID = folders.FolderID
WHERE [FileName] = @FileName AND files.FolderID = @FolderID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFolder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateFolder]
@PortalID int,
@VersionGuid uniqueidentifier,
@FolderID int,
@FolderPath nvarchar(300),
@StorageLocation int,
@IsProtected bit,
@IsCached bit,
@LastUpdated datetime,
@LastModifiedByUserID int,
@FolderMappingID int
AS
BEGIN
UPDATE dbo.[Folders]
SET
FolderPath = @FolderPath,
VersionGuid = @VersionGuid,
StorageLocation = @StorageLocation,
IsProtected = @IsProtected,
IsCached = @IsCached,
LastUpdated = @LastUpdated,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate(),
FolderMappingID = @FolderMappingID
WHERE FolderID = @FolderID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateUser]
@UserID int,
@PortalID int,
@FirstName nvarchar(50),
@LastName nvarchar(50),
@IsSuperUser bit,
@Email nvarchar(256),
@DisplayName nvarchar(100),
@UpdatePassword bit,
@Authorised bit,
@RefreshRoles bit,
@LastIPAddress nvarchar(50),
@IsDeleted bit,
@LastModifiedByUserID int
AS
UPDATE dbo.Users
SET
FirstName = @FirstName,
LastName = @LastName,
IsSuperUser = @IsSuperUser,
Email = @Email,
DisplayName = @DisplayName,
UpdatePassword = @UpdatePassword,
LastIPAddress = @LastIPAddress,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE UserId = @UserID
IF @PortalID IS NULL
BEGIN
UPDATE dbo.Users
SET
IsDeleted = @IsDeleted
WHERE UserId = @UserID
END
ELSE
BEGIN
UPDATE dbo.UserPortals
SET
Authorised = @Authorised,
RefreshRoles = @RefreshRoles,
IsDeleted = @IsDeleted
WHERE UserId = @UserID
AND PortalId = @PortalID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateListEntry' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[UpdateListEntry]
@EntryID int,
@Value nvarchar(100),
@Text nvarchar(150),
@Description nvarchar(500),
@LastModifiedByUserID int
AS
UPDATE dbo.Lists
SET
[Value] = @Value,
[Text] = @Text,
[Description] = @Description,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE [EntryID] = @EntryID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabModule]
@TabModuleID int
AS
SELECT *
FROM dbo.vw_TabModules
WHERE TabModuleID = @TabModuleID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog5' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog5
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select
case
when dbo.SiteLog.UserAgent like '%MSIE 1%' then 'Internet Explorer 1'
when dbo.SiteLog.UserAgent like '%MSIE 2%' then 'Internet Explorer 2'
when dbo.SiteLog.UserAgent like '%MSIE 3%' then 'Internet Explorer 3'
when dbo.SiteLog.UserAgent like '%MSIE 4%' then 'Internet Explorer 4'
when dbo.SiteLog.UserAgent like '%MSIE 5%' then 'Internet Explorer 5'
when dbo.SiteLog.UserAgent like '%MSIE 6%' then 'Internet Explorer 6'
when dbo.SiteLog.UserAgent like '%MSIE%' then 'Internet Explorer'
when dbo.SiteLog.UserAgent like '%Mozilla/1%' then 'Netscape Navigator 1'
when dbo.SiteLog.UserAgent like '%Mozilla/2%' then 'Netscape Navigator 2'
when dbo.SiteLog.UserAgent like '%Mozilla/3%' then 'Netscape Navigator 3'
when dbo.SiteLog.UserAgent like '%Mozilla/4%' then 'Netscape Navigator 4'
when dbo.SiteLog.UserAgent like '%Mozilla/5%' then 'Netscape Navigator 6+'
else dbo.SiteLog.UserAgent
end AS 'UserAgent',
count(*) AS 'Requests',
max(DateTime) AS 'LastRequest'
from dbo.SiteLog
where PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
group by case
when dbo.SiteLog.UserAgent like '%MSIE 1%' then 'Internet Explorer 1'
when dbo.SiteLog.UserAgent like '%MSIE 2%' then 'Internet Explorer 2'
when dbo.SiteLog.UserAgent like '%MSIE 3%' then 'Internet Explorer 3'
when dbo.SiteLog.UserAgent like '%MSIE 4%' then 'Internet Explorer 4'
when dbo.SiteLog.UserAgent like '%MSIE 5%' then 'Internet Explorer 5'
when dbo.SiteLog.UserAgent like '%MSIE 6%' then 'Internet Explorer 6'
when dbo.SiteLog.UserAgent like '%MSIE%' then 'Internet Explorer'
when dbo.SiteLog.UserAgent like '%Mozilla/1%' then 'Netscape Navigator 1'
when dbo.SiteLog.UserAgent like '%Mozilla/2%' then 'Netscape Navigator 2'
when dbo.SiteLog.UserAgent like '%Mozilla/3%' then 'Netscape Navigator 3'
when dbo.SiteLog.UserAgent like '%Mozilla/4%' then 'Netscape Navigator 4'
when dbo.SiteLog.UserAgent like '%Mozilla/5%' then 'Netscape Navigator 6+'
else dbo.SiteLog.UserAgent
end
order by Requests desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFileById' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFileById]
@FileId int
AS
BEGIN
SELECT FileId,
folders.PortalId,
[FileName],
Extension,
Size,
Width,
Height,
ContentType,
files.FolderID,
FolderPath AS 'Folder',
StorageLocation,
IsCached,
SHA1Hash,
FolderMappingID,
LastModificationTime
FROM dbo.[Files] AS files
INNER JOIN dbo.[Folders] AS folders ON files.FolderID = folders.FolderID
WHERE FileId = @FileId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolders' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolders]
@PortalID int
AS
BEGIN
SELECT *
FROM dbo.Folders
WHERE (PortalID = @PortalID) OR (PortalID is null AND @PortalID is null)
ORDER BY FolderPath
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSiteLog2' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetSiteLog2
@PortalID int,
@PortalAlias nvarchar(50),
@StartDate datetime,
@EndDate datetime
as
select dbo.SiteLog.DateTime,
case
when dbo.SiteLog.UserId is null then null
else dbo.Users.FirstName + ' ' + Users.LastName
end AS 'Name',
case
when dbo.SiteLog.Referrer like '%' + @PortalAlias + '%' then null
else dbo.SiteLog.Referrer
end AS 'Referrer',
case
when dbo.SiteLog.UserAgent like '%MSIE 1%' then 'Internet Explorer 1'
when dbo.SiteLog.UserAgent like '%MSIE 2%' then 'Internet Explorer 2'
when dbo.SiteLog.UserAgent like '%MSIE 3%' then 'Internet Explorer 3'
when dbo.SiteLog.UserAgent like '%MSIE 4%' then 'Internet Explorer 4'
when dbo.SiteLog.UserAgent like '%MSIE 5%' then 'Internet Explorer 5'
when dbo.SiteLog.UserAgent like '%MSIE 6%' then 'Internet Explorer 6'
when dbo.SiteLog.UserAgent like '%MSIE%' then 'Internet Explorer'
when dbo.SiteLog.UserAgent like '%Mozilla/1%' then 'Netscape Navigator 1'
when dbo.SiteLog.UserAgent like '%Mozilla/2%' then 'Netscape Navigator 2'
when dbo.SiteLog.UserAgent like '%Mozilla/3%' then 'Netscape Navigator 3'
when dbo.SiteLog.UserAgent like '%Mozilla/4%' then 'Netscape Navigator 4'
when dbo.SiteLog.UserAgent like '%Mozilla/5%' then 'Netscape Navigator 6+'
else dbo.SiteLog.UserAgent
end 'UserAgent',
dbo.SiteLog.UserHostAddress,
dbo.Tabs.TabName
from dbo.SiteLog
left outer join dbo.Users on dbo.SiteLog.UserId = dbo.Users.UserId
left outer join dbo.Tabs on dbo.SiteLog.TabId = dbo.Tabs.TabId
where dbo.SiteLog.PortalId = @PortalID
and dbo.SiteLog.DateTime between @StartDate and @EndDate
order by dbo.SiteLog.DateTime desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllUsers' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllUsers]
@PortalID int,
@PageIndex int,
@PageSize INT,
@IncludeDeleted bit,
@SuperUsersOnly bit
AS
BEGIN
-- Set the page bounds
DECLARE
@PageLowerBound INT,
@PageUpperBound INT,
@RowsToReturn int
exec dbo.CalculatePagingInformation @PageIndex, @PageSize, @RowsToReturn output, @PageLowerBound output, @PageUpperBound output
if @PortalID is null
begin
with [tmpUsers] as (
select U.*, row_number() over (order by U.UserName) AS rowid
FROM dbo.vw_Users u
WHERE U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select * from [tmpUsers]
where rowid > @PageLowerBound and rowid < @PageUpperBound
order by rowid
end
else
begin
with [tmpUsers] as (
select U.*, row_number() over (order by U.UserName) AS rowid
FROM dbo.vw_Users u
WHERE U.PortalID = @PortalID AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select * from [tmpUsers]
where rowid > @PageLowerBound and rowid < @PageUpperBound
order by rowid
end
set rowcount 0
if @PortalId is null
begin
SELECT COUNT(*) as TotalRecords
FROM dbo.Users as U
WHERE U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
AND NOT EXISTS (
select 1 from dbo.UserPortals UP where U.UserId = UP.UserId
)
end
else
begin
SELECT COUNT(*) as TotalRecords
FROM dbo.Users U
INNER JOIN dbo.UserPortals UP ON U.UserId = UP.UserId
WHERE UP.PortalId = @PortalId
AND UP.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
end
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePortalSetting]
@PortalID int,
@SettingName nvarchar(50),
@SettingValue nvarchar(2000),
@UserID int,
@CultureCode nvarchar(50)
AS
IF (SELECT COUNT(*) FROM dbo.PortalSettings WHERE PortalID = @PortalID AND SettingName = @SettingName) > 0
--Update
UPDATE dbo.PortalSettings
SET SettingValue = @SettingValue,
[LastModifiedByUserID]=@UserID,
[LastModifiedOnDate]=getdate()
WHERE PortalID = @PortalID
AND SettingName = @SettingName
ELSE
--Add
INSERT INTO dbo.PortalSettings ( PortalID, SettingName, SettingValue, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate,CultureCode )
VALUES ( @PortalID, @SettingName, @SettingValue ,@UserID ,getdate() ,@UserID ,getdate(),@CultureCode)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteContentType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteContentType]
@ContentTypeId int
AS
DELETE FROM dbo.ContentTypes
WHERE ContentTypeId = @ContentTypeId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'CoreMessaging_GetMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[CoreMessaging_GetMessage]
@MessageID INT
AS
SELECT [MessageID], [PortalId], [To], [From], [Subject], [Body], [ConversationID], [ReplyAllAllowed], [SenderUserID], [CreatedByUserID], [CreatedOnDate], [LastModifiedByUserID], [LastModifiedOnDate]
FROM dbo.[CoreMessaging_Messages]
WHERE [MessageID] = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteVocabulary' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteVocabulary]
@VocabularyID int
AS
DELETE FROM dbo.Taxonomy_Vocabularies
WHERE VocabularyID = @VocabularyID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersByEmail' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersByEmail]
@PortalID int,
@EmailToMatch nvarchar(256),
@PageIndex int,
@PageSize INT,
@IncludeDeleted bit,
@SuperUsersOnly bit
AS
BEGIN
-- Set the page bounds
DECLARE
@PageLowerBound INT,
@PageUpperBound INT,
@RowsToReturn int,
@TotalRecords int
exec dbo.CalculatePagingInformation @PageIndex, @PageSize, @RowsToReturn output, @PageLowerBound output, @PageUpperBound output
declare @tblPageIndex table (
IndexId int IDENTITY (0, 1) NOT NULL primary key,
UserId int
)
if @PortalId is null and @EmailToMatch IS NULL
begin
with [UsersByEmail] as (
SELECT U.*, ROW_NUMBER() OVER (ORDER BY Email ASC) AS ROWID
FROM dbo.vw_Users U
WHERE U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select *, ROWID - 1 AS IndexID, UserID
from [UsersByEmail]
where ROWID > @PageLowerBound AND ROWID < @PageUpperBound
end
else if @PortalId is null and @EmailToMatch IS NOT NULL
begin
with [UsersByEmail] as (
SELECT U.*, ROW_NUMBER() OVER (ORDER BY Email ASC) AS ROWID
FROM dbo.vw_Users U
WHERE LOWER(U.Email) LIKE LOWER(@EmailToMatch)
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select *, ROWID - 1 AS IndexID, UserID
from [UsersByEmail]
where ROWID > @PageLowerBound AND ROWID < @PageUpperBound
end
else if @EmailToMatch IS NULL
begin
with [UsersByEmail] as (
SELECT U.*, ROW_NUMBER() OVER (ORDER BY Email ASC) AS ROWID
FROM dbo.vw_Users U
WHERE U.PortalId = @PortalID
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select *, ROWID - 1 AS IndexID, UserID
from [UsersByEmail]
where ROWID > @PageLowerBound AND ROWID < @PageUpperBound
end
else
begin
with [UsersByEmail] as (
SELECT U.*, ROW_NUMBER() OVER (ORDER BY Email ASC) AS ROWID
FROM dbo.vw_Users U
WHERE U.PortalId = @PortalID
AND LOWER(U.Email) LIKE LOWER(@EmailToMatch)
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
)
select *, ROWID - 1 AS IndexID, UserID
from [UsersByEmail]
where ROWID > @PageLowerBound AND ROWID < @PageUpperBound
end
if @PortalId is null and @EmailToMatch IS NULL
begin
SELECT count(*) as TotalRecords
FROM dbo.vw_Users U
WHERE U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
end
else if @PortalId is null and @EmailToMatch IS NOT NULL
begin
SELECT count(*) as TotalRecords
FROM dbo.vw_Users U
WHERE LOWER(U.Email) LIKE LOWER(@EmailToMatch)
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
end
else if @EmailToMatch IS NULL
begin
SELECT count(*) as TotalRecords
FROM dbo.vw_Users U
WHERE U.PortalId = @PortalID
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
end
else
begin
SELECT count(*) as TotalRecords
FROM dbo.vw_Users U
WHERE U.PortalId = @PortalID
AND LOWER(U.Email) LIKE LOWER(@EmailToMatch)
AND U.IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
AND U.IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
end
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUrls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetUrls
@PortalID int
as
select *
from dbo.Urls
where PortalID = @PortalID
order by Url
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSearchItemWordPosition
@SearchItemWordPositionID int
AS
DELETE FROM dbo.SearchItemWordPosition
WHERE
[SearchItemWordPositionID] = @SearchItemWordPositionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFolderPermissionsByFolderPath' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteFolderPermissionsByFolderPath
@PortalID int,
@FolderPath nvarchar(300)
AS
DECLARE @FolderID int
SELECT @FolderID = FolderID FROM dbo.Folders
WHERE FolderPath = @FolderPath
AND ((PortalID = @PortalID) or (PortalID is null and @PortalID is null))
DELETE FROM dbo.FolderPermission
WHERE
[FolderID] = @FolderID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersByUserName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersByUserName]
@PortalID int,
@UserNameToMatch nvarchar(256),
@PageIndex int,
@PageSize INT,
@IncludeDeleted bit,
@SuperUsersOnly bit
AS
BEGIN
-- Set the page bounds
DECLARE @PageLowerBound INT
DECLARE @PageUpperBound INT
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageSize - 1 + @PageLowerBound
-- Create a temp table TO store the select results
CREATE TABLE #PageIndexForUsers
(
IndexId int IDENTITY (0, 1) NOT NULL,
UserId int
)
-- Insert into our temp table
INSERT INTO #PageIndexForUsers (UserId)
SELECT UserId FROM dbo.vw_Users
WHERE Username LIKE @UserNameToMatch
AND (IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
OR IsDeleted Is NULL)
AND IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
AND ( PortalId = @PortalID OR (@PortalID is null ))
ORDER BY UserName
SELECT *
FROM dbo.vw_Users u,
#PageIndexForUsers p
WHERE u.UserId = p.UserId
AND (IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
OR IsDeleted Is NULL)
AND IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
AND ( PortalId = @PortalID OR (@PortalID is null ))
AND p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
ORDER BY u.UserName
SELECT TotalRecords = COUNT(*)
FROM #PageIndexForUsers
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'InsertPortalLocalization' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[InsertPortalLocalization]
@PortalID int,
@CultureCode nvarchar(10),
@PortalName nvarchar(128),
@LogoFile nvarchar(50),
@FooterText nvarchar(100),
@Description nvarchar(500),
@KeyWords nvarchar(500),
@BackgroundFile nvarchar(50),
@HomeTabId int,
@LoginTabId int,
@UserTabId int,
@AdminTabid int,
@SplashTabId int,
@CreatedByUserID int
AS
INSERT INTO dbo.[PortalLocalization]
([PortalID]
,[CultureCode]
,[PortalName]
,[LogoFile]
,[FooterText]
,[Description]
,[KeyWords]
,[BackgroundFile]
,[HomeTabId]
,[LoginTabId]
,[UserTabId]
,[AdminTabId]
,[SplashTabId]
,[CreatedByUserID]
,[CreatedOnDate]
,[LastModifiedByUserID]
,[LastModifiedOnDate])
VALUES
(
@PortalID,
@CultureCode,
@PortalName,
@LogoFile,
@FooterText,
@Description,
@KeyWords,
@BackgroundFile,
@HomeTabId ,
@LoginTabId ,
@UserTabId,
@AdminTabid,
@SplashTabId ,
-1,
getdate(),
-1,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteSearchWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteSearchWord
@SearchWordsID int
AS
DELETE FROM dbo.SearchWord
WHERE
[SearchWordsID] = @SearchWordsID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleByTypeFullName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetScheduleByTypeFullName]
@TypeFullName varchar(200),
@Server varchar(150)
AS
SELECT S.*
FROM dbo.[Schedule] S
WHERE S.TypeFullName = @TypeFullName
AND (@Server IS NULL OR ISNULL(s.Servers, '') = '' OR ',' + s.Servers + ',' LIKE '%,' + @Server + ',%')
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateTabVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateTabVersion]
@TabID int,
@VersionGuid uniqueidentifier
AS
UPDATE dbo.Tabs
SET VersionGuid = @VersionGuid
WHERE TabID = @TabID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVocabularies' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetVocabularies]
AS
SELECT *
FROM dbo.Taxonomy_Vocabularies
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersByProfileProperty' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUsersByProfileProperty]
@PortalID int,
@PropertyName nvarchar(256),
@PropertyValue nvarchar(256),
@PageIndex int,
@PageSize INT,
@IncludeDeleted bit,
@SuperUsersOnly bit
AS
BEGIN
-- Set the page bounds
DECLARE @PageLowerBound INT
DECLARE @PageUpperBound INT
SET @PageLowerBound = @PageSize * @PageIndex
SET @PageUpperBound = @PageSize - 1 + @PageLowerBound
-- Create a temp table TO store the select results
CREATE TABLE #PageIndexForUsers
(
IndexId int IDENTITY (0, 1) NOT NULL,
UserId int,
DisplayName varchar(512)
)
-- Insert into our temp table
INSERT INTO #PageIndexForUsers (UserId,DisplayName)
SELECT DISTINCT U.UserId, U.DisplayName
FROM dbo.ProfilePropertyDefinition P
INNER JOIN dbo.UserProfile UP ON P.PropertyDefinitionID = UP.PropertyDefinitionID
INNER JOIN dbo.vw_Users U ON UP.UserID = U.UserID
WHERE (PropertyName = @PropertyName) AND (PropertyValue LIKE @PropertyValue OR PropertyText LIKE @PropertyValue )
AND (IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
OR IsDeleted Is NULL)
AND IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
AND (P.Portalid = @PortalID OR (@PortalID is null ))
ORDER BY U.DisplayName
SELECT *
FROM dbo.vw_Users u,
#PageIndexForUsers p
WHERE u.UserId = p.UserId
AND (IsDeleted <= CASE @IncludeDeleted WHEN 0 THEN 0 ELSE 1 END
--less than equal done to cover IsDeleted in (1,0) for IncludeDeleted...else just IsDeleted = 0
OR IsDeleted Is NULL)
AND IsSuperUser >= CASE @SuperUsersOnly WHEN 1 THEN 1 ELSE 0 END
AND ( PortalId = @PortalID OR (@PortalID is null ))
AND p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
ORDER BY U.DisplayName
SELECT TotalRecords = COUNT(*)
FROM #PageIndexForUsers
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddFolderPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddFolderPermission
@FolderID int,
@PermissionID int,
@RoleID int,
@AllowAccess bit,
@UserID int,
@CreatedByUserID int
AS
INSERT INTO dbo.FolderPermission (
[FolderID],
[PermissionID],
[RoleID],
[AllowAccess],
[UserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@FolderID,
@PermissionID,
@RoleID,
@AllowAccess,
@UserID,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
select SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentTypes]
AS
SELECT *
FROM dbo.ContentTypes
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetScheduleByEvent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetScheduleByEvent]
@EventName varchar(50),
@Server varchar(150)
AS
SELECT S.*
FROM dbo.[Schedule] S
WHERE S.AttachToEvent = @EventName
AND (@Server IS NULL OR ISNULL(s.Servers, '') = '' OR ',' + s.Servers + ',' LIKE '%,' + @Server + ',%')
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderPermissionsByFolderPath' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetFolderPermissionsByFolderPath
@PortalID int,
@FolderPath nvarchar(300),
@PermissionID int
AS
SELECT *
FROM dbo.vw_FolderPermissions
WHERE ((FolderPath = @FolderPath
AND ((PortalID = @PortalID) OR (PortalID IS NULL AND @PortalID IS NULL)))
OR (FolderPath IS NULL AND PermissionCode = 'SYSTEM_FOLDER'))
AND (PermissionID = @PermissionID OR @PermissionID = -1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddUser]
@PortalID int,
@Username nvarchar(100),
@FirstName nvarchar(50),
@LastName nvarchar(50),
@AffiliateId int,
@IsSuperUser bit,
@Email nvarchar(256),
@DisplayName nvarchar(100),
@UpdatePassword bit,
@Authorised bit,
@CreatedByUserID int
AS
DECLARE @UserID int
SELECT @UserID = UserID
FROM dbo.Users
WHERE Username = @Username
IF @UserID is null
BEGIN
INSERT INTO dbo.Users (
Username,
FirstName,
LastName,
AffiliateId,
IsSuperUser,
Email,
DisplayName,
UpdatePassword,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@Username,
@FirstName,
@LastName,
@AffiliateId,
@IsSuperUser,
@Email,
@DisplayName,
@UpdatePassword,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT @UserID = SCOPE_IDENTITY()
END
IF not exists ( SELECT 1 FROM dbo.UserPortals WHERE UserID = @UserID AND PortalID = @PortalID ) AND @PortalID > -1
BEGIN
INSERT INTO dbo.UserPortals (
UserID,
PortalID,
Authorised,
CreatedDate
)
VALUES (
@UserID,
@PortalID,
@Authorised,
getdate()
)
END
SELECT @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSystemMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateSystemMessage
@PortalID int,
@MessageName nvarchar(50),
@MessageValue ntext
as
update dbo.SystemMessages
set MessageValue = @MessageValue
where ((PortalID = @PortalID) or (PortalID is null and @PortalID is null))
and MessageName = @MessageName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUsersByPropertyName' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[GetUsersByPropertyName]
(
@PropertyName nvarchar(100),
@PropertyValue nvarchar(max),
@PortalID int
)
RETURNS TABLE
AS
RETURN
SELECT *
FROM dbo.[vw_Profile]
WHERE PropertyName = @PropertyName
AND PropertyValue LIKE @PropertyValue
AND PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateVocabulary' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateVocabulary]
@VocabularyID int,
@VocabularyTypeID int,
@Name nvarchar(250),
@Description nvarchar(2500),
@Weight int,
@ScopeID int,
@ScopeTypeID int,
@LastModifiedByUserID int
AS
UPDATE dbo.Taxonomy_Vocabularies
SET
VocabularyTypeID = @VocabularyTypeID,
[Name] = @Name,
Description = @Description,
Weight = @Weight,
ScopeID = @ScopeID,
ScopeTypeID = @ScopeTypeID,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE VocabularyId = @VocabularyId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'EnsureLocalizationExists' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[EnsureLocalizationExists]
@PortalId int,
@CultureCode nvarchar(10)
AS
IF NOT EXISTS (SELECT * FROM dbo.PortalLocalization WHERE CultureCode=@CultureCode AND Portalid=@PortalId)
BEGIN
DECLARE @PortalName nvarchar(128)
DECLARE @LogoFile nvarchar(50)
DECLARE @FooterText nvarchar(100)
DECLARE @Description nvarchar(500)
DECLARE @KeyWords nvarchar(500)
DECLARE @BackgroundFile nvarchar(50)
DECLARE @HomeTabId int
DECLARE @LoginTabId int
DECLARE @UserTabId int
DECLARE @AdminTabId int
DECLARE @RegisterTabId int
DECLARE @SearchTabId int
DECLARE @defaultlanguage nvarchar(10)
SELECT @defaultlanguage= DefaultLanguage FROM dbo.Portals WHERE Portalid=@PortalId
IF EXISTS (SELECT * FROM dbo.PortalLocalization WHERE CultureCode=@defaultlanguage AND Portalid=@PortalId)
AND EXISTS (SELECT * FROM dbo.Languages l INNER JOIN dbo.PortalLanguages pl ON l.LanguageID = pl.LanguageID WHERE pl.PortalID = @PortalID AND l.CultureCode = @CultureCode )
BEGIN
--clone the default language
SELECT
@PortalName = PortalName,
@LogoFile = LogoFile,
@FooterText = FooterText,
@Description = Description,
@KeyWords = KeyWords,
@BackgroundFile = BackgroundFile,
@HomeTabId = HomeTabId,
@LoginTabId = LoginTabId,
@UserTabId = UserTabId,
@AdminTabId = AdminTabId,
@SearchTabId = SearchTabId,
@RegisterTabId = RegisterTabId
FROM dbo.PortalLocalization WHERE CultureCode=@defaultlanguage AND Portalid=@PortalId
INSERT INTO dbo.PortalLocalization (
PortalId,
CultureCode,
PortalName,
LogoFile,
FooterText,
Description,
KeyWords,
BackgroundFile,
HomeTabId,
LoginTabId,
UserTabId,
AdminTabId,
RegisterTabId,
SearchTabId,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalId,
@CultureCode,
@PortalName,
@LogoFile,
@FooterText,
@Description,
@KeyWords,
@BackgroundFile,
@HomeTabId,
@LoginTabId,
@UserTabId,
@AdminTabId,
@RegisterTabId,
@SearchTabId,
-1,
getdate(),
-1,
getdate()
)
END
ELSE
BEGIN
IF EXISTS (select * from dbo.PortalLocalization where CultureCode='en-us' and Portalid=@PortalId)
BEGIN
--if defaultlanguage is missing clone en-us if available
SELECT
@PortalName = PortalName,
@LogoFile = LogoFile,
@FooterText = FooterText,
@Description = Description,
@KeyWords = KeyWords,
@BackgroundFile = BackgroundFile,
@HomeTabId = HomeTabId,
@LoginTabId=LoginTabId,
@UserTabId=UserTabId,
@AdminTabId=AdminTabId,
@SearchTabId=SearchTabId,
@RegisterTabId=RegisterTabId
FROM dbo.PortalLocalization where CultureCode='en-us' and Portalid=@PortalId
INSERT INTO dbo.PortalLocalization (
PortalId,
CultureCode,
PortalName,
LogoFile,
FooterText,
Description,
KeyWords,
BackgroundFile,
HomeTabId,
LoginTabId,
UserTabId,
AdminTabId,
RegisterTabId,
SearchTabId,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalId,
@CultureCode,
@PortalName,
@LogoFile,
@FooterText,
@Description,
@KeyWords,
@BackgroundFile,
@HomeTabId,
@LoginTabId,
@UserTabId,
@AdminTabId,
@RegisterTabId,
@SearchTabId,
-1,
getdate(),
-1,
getdate()
)
END
ELSE
BEGIN
IF EXISTS (select top 1 * from dbo.PortalLocalization where Portalid=@PortalId)
BEGIN
--cannot select by particular culturecode as defaultlanguage has been deleted (possible in early versions of DotNetNuke)
SELECT TOP 1
@PortalName = PortalName,
@LogoFile = LogoFile,
@FooterText = FooterText,
@Description = Description,
@KeyWords = KeyWords,
@BackgroundFile = BackgroundFile,
@HomeTabId = HomeTabId,
@LoginTabId=LoginTabId,
@UserTabId=UserTabId,
@AdminTabId=AdminTabId,
@SearchTabId=SearchTabId,
@RegisterTabId=RegisterTabId
FROM dbo.PortalLocalization where portalid=@PortalId
INSERT INTO dbo.PortalLocalization (
PortalId,
CultureCode,
PortalName,
LogoFile,
FooterText,
Description,
KeyWords,
BackgroundFile,
HomeTabId,
LoginTabId,
UserTabId,
AdminTabId,
RegisterTabId,
SearchTabId,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@PortalId,
@CultureCode,
@PortalName,
@LogoFile,
@FooterText,
@Description,
@KeyWords,
@BackgroundFile,
@HomeTabId,
@LoginTabId,
@UserTabId,
@AdminTabId,
@RegisterTabId,
@SearchTabId,
-1,
getdate(),
-1,
getdate()
)
END
END
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateFolderPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateFolderPermission
@FolderPermissionID int,
@FolderID int,
@PermissionID int,
@RoleID int ,
@AllowAccess bit,
@UserID int,
@LastModifiedByUserID int
AS
UPDATE dbo.FolderPermission SET
[FolderID] = @FolderID,
[PermissionID] = @PermissionID,
[RoleID] = @RoleID,
[AllowAccess] = @AllowAccess,
[UserID] = @UserID,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = getdate()
WHERE
[FolderPermissionID] = @FolderPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItems' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItems]
@ContentTypeId int,
@TabId int,
@ModuleId int
AS
SELECT *
FROM dbo.ContentItems
WHERE (ContentTypeId = @ContentTypeId OR @ContentTypeId IS NULL)
AND (TabId = @TabId OR @TabId IS NULL)
AND (ModuleId = @ModuleId OR @ModuleId IS NULL)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModuleControl' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteModuleControl
@ModuleControlId int
as
delete
from dbo.ModuleControls
where ModuleControlId = @ModuleControlId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortals' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetPortals]
@CultureCode nvarchar(50)
AS
SELECT * FROM dbo.vw_Portals
WHERE CultureCode = @CultureCode
ORDER BY PortalName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeletePortalSetting]
@PortalID int,
@SettingName nvarchar(50),
@CultureCode nvarchar(50)
AS
DELETE FROM dbo.PortalSettings
WHERE PortalID = @PortalID
AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateAffiliate' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.UpdateAffiliate
@AffiliateId int,
@StartDate datetime,
@EndDate datetime,
@CPC float,
@CPA float
as
update dbo.Affiliates
set StartDate = @StartDate,
EndDate = @EndDate,
CPC = @CPC,
CPA = @CPA
where AffiliateId = @AffiliateId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateContentType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateContentType]
@ContentTypeId int,
@ContentType nvarchar(250)
AS
UPDATE dbo.ContentTypes
SET
ContentType = @ContentType
WHERE ContentTypeId = @ContentTypeId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPortalLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddPortalLanguage]
@PortalId int,
@LanguageId int,
@IsPublished bit,
@CreatedByUserID int
AS
INSERT INTO dbo.PortalLanguages (
PortalId,
LanguageId,
IsPublished,
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
)
VALUES (
@PortalId,
@LanguageId,
@IsPublished,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SELECT SCOPE_IDENTITY()
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetEventLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetEventLog]
@PortalID int,
@LogTypeKey nvarchar(35),
@PageSize int,
@PageIndex int
AS
begin
-- Set the page bounds
DECLARE @PageLowerBound INT
, @PageUpperBound INT
, @RowsToReturn int
, @TotalRecords int
exec dbo.CalculatePagingInformation @PageIndex, @PageSize, @RowsToReturn output, @PageLowerBound output, @PageUpperBound output
begin with [eLog] as (
select row_number() over (order by E.LogCreateDate desc) as rowid, e.*
from dbo.EventLog e
where (e.LogPortalID = @PortalID or @PortalID IS NULL)
AND (e.LogTypeKey Like @LogTypeKey or @LogTypeKey IS NULL)
)
select * from [eLog]
where rowid > @PageLowerBound and rowid < @PageUpperBound
order by rowid
end
select count(*) AS TotalRecords
from dbo.EventLog e
where (e.LogPortalID = @PortalID or @PortalID IS NULL)
AND (e.LogTypeKey Like @LogTypeKey or @LogTypeKey IS NULL)
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSiteLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddSiteLog
@DateTime datetime,
@PortalID int,
@UserID int = null,
@Referrer nvarchar(255) = null,
@Url nvarchar(255) = null,
@UserAgent nvarchar(255) = null,
@UserHostAddress nvarchar(255) = null,
@UserHostName nvarchar(255) = null,
@TabId int = null,
@AffiliateId int = null
as
declare @SiteLogHistory int
insert into dbo.SiteLog (
DateTime,
PortalId,
UserId,
Referrer,
Url,
UserAgent,
UserHostAddress,
UserHostName,
TabId,
AffiliateId
)
values (
@DateTime,
@PortalID,
@UserID,
@Referrer,
@Url,
@UserAgent,
@UserHostAddress,
@UserHostName,
@TabId,
@AffiliateId
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTerm' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTerm]
@TermId int
AS
SELECT TT.*,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = TT.TermID
) AS TotalTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = TT.TermID
AND CI.CreatedOnDate > DATEADD(day, -30, GETDATE())
) AS MonthTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = TT.TermID
AND CI.CreatedOnDate > DATEADD(day, -7, GETDATE())
) AS WeekTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = TT.TermID
AND CI.CreatedOnDate > DATEADD(day, -1, GETDATE())
) AS DayTermUsage
FROM dbo.Taxonomy_Terms TT
WHERE TT.TermId = @TermId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetFolderByFolderID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetFolderByFolderID]
@FolderID int
AS
BEGIN
SELECT *
FROM dbo.[Folders]
WHERE FolderID = @FolderID
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetProfile' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetProfile
@UserID int,
@PortalID int
as
select *
from dbo.Profile
where UserId = @UserID
and PortalId = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSystemMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.AddSystemMessage
@PortalID int,
@MessageName nvarchar(50),
@MessageValue ntext
as
insert into dbo.SystemMessages (
PortalID,
MessageName,
MessageValue
)
values (
@PortalID,
@MessageName,
@MessageValue
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetLanguagesByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetLanguagesByPortal]
@PortalId int
AS
SELECT
L.*,
PL.PortalId,
PL.IsPublished
FROM dbo.Languages L
INNER JOIN dbo.PortalLanguages PL On L.LanguageID = PL.LanguageID
WHERE PL.PortalID = @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetPortalAliasByPortalAliasID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetPortalAliasByPortalAliasID
@PortalAliasID int
as
select *
from dbo.PortalAlias
where PortalAliasID = @PortalAliasID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteTabPermission
@TabPermissionID int
AS
DELETE FROM dbo.TabPermission
WHERE
[TabPermissionID] = @TabPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddPortalInfo' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.AddPortalInfo
@PortalName nvarchar(128),
@Currency char(3),
@ExpiryDate datetime,
@HostFee money,
@HostSpace int,
@PageQuota int,
@UserQuota int,
@SiteLogHistory int,
@HomeDirectory varchar(100),
@CreatedByUserID int
AS
DECLARE @PortalID int
insert into dbo.Portals (
ExpiryDate,
UserRegistration,
BannerAdvertising,
Currency,
HostFee,
HostSpace,
PageQuota,
UserQuota,
SiteLogHistory,
HomeDirectory,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
values (
@ExpiryDate,
0,
0,
@Currency,
@HostFee,
@HostSpace,
@PageQuota,
@UserQuota,
@SiteLogHistory,
@HomeDirectory,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
SET @PortalID = SCOPE_IDENTITY()
IF @HomeDirectory = ''
BEGIN
UPDATE dbo.Portals SET HomeDirectory = 'Portals/' + convert(varchar(10), @PortalID) WHERE PortalID = @PortalID
END
insert into dbo.PortalLocalization (PortalID,CultureCode,PortalName,Description,KeyWords)
values (@PortalID,'en-US',@PortalName,@PortalName,@PortalName)
SELECT @PortalID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserByUsername' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserByUsername]
@PortalID int,
@Username nvarchar(100)
AS
SELECT * FROM dbo.vw_Users
WHERE Username = @Username
AND ((@PortalId IS NULL) OR (PortalId = @PortalID) OR IsSuperUser = 1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItemWordPositionBySearchItemWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchItemWordPositionBySearchItemWord
@SearchItemWordID int
AS
SELECT
[SearchItemWordPositionID],
[SearchItemWordID],
[ContentPosition]
FROM
dbo.SearchItemWordPosition
WHERE
[SearchItemWordID]=@SearchItemWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteEventLog' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteEventLog
@LogGUID varchar(36)
AS
BEGIN
IF @LogGUID is null
BEGIN
DELETE FROM dbo.EventLog
END ELSE BEGIN
DELETE FROM dbo.EventLog WHERE LogGUID = @LogGUID
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModuleSetting' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModuleSetting]
@ModuleId int,
@SettingName nvarchar(50)
AS
SELECT
CASE WHEN LEFT(LOWER(dbo.ModuleSettings.SettingValue), 6) = 'fileid'
THEN
(SELECT Folder + FileName
FROM dbo.Files
WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.ModuleSettings.SettingValue
)
ELSE
dbo.ModuleSettings.SettingValue
END
AS SettingValue
FROM dbo.ModuleSettings
WHERE ModuleId = @ModuleId AND SettingName = @SettingName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeletePortalDesktopModules' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeletePortalDesktopModules
@PortalID int,
@DesktopModuleId int
AS
BEGIN
IF @PortalID is not null AND @DesktopModuleId is not null
DELETE FROM dbo.PortalDesktopModules WHERE PortalId = @PortalID AND DesktopModuleId = @DesktopModuleId
ELSE
BEGIN
IF @PortalID is not null
DELETE FROM dbo.PortalDesktopModules WHERE PortalId = @PortalID
ELSE
BEGIN
IF @DesktopModuleId is not null
DELETE FROM dbo.PortalDesktopModules WHERE DesktopModuleId = @DesktopModuleId
END
END
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdatePortalLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdatePortalLanguage]
@PortalId int,
@LanguageId int,
@IsPublished bit,
@LastModifiedByUserID int
AS
UPDATE dbo.PortalLanguages
SET
IsPublished = @IsPublished,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE PortalId = @PortalId
AND LanguageId = @LanguageId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateAnonymousUser' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateAnonymousUser
@UserID char(36),
@PortalID int,
@TabID int,
@LastActiveDate datetime
as
begin
update dbo.AnonymousUsers set
TabID = @TabID,
LastActiveDate = @LastActiveDate
where
UserID = @UserID
and PortalID = @PortalID
if @@ROWCOUNT = 0
begin
insert into dbo.AnonymousUsers
(UserID, PortalID, TabID, CreationDate, LastActiveDate)
VALUES
(@UserID, @PortalID, @TabID, GetDate(), @LastActiveDate)
end
end
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetMetaData' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetMetaData]
@ContentItemId int
AS
SELECT md.MetaDataName, cmd.MetaDataValue
FROM dbo.[ContentItems_MetaData] cmd
JOIN dbo.[MetaData] md on (cmd.MetaDataID = md.MetaDataID)
WHERE ContentItemId = @ContentItemId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchWordByID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchWordByID
@SearchWordsID int
AS
SELECT
[SearchWordsID],
[Word],
[IsCommon],
[HitCount]
FROM
dbo.SearchWord
WHERE
[SearchWordsID] = @SearchWordsID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_GetInboxCount' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_GetInboxCount]
@PortalID int,
@UserID int
AS
SELECT COUNT (*)[Body]
FROM dbo.Messaging_Messages
WHERE (ToUserID= @UserID AND Status in (1,2) AND SkipPortal = '0')
OR (FromUserID = @UserID AND Status = 0)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserRoles' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetUserRoles]
@PortalId int,
@UserId int
AS
SELECT *
FROM dbo.vw_UserRoles
WHERE UserID = @UserId AND PortalID = @PortalId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteEventLogConfig' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteEventLogConfig
@ID int
AS
DELETE FROM dbo.EventLogConfig
WHERE ID = @ID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSearchItemWordPosition' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.UpdateSearchItemWordPosition
@SearchItemWordPositionID int,
@SearchItemWordID int,
@ContentPosition int
AS
UPDATE dbo.SearchItemWordPosition SET
[SearchItemWordID] = @SearchItemWordID,
[ContentPosition] = @ContentPosition
WHERE
[SearchItemWordPositionID] = @SearchItemWordPositionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetBanners' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetBanners
@VendorId int
as
select BannerId,
BannerName,
URL,
Impressions,
CPM,
Views,
ClickThroughs,
StartDate,
EndDate,
BannerTypeId,
Description,
GroupName,
Criteria,
Width,
Height
from dbo.Banners
where VendorId = @VendorId
order by CreatedDate desc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetModulePermissionsByModuleID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetModulePermissionsByModuleID]
@ModuleID int,
@PermissionID int
AS
SELECT *
FROM dbo.vw_ModulePermissions
WHERE (@ModuleID = -1
OR ModuleID = @ModuleID
OR (ModuleID IS NULL AND PermissionCode = 'SYSTEM_MODULE_DEFINITION')
)
AND (PermissionID = @PermissionID OR @PermissionID = -1)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetListEntries' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetListEntries
@ListName nvarchar(50),
@ParentKey nvarchar(150),
@PortalID int
AS
SELECT *
FROM dbo.vw_Lists
WHERE (ListName = @ListName OR @ListName='')
AND (ParentKey = @ParentKey OR @ParentKey = '')
AND (PortalID = @PortalID OR PortalID = -1 OR @PortalID IS NULL or SystemList=1)
ORDER BY [Level], ListName, SortOrder, Text
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_GetMessage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_GetMessage]
@MessageID bigint
AS
SELECT * FROM Messaging_Messages WHERE MessageID = @MessageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddTabModule]
@TabId int,
@ModuleId int,
@ModuleTitle nvarchar(256),
@Header ntext,
@Footer ntext,
@ModuleOrder int,
@PaneName nvarchar(50),
@CacheTime int,
@CacheMethod varchar(50),
@Alignment nvarchar(10),
@Color nvarchar(20),
@Border nvarchar(1),
@IconFile nvarchar(100),
@Visibility int,
@ContainerSrc nvarchar(200),
@DisplayTitle bit,
@DisplayPrint bit,
@DisplaySyndicate bit,
@IsWebSlice bit,
@WebSliceTitle nvarchar(256),
@WebSliceExpiryDate datetime,
@WebSliceTTL int,
@UniqueId uniqueidentifier,
@VersionGuid uniqueidentifier,
@DefaultLanguageGuid uniqueidentifier,
@LocalizedVersionGuid uniqueidentifier,
@CultureCode nvarchar(10),
@CreatedByUserID int
AS
INSERT INTO dbo.TabModules (
TabId,
ModuleId,
ModuleTitle,
Header,
Footer,
ModuleOrder,
PaneName,
CacheTime,
CacheMethod,
Alignment,
Color,
Border,
IconFile,
Visibility,
ContainerSrc,
DisplayTitle,
DisplayPrint,
DisplaySyndicate,
IsWebSlice,
WebSliceTitle,
WebSliceExpiryDate,
WebSliceTTL,
UniqueId,
VersionGuid,
DefaultLanguageGuid,
LocalizedVersionGuid,
CultureCode,
CreatedByUserID,
CreatedOnDate,
LastModifiedByUserID,
LastModifiedOnDate
)
VALUES (
@TabId,
@ModuleId,
@ModuleTitle,
@Header,
@Footer,
@ModuleOrder,
@PaneName,
@CacheTime,
@CacheMethod,
@Alignment,
@Color,
@Border,
@IconFile,
@Visibility,
@ContainerSrc,
@DisplayTitle,
@DisplayPrint,
@DisplaySyndicate,
@IsWebSlice,
@WebSliceTitle,
@WebSliceExpiryDate,
@WebSliceTTL,
@UniqueId,
@VersionGuid,
@DefaultLanguageGuid,
@LocalizedVersionGuid,
@CultureCode,
@CreatedByUserID,
getdate(),
@CreatedByUserID,
getdate()
)
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchResultsByWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchResultsByWord
@PortalID int,
@Word nvarchar(100)
AS
SELECT si.SearchItemID,
sw.Word,
siw.Occurrences,
siw.Occurrences + 1000 AS Relevance,
m.ModuleID,
tm.TabID,
si.Title,
si.Description,
si.Author,
si.PubDate,
si.SearchKey,
si.Guid,
si.ImageFileId,
u.FirstName + ' ' + u.LastName As AuthorName,
m.PortalId
FROM dbo.SearchWord sw
INNER JOIN dbo.SearchItemWord siw ON sw.SearchWordsID = siw.SearchWordsID
INNER JOIN dbo.SearchItem si ON siw.SearchItemID = si.SearchItemID
INNER JOIN dbo.Modules m ON si.ModuleId = m.ModuleID
LEFT OUTER JOIN dbo.TabModules tm ON si.ModuleId = tm.ModuleID
LEFT JOIN dbo.TabModuleSettings tms ON tms.TabModuleID = tm.TabModuleID AND tms.SettingName = 'DisableSearch'
INNER JOIN dbo.Tabs t ON tm.TabID = t.TabID
LEFT OUTER JOIN dbo.Users u ON si.Author = u.UserID
WHERE (((m.StartDate Is Null) OR (GetDate() > m.StartDate)) AND ((m.EndDate Is Null) OR (GetDate() < m.EndDate)))
AND (((t.StartDate Is Null) OR (GetDate() > t.StartDate)) AND ((t.EndDate Is Null) OR (GetDate() < t.EndDate)))
AND (sw.Word = @Word)
AND (t.IsDeleted = 0)
AND (m.IsDeleted = 0)
AND (tm.IsDeleted = 0)
AND (t.PortalID = @PortalID)
AND (tms.TabModuleID is NULL)
ORDER BY Relevance DESC
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_GetNewMessageCount' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_GetNewMessageCount]
@PortalID int,
@UserID int
AS
SELECT count(*) FROM Messaging_Messages WHERE ToUserID = @UserID AND Status = 1
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetVendor' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.GetVendor
@VendorId int,
@PortalID int
as
select dbo.Vendors.VendorName,
dbo.Vendors.Unit,
dbo.Vendors.Street,
dbo.Vendors.City,
dbo.Vendors.Region,
dbo.Vendors.Country,
dbo.Vendors.PostalCode,
dbo.Vendors.Telephone,
dbo.Vendors.Fax,
dbo.Vendors.Cell,
dbo.Vendors.Email,
dbo.Vendors.Website,
dbo.Vendors.FirstName,
dbo.Vendors.LastName,
dbo.Vendors.ClickThroughs,
dbo.Vendors.Views,
dbo.Users.FirstName + ' ' + dbo.Users.LastName AS 'CreatedByUser',
dbo.Vendors.CreatedDate,
case when dbo.Files.FileName is null then dbo.Vendors.LogoFile else dbo.Files.Folder + dbo.Files.FileName end AS 'LogoFile',
dbo.Vendors.KeyWords,
dbo.Vendors.Authorized,
dbo.Vendors.PortalId
from dbo.Vendors
left outer join dbo.Users on dbo.Vendors.CreatedByUser = dbo.Users.UserId
left outer join dbo.Files on dbo.Vendors.LogoFile = 'fileid=' + convert(varchar,dbo.Files.FileID)
where VendorId = @VendorId
and ((dbo.Vendors.PortalId = @PortalID) or (dbo.Vendors.PortalId is null and @PortalID is null))
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteDesktopModulePermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteDesktopModulePermission]
@DesktopModulePermissionID int
AS
DELETE FROM dbo.DesktopModulePermission
WHERE DesktopModulePermissionID = @DesktopModulePermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteTabModule]
@TabId int,
@ModuleId int,
@SoftDelete bit
AS
IF @SoftDelete = 1
UPDATE dbo.TabModules
SET IsDeleted = 1,
VersionGuid = newId()
WHERE TabId = @TabId
AND ModuleId = @ModuleId
ELSE
DELETE
FROM dbo.TabModules
WHERE TabId = @TabId
AND ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchItemWordBySearchItem' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchItemWordBySearchItem
@SearchItemID int
AS
SELECT
[SearchItemWordID],
[SearchItemID],
[SearchWordsID],
[Occurrences]
FROM
dbo.SearchItemWord
WHERE
[SearchItemID]=@SearchItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteModulePermissionsByUserID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[DeleteModulePermissionsByUserID]
@PortalID int,
@UserID int
AS
DELETE FROM dbo.ModulePermission
FROM dbo.ModulePermission MP
INNER JOIN dbo.Modules AS M ON MP.ModuleID = M.ModuleID
WHERE M.PortalID = @PortalID
AND MP.UserID = @UserID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateSkin' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateSkin]
@SkinID int,
@SkinSrc nvarchar(200)
AS
UPDATE dbo.Skins
SET
SkinSrc = @SkinSrc
WHERE SkinID = @SkinID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_GetNextMessageForDispatch' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_GetNextMessageForDispatch]
@SchedulerInstance uniqueidentifier
AS
Declare @target_messageID int
SELECT @target_messageID = MessageID FROM Messaging_Messages WHERE EmailSent = 0 AND
(EmailSchedulerInstance is NULL or EmailSchedulerInstance= '00000000-0000-0000-0000-000000000000')
AND status not in (0,3) ORDER BY Date DESC
Update Messaging_Messages set EmailSchedulerInstance = @SchedulerInstance where MessageID = @target_messageID
select * from Messaging_Messages where MessageID = @target_messageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetAllTabs' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetAllTabs]
AS
SELECT *
FROM dbo.vw_Tabs
ORDER BY Level, ParentID, TabOrder
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteLanguage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[DeleteLanguage]
@LanguageID int
AS
DELETE
FROM dbo.Languages
WHERE LanguageID = @LanguageID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Messaging_MarkMessageAsDispatched' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[Messaging_MarkMessageAsDispatched]
@MessageId int
AS
BEGIN
Update Messaging_Messages set EmailSent = 1, EmailSentDate =GETDATE() where MessageID =@MessageId
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTermsByContent' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTermsByContent]
@ContentItemID int
AS
SELECT TT.*
FROM dbo.ContentItems_Tags TG
INNER JOIN dbo.Taxonomy_Terms TT ON TG.TermID = TT.TermID
WHERE TG.ContentItemID = @ContentItemID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteDesktopModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteDesktopModule
@DesktopModuleId int
AS
-- delete custom permissions
DELETE FROM dbo.Permission
WHERE moduledefid in
(SELECT moduledefid
FROM dbo.ModuleDefinitions
WHERE desktopmoduleid = @DesktopModuleId)
DELETE FROM dbo.DesktopModules
WHERE DesktopModuleId = @DesktopModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTabPaths' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTabPaths]
@PortalID int,
@CultureCode nvarchar(10)
AS
SELECT
TabID,
PortalID,
TabPath
FROM dbo.vw_Tabs
WHERE (PortalID = @PortalID AND (CultureCode = @CultureCode OR CultureCode Is Null))
OR @PortalID Is NULL
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteVendorClassifications' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.DeleteVendorClassifications
@VendorId int
as
delete
from dbo.VendorClassification
where VendorId = @VendorId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'DeleteFolderPermission' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.DeleteFolderPermission
@FolderPermissionID int
AS
DELETE FROM dbo.FolderPermission
WHERE
[FolderPermissionID] = @FolderPermissionID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTermsByVocabulary' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTermsByVocabulary]
@VocabularyID int
AS
SELECT TT.*
FROM dbo.Taxonomy_Terms TT
WHERE VocabularyID = @VocabularyID
ORDER BY TT.TermLeft Asc, TT.Weight Asc, TT.Name Asc
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RestoreTabModule' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[RestoreTabModule]
@TabId int,
@ModuleId int
AS
UPDATE dbo.TabModules
SET IsDeleted = 0,
VersionGuid = newId()
WHERE TabId = @TabId
AND ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetUserCountByPortal' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetUserCountByPortal
@PortalId int
AS
begin
SELECT count(*)
FROM dbo.UserPortals AS UP
WHERE UP.IsDeleted = 0 AND UP.PortalID = @PortalID
end
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddSearchWord' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[AddSearchWord]
@Word nvarchar(100)
AS
DECLARE @id int
SELECT @id = SearchWordsID
FROM dbo.SearchWord
WHERE Word = @Word
IF @id IS NULL
BEGIN
INSERT INTO dbo.SearchWord (
[Word],
[IsCommon],
[HitCount]
)
VALUES (
@Word,
0,
1
)
SELECT SCOPE_IDENTITY()
END
ELSE
SELECT @id
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTermUsage' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetTermUsage]
@TermId int
AS
SELECT
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = @TermId
) AS TotalTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = @TermId
AND CI.CreatedOnDate > DATEADD(day, -30, GETDATE())
) AS MonthTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = @TermId
AND CI.CreatedOnDate > DATEADD(day, -7, GETDATE())
) AS WeekTermUsage ,
(SELECT COUNT(CI.ContentItemID)
FROM dbo.[ContentItems_Tags] T
INNER JOIN dbo.[ContentItems] CI ON CI.ContentItemID = T.ContentItemID
WHERE T.TermID = @TermId
AND CI.CreatedOnDate > DATEADD(day, -1, GETDATE())
) AS DayTermUsage
FROM dbo.Taxonomy_Terms TT
WHERE TermID = @TermId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetBannerGroups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetBannerGroups]
@PortalID int
AS
SELECT GroupName
FROM dbo.Banners
INNER JOIN dbo.Vendors ON
dbo.Banners.VendorId = dbo.Vendors.VendorId
WHERE (dbo.Vendors.PortalId = @PortalID) OR
(@PortalID is null and dbo.Vendors.PortalId is null)
GROUP BY GroupName
ORDER BY GroupName
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSearchCommonWordByID' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.GetSearchCommonWordByID
@CommonWordID int
AS
SELECT
[CommonWordID],
[CommonWord],
[Locale]
FROM
dbo.SearchCommonWords
WHERE
[CommonWordID] = @CommonWordID
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItemsByContentType' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItemsByContentType]
@ContentTypeId int
AS
SELECT * FROM dbo.ContentItems WHERE ContentTypeID = @ContentTypeId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UpdateModuleOrder' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[UpdateModuleOrder]
@TabId int,
@ModuleId int,
@ModuleOrder int,
@PaneName nvarchar(50)
AS
UPDATE dbo.TabModules
SET ModuleOrder = @ModuleOrder,
PaneName = @PaneName,
VersionGuid = newId()
WHERE TabId = @TabId
AND ModuleId = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetSkinControls' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetSkinControls]
AS
SELECT *
FROM dbo.SkinControls
ORDER BY ControlKey
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetContentItemsByModuleId' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetContentItemsByModuleId]
@ModuleId int
AS
SELECT * FROM dbo.ContentItems WHERE ModuleID = @ModuleId
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'fn_CompareVersion' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE FUNCTION dbo.[fn_CompareVersion]
(
@Version nvarchar(20),
@CurrentVersion nvarchar(20)
)
RETURNS int
AS
BEGIN
DECLARE @Pos int
DECLARE @String nvarchar(20)
DECLARE @MajorVersion int
DECLARE @MajorCurrentVersion int
DECLARE @MinorVersion int
DECLARE @MinorCurrentVersion int
DECLARE @BuildVersion int
DECLARE @BuildCurrentVersion int
SET @String = @Version
SET @Pos = CHARINDEX('.' , @String)
SET @MajorVersion = CONVERT(int, LEFT(@String, @Pos - 1))
SET @String = STUFF(@String, 1, @Pos, '')
SET @Pos = CHARINDEX('.' , @String)
SET @MinorVersion = CONVERT(int, LEFT(@String, @Pos - 1))
SET @String = STUFF(@String, 1, @Pos, '')
SET @BuildVersion = CONVERT(int, @String)
SET @String = @CurrentVersion
SET @Pos = CHARINDEX('.' , @String)
SET @MajorCurrentVersion = CONVERT(int, LEFT(@String, @Pos - 1))
SET @String = STUFF(@String, 1, @Pos, '')
SET @Pos = CHARINDEX('.' , @String)
SET @MinorCurrentVersion = CONVERT(int, LEFT(@String, @Pos - 1))
SET @String = STUFF(@String, 1, @Pos, '')
SET @BuildCurrentVersion = CONVERT(int, @String)
IF @CurrentVersion IS NULL
-- Assembly Not Registered - Set ReturnCode = 0, so assembly is copied
RETURN 0
ELSE
IF @Version = @CurrentVersion
-- Same Version - Set ReturnCode = 2, so assembly is only copied on repair
RETURN 2
ELSE
-- Different Version
-- Compare Major, Minor, Revision
IF @MajorVersion > @MajorCurrentVersion
OR (@MajorVersion = @MajorCurrentVersion AND @MinorVersion > @MinorCurrentVersion)
OR (@MajorVersion = @MajorCurrentVersion AND @MinorVersion = @MinorCurrentVersion AND @BuildVersion > @BuildCurrentVersion)
-- Newer version - at least on of Major, Minor, Revision is larger - Set ReturnCode = 1, so assembly is copied
RETURN 1
ELSE
-- Older Version - Set ReturnCode = 3, so assembly is not copied
RETURN 3
RETURN 3
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'RegisterAssembly' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[RegisterAssembly]
@PackageID int,
@AssemblyName nvarchar(250),
@Version nvarchar(20)
As
DECLARE @AssemblyID int
DECLARE @CurrentVersion nvarchar(20)
/* @ReturnCode Values
0 - Assembly Does not Exist
1 - Older Version of Assembly Exists
2 - Assembly Already Registered - Version = CurrentVersion
3 - Assembly Already Registered - Version < CurrentVersion
*/
DECLARE @CompareVersion int
-- First check if this assembly is registered to this package
SET @AssemblyID = (SELECT AssemblyID
FROM dbo.Assemblies
WHERE PackageID = @PAckageID
AND AssemblyName = @AssemblyName)
IF @AssemblyID IS NULL
BEGIN
-- AssemblyID is null (not registered)
-- but assembly may be registerd by other packages so check for Max unstalled version
SET @CurrentVersion = (SELECT Max(Version )
FROM dbo.Assemblies
WHERE AssemblyName = @AssemblyName)
SET @CompareVersion = dbo.fn_CompareVersion(@Version, @CurrentVersion)
-- Add an assembly regsitration for this package
INSERT INTO dbo.Assemblies (
PackageID,
AssemblyName,
Version
)
VALUES (
@PackageID,
@AssemblyName,
@Version
)
END
ELSE
BEGIN
-- AssemblyID is not null - Assembly is registered - test for version
SET @CurrentVersion = (SELECT Version
FROM dbo.Assemblies
WHERE AssemblyID = @AssemblyID)
SET @CompareVersion = dbo.fn_CompareVersion(@Version, @CurrentVersion)
IF @CompareVersion = 1
BEGIN
-- Newer version - Update Assembly registration
UPDATE dbo.Assemblies
SET Version = @Version
WHERE AssemblyID = @AssemblyID
END
END
SELECT @CompareVersion
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Taxonomy_VocabularyTypes' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:6,Class:16
CREATE TABLE dbo.[Taxonomy_VocabularyTypes]
(
[VocabularyTypeID] [int] NOT NULL IDENTITY(1, 1),
[VocabularyType] [nvarchar] (50) NOT NULL
)
System.Data.SqlClient.SqlException (0x80131904): Table 'Taxonomy_VocabularyTypes' already has a primary key defined on it.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:1779,State:0,Class:16
ALTER TABLE dbo.[Taxonomy_VocabularyTypes] ADD CONSTRAINT [PK_Taxonomy_VocabularyType] PRIMARY KEY CLUSTERED ([VocabularyTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDatabaseServer' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDatabaseServer]
AS
SELECT ServerProperty('Edition') AS ProductName,
ServerProperty('ProductVersion') AS Version
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetDbInfo' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[Dashboard_GetDbInfo]
AS
SELECT
ServerProperty('ProductVersion') AS ProductVersion,
ServerProperty('ProductLevel') AS ServicePack,
ServerProperty('Edition') AS ProductEdition,
@@VERSION AS SoftwarePlatform
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetDbFileInfo' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[Dashboard_GetDbFileInfo]
AS
SELECT
CASE LOWER(RIGHT(filename,3))
WHEN 'mdf' THEN 'DATA'
WHEN 'ldf' THEN 'LOG'
ELSE 'UNKNOWN'
END as FileType,
Name,
size*8 as Size,
filename
FROM sysfiles
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetTables' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetTables
as
/* Be carefull when changing this procedure as the GetSearchTables() function
in SearchDB.cs is only looking at the first column (to support databases that cannot return
a TableName column name (like MySQL))
*/
select [name] AS 'TableName'
from sysobjects
where xtype = 'U'
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'Dashboard_GetDbBackups' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE procedure dbo.[Dashboard_GetDbBackups]
AS
EXEC ('SELECT TOP 20
name,
backup_start_date as StartDate,
backup_finish_date as FinishDate,
backup_size/1024 as size,
database_name,
CASE type
WHEN ''D'' THEN ''Database''
WHEN ''I'' THEN ''Differential database''
WHEN ''L'' THEN ''Log''
WHEN ''F'' THEN ''File or filegroup''
WHEN ''G'' THEN ''Differential file''
WHEN ''P'' THEN ''Partial''
WHEN ''Q'' THEN ''Differential partial''
END as BackupType
FROM
msdb..backupset
WHERE
database_name = DB_NAME()
ORDER BY backup_start_date DESC')
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetCurrencies' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
create procedure dbo.GetCurrencies
as
select Code,
Description
from dbo.CodeCurrency
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDatabaseTimeUtc' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDatabaseTimeUtc]
AS
BEGIN
SELECT GETUTCDATE()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'GetDatabaseTime' in the database.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:3,Class:16
CREATE PROCEDURE dbo.[GetDatabaseTime]
AS
BEGIN
SELECT GETDATE()
END
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_DesktopModulePermission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[DesktopModulePermission] ADD CONSTRAINT [IX_DesktopModulePermission] UNIQUE NONCLUSTERED ([PortalDesktopModuleID], [PermissionID], [RoleID], [UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_DesktopModules_ModuleName' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[DesktopModules] ADD CONSTRAINT [IX_DesktopModules_ModuleName] UNIQUE NONCLUSTERED ([ModuleName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_FileName' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Files] ADD CONSTRAINT [IX_FileName] UNIQUE NONCLUSTERED ([FolderID], [FileName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Files_UniqueId' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Files] ADD CONSTRAINT [IX_Files_UniqueId] UNIQUE NONCLUSTERED ([UniqueId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_FolderMappings' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[FolderMappings] ADD CONSTRAINT [IX_FolderMappings] UNIQUE NONCLUSTERED ([PortalID], [MappingName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_FolderPermission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[FolderPermission] ADD CONSTRAINT [IX_FolderPermission] UNIQUE NONCLUSTERED ([FolderID], [PermissionID], [RoleID], [UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_FolderPath' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Folders] ADD CONSTRAINT [IX_FolderPath] UNIQUE NONCLUSTERED ([PortalID], [FolderPath])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Folders_UniqueId' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Folders] ADD CONSTRAINT [IX_Folders_UniqueId] UNIQUE NONCLUSTERED ([UniqueId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Lists_ListName_Value_Text_ParentID' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Lists] ADD CONSTRAINT [IX_Lists_ListName_Value_Text_ParentID] UNIQUE NONCLUSTERED ([ListName], [Value], [Text], [ParentID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_ModuleControls' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModuleControls] ADD CONSTRAINT [IX_ModuleControls] UNIQUE NONCLUSTERED ([ModuleDefID], [ControlKey], [ControlSrc])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_ModulePermission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModulePermission] ADD CONSTRAINT [IX_ModulePermission] UNIQUE NONCLUSTERED ([PortalID], [ModuleID], [PermissionID], [RoleID], [UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Permission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Permission] ADD CONSTRAINT [IX_Permission] UNIQUE NONCLUSTERED ([PermissionCode], [ModuleDefID], [PermissionKey])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_PortalAlias' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalAlias] ADD CONSTRAINT [IX_PortalAlias] UNIQUE NONCLUSTERED ([HTTPAlias])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_PortalDesktopModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalDesktopModules] ADD CONSTRAINT [IX_PortalDesktopModules] UNIQUE NONCLUSTERED ([PortalID], [DesktopModuleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_RoleGroupName' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[RoleGroups] ADD CONSTRAINT [IX_RoleGroupName] UNIQUE NONCLUSTERED ([PortalID], [RoleGroupName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_RoleName' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Roles] ADD CONSTRAINT [IX_RoleName] UNIQUE NONCLUSTERED ([PortalID], [RoleName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_SearchItemWord' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SearchItemWord] ADD CONSTRAINT [IX_SearchItemWord] UNIQUE NONCLUSTERED ([SearchItemID], [SearchWordsID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_SearchWord' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SearchWord] ADD CONSTRAINT [IX_SearchWord] UNIQUE NONCLUSTERED ([Word])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_SystemMessages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SystemMessages] ADD CONSTRAINT [IX_SystemMessages] UNIQUE NONCLUSTERED ([MessageName], [PortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_TabModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[TabModules] ADD CONSTRAINT [IX_TabModules] UNIQUE NONCLUSTERED ([TabID], [ModuleID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_TabModules_UniqueId' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[TabModules] ADD CONSTRAINT [IX_TabModules_UniqueId] UNIQUE NONCLUSTERED ([UniqueId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_TabPermission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[TabPermission] ADD CONSTRAINT [IX_TabPermission] UNIQUE NONCLUSTERED ([TabID], [PermissionID], [RoleID], [UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Tabs_UniqueId' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Tabs] ADD CONSTRAINT [IX_Tabs_UniqueId] UNIQUE NONCLUSTERED ([UniqueId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Urls' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Urls] ADD CONSTRAINT [IX_Urls] UNIQUE NONCLUSTERED ([Url], [PortalID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_UrlTracking' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UrlTracking] ADD CONSTRAINT [IX_UrlTracking] UNIQUE NONCLUSTERED ([PortalID], [Url], [ModuleId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Users' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Users] ADD CONSTRAINT [IX_Users] UNIQUE NONCLUSTERED ([Username])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_VendorClassification' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[VendorClassification] ADD CONSTRAINT [IX_VendorClassification] UNIQUE NONCLUSTERED ([VendorId], [ClassificationId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Vendors' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Vendors] ADD CONSTRAINT [IX_Vendors] UNIQUE NONCLUSTERED ([PortalId], [VendorName])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'IX_Version' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Version] ADD CONSTRAINT [IX_Version] UNIQUE NONCLUSTERED ([Major], [Minor], [Build])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Authentication_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Authentication] WITH NOCHECK ADD CONSTRAINT [FK_Authentication_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ContentItems_MetaDataMetaData' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ContentItems_MetaData] WITH NOCHECK ADD CONSTRAINT [FK_ContentItems_MetaDataMetaData] FOREIGN KEY ([MetaDataID]) REFERENCES dbo.[MetaData] ([MetaDataID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Dashboard_Controls_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Dashboard_Controls] WITH NOCHECK ADD CONSTRAINT [FK_Dashboard_Controls_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ModuleDefinitions_DesktopModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModuleDefinitions] WITH NOCHECK ADD CONSTRAINT [FK_ModuleDefinitions_DesktopModules] FOREIGN KEY ([DesktopModuleID]) REFERENCES dbo.[DesktopModules] ([DesktopModuleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_DesktopModules_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[DesktopModules] WITH NOCHECK ADD CONSTRAINT [FK_DesktopModules_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_EventLog_EventLogTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[EventLog] WITH NOCHECK ADD CONSTRAINT [FK_EventLog_EventLogTypes] FOREIGN KEY ([LogTypeKey]) REFERENCES dbo.[EventLogTypes] ([LogTypeKey])
ALTER TABLE dbo.[EventLog] WITH NOCHECK ADD CONSTRAINT [FK_EventLog_EventLogConfig] FOREIGN KEY ([LogConfigID]) REFERENCES dbo.[EventLogConfig] ([ID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_EventLogConfig_EventLogTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[EventLogConfig] WITH NOCHECK ADD CONSTRAINT [FK_EventLogConfig_EventLogTypes] FOREIGN KEY ([LogTypeKey]) REFERENCES dbo.[EventLogTypes] ([LogTypeKey])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_LanguagePacks_Languages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[LanguagePacks] WITH NOCHECK ADD CONSTRAINT [FK_LanguagePacks_Languages] FOREIGN KEY ([LanguageID]) REFERENCES dbo.[Languages] ([LanguageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalLanguages_PortalLanguages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalLanguages] WITH NOCHECK ADD CONSTRAINT [FK_PortalLanguages_PortalLanguages] FOREIGN KEY ([LanguageID]) REFERENCES dbo.[Languages] ([LanguageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_TabModules_Modules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[TabModules] WITH NOCHECK ADD CONSTRAINT [FK_TabModules_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE
ALTER TABLE dbo.[TabModules] WITH NOCHECK ADD CONSTRAINT [FK_TabModules_Tabs] FOREIGN KEY ([TabID]) REFERENCES dbo.[Tabs] ([TabID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_SkinControls_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SkinControls] WITH NOCHECK ADD CONSTRAINT [FK_SkinControls_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_SkinPackages_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SkinPackages] WITH NOCHECK ADD CONSTRAINT [FK_SkinPackages_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Packages_PackageTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Packages] WITH NOCHECK ADD CONSTRAINT [FK_Packages_PackageTypes] FOREIGN KEY ([PackageType]) REFERENCES dbo.[PackageTypes] ([PackageType]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ProfilePropertyDefinition_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ProfilePropertyDefinition] WITH NOCHECK ADD CONSTRAINT [FK_ProfilePropertyDefinition_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Tabs_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Tabs] WITH NOCHECK ADD CONSTRAINT [FK_Tabs_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[Tabs] WITH NOCHECK ADD CONSTRAINT [FK_Tabs_Tabs] FOREIGN KEY ([ParentId]) REFERENCES dbo.[Tabs] ([TabID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ScheduleHistory_Schedule' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ScheduleHistory] WITH NOCHECK ADD CONSTRAINT [FK_ScheduleHistory_Schedule] FOREIGN KEY ([ScheduleID]) REFERENCES dbo.[Schedule] ([ScheduleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ScheduleItemSettings_Schedule' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ScheduleItemSettings] WITH NOCHECK ADD CONSTRAINT [FK_ScheduleItemSettings_Schedule] FOREIGN KEY ([ScheduleID]) REFERENCES dbo.[Schedule] ([ScheduleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Skins_SkinPackages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Skins] WITH NOCHECK ADD CONSTRAINT [FK_Skins_SkinPackages] FOREIGN KEY ([SkinPackageID]) REFERENCES dbo.[SkinPackages] ([SkinPackageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Affiliates_Vendors' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Affiliates] ADD CONSTRAINT [FK_Affiliates_Vendors] FOREIGN KEY ([VendorId]) REFERENCES dbo.[Vendors] ([VendorId]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_AnonymousUsers_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[AnonymousUsers] ADD CONSTRAINT [FK_AnonymousUsers_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PackageAssemblies_PackageAssemblies' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Assemblies] ADD CONSTRAINT [FK_PackageAssemblies_PackageAssemblies] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Banner_Vendor' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Banners] ADD CONSTRAINT [FK_Banner_Vendor] FOREIGN KEY ([VendorId]) REFERENCES dbo.[Vendors] ([VendorId]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Classification_Classification' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Classification] ADD CONSTRAINT [FK_Classification_Classification] FOREIGN KEY ([ParentId]) REFERENCES dbo.[Classification] ([ClassificationId])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_VendorClassification_Classification' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[VendorClassification] ADD CONSTRAINT [FK_VendorClassification_Classification] FOREIGN KEY ([ClassificationId]) REFERENCES dbo.[Classification] ([ClassificationId]) ON DELETE CASCADE
ALTER TABLE dbo.[VendorClassification] ADD CONSTRAINT [FK_VendorClassification_Vendors] FOREIGN KEY ([VendorId]) REFERENCES dbo.[Vendors] ([VendorId]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ContentItems_MetaData_ContentItems' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ContentItems_MetaData] ADD CONSTRAINT [FK_ContentItems_MetaData_ContentItems] FOREIGN KEY ([ContentItemID]) REFERENCES dbo.[ContentItems] ([ContentItemID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ContentItems_Tags_ContentItems' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ContentItems_Tags] ADD CONSTRAINT [FK_ContentItems_Tags_ContentItems] FOREIGN KEY ([ContentItemID]) REFERENCES dbo.[ContentItems] ([ContentItemID]) ON DELETE CASCADE ON UPDATE CASCADE
ALTER TABLE dbo.[ContentItems_Tags] ADD CONSTRAINT [FK_ContentItems_Tags_Taxonomy_Terms] FOREIGN KEY ([TermID]) REFERENCES dbo.[Taxonomy_Terms] ([TermID]) ON DELETE CASCADE ON UPDATE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Modules_ContentItems' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Modules] ADD CONSTRAINT [FK_Modules_ContentItems] FOREIGN KEY ([ContentItemID]) REFERENCES dbo.[ContentItems] ([ContentItemID])
ALTER TABLE dbo.[Modules] ADD CONSTRAINT [FK_Modules_ModuleDefinitions] FOREIGN KEY ([ModuleDefID]) REFERENCES dbo.[ModuleDefinitions] ([ModuleDefID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Tabs_ContentItems' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Tabs] ADD CONSTRAINT [FK_Tabs_ContentItems] FOREIGN KEY ([ContentItemID]) REFERENCES dbo.[ContentItems] ([ContentItemID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ContentItems_ContentTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ContentItems] ADD CONSTRAINT [FK_ContentItems_ContentTypes] FOREIGN KEY ([ContentTypeID]) REFERENCES dbo.[ContentTypes] ([ContentTypeID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_CoreMessaging_MessageAttachments_CoreMessaging_Messages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[CoreMessaging_MessageAttachments] ADD CONSTRAINT [FK_CoreMessaging_MessageAttachments_CoreMessaging_Messages] FOREIGN KEY ([MessageID]) REFERENCES dbo.[CoreMessaging_Messages] ([MessageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_CoreMessaging_MessageRecipients_CoreMessaging_Messages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[CoreMessaging_MessageRecipients] ADD CONSTRAINT [FK_CoreMessaging_MessageRecipients_CoreMessaging_Messages] FOREIGN KEY ([MessageID]) REFERENCES dbo.[CoreMessaging_Messages] ([MessageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_CoreMessaging_Messages_CoreMessaging_NotificationTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[CoreMessaging_Messages] ADD CONSTRAINT [FK_CoreMessaging_Messages_CoreMessaging_NotificationTypes] FOREIGN KEY ([NotificationTypeID]) REFERENCES dbo.[CoreMessaging_NotificationTypes] ([NotificationTypeID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_CoreMessaging_NotificationTypeActions_CoreMessaging_NotificationTypes' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[CoreMessaging_NotificationTypeActions] ADD CONSTRAINT [FK_CoreMessaging_NotificationTypeActions_CoreMessaging_NotificationTypes] FOREIGN KEY ([NotificationTypeID]) REFERENCES dbo.[CoreMessaging_NotificationTypes] ([NotificationTypeID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_CoreMessaging_NotificationTypes_DesktopModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[CoreMessaging_NotificationTypes] ADD CONSTRAINT [FK_CoreMessaging_NotificationTypes_DesktopModules] FOREIGN KEY ([DesktopModuleID]) REFERENCES dbo.[DesktopModules] ([DesktopModuleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_DesktopModulePermission_PortalDesktopModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[DesktopModulePermission] ADD CONSTRAINT [FK_DesktopModulePermission_PortalDesktopModules] FOREIGN KEY ([PortalDesktopModuleID]) REFERENCES dbo.[PortalDesktopModules] ([PortalDesktopModuleID]) ON DELETE CASCADE
ALTER TABLE dbo.[DesktopModulePermission] ADD CONSTRAINT [FK_DesktopModulePermission_Permission] FOREIGN KEY ([PermissionID]) REFERENCES dbo.[Permission] ([PermissionID]) ON DELETE CASCADE
ALTER TABLE dbo.[DesktopModulePermission] ADD CONSTRAINT [FK_DesktopModulePermissionUsers] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalDesktopModules_DesktopModules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalDesktopModules] ADD CONSTRAINT [FK_PortalDesktopModules_DesktopModules] FOREIGN KEY ([DesktopModuleID]) REFERENCES dbo.[DesktopModules] ([DesktopModuleID]) ON DELETE CASCADE
ALTER TABLE dbo.[PortalDesktopModules] ADD CONSTRAINT [FK_PortalDesktopModules_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Files_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Files] ADD CONSTRAINT [FK_Files_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID])
ALTER TABLE dbo.[Files] ADD CONSTRAINT [FK_Files_Folders] FOREIGN KEY ([FolderID]) REFERENCES dbo.[Folders] ([FolderID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_FolderMappingsSettings_FolderMappings' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[FolderMappingsSettings] ADD CONSTRAINT [FK_FolderMappingsSettings_FolderMappings] FOREIGN KEY ([FolderMappingID]) REFERENCES dbo.[FolderMappings] ([FolderMappingID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_FolderMappings_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[FolderMappings] ADD CONSTRAINT [FK_FolderMappings_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_FolderPermission_Folders' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[FolderPermission] ADD CONSTRAINT [FK_FolderPermission_Folders] FOREIGN KEY ([FolderID]) REFERENCES dbo.[Folders] ([FolderID]) ON DELETE CASCADE
ALTER TABLE dbo.[FolderPermission] ADD CONSTRAINT [FK_FolderPermission_Permission] FOREIGN KEY ([PermissionID]) REFERENCES dbo.[Permission] ([PermissionID]) ON DELETE CASCADE
ALTER TABLE dbo.[FolderPermission] ADD CONSTRAINT [FK_FolderPermissionUsers] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Folders_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Folders] ADD CONSTRAINT [FK_Folders_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_LanguagePacks_Packages' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[LanguagePacks] ADD CONSTRAINT [FK_LanguagePacks_Packages] FOREIGN KEY ([PackageID]) REFERENCES dbo.[Packages] ([PackageID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Mobile_PreviewProfiles_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Mobile_PreviewProfiles] ADD CONSTRAINT [FK_Mobile_PreviewProfiles_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Mobile_RedirectionRules_Mobile_Redirections' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Mobile_RedirectionRules] ADD CONSTRAINT [FK_Mobile_RedirectionRules_Mobile_Redirections] FOREIGN KEY ([RedirectionId]) REFERENCES dbo.[Mobile_Redirections] ([Id]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Mobile_Redirections_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Mobile_Redirections] ADD CONSTRAINT [FK_Mobile_Redirections_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ModuleControls_ModuleDefinitions' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModuleControls] ADD CONSTRAINT [FK_ModuleControls_ModuleDefinitions] FOREIGN KEY ([ModuleDefID]) REFERENCES dbo.[ModuleDefinitions] ([ModuleDefID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ModulePermission_Modules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModulePermission] ADD CONSTRAINT [FK_ModulePermission_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE
ALTER TABLE dbo.[ModulePermission] ADD CONSTRAINT [FK_ModulePermission_Permission] FOREIGN KEY ([PermissionID]) REFERENCES dbo.[Permission] ([PermissionID]) ON DELETE CASCADE
ALTER TABLE dbo.[ModulePermission] ADD CONSTRAINT [FK_ModulePermissionUsers] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_ModuleSettings_Modules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[ModuleSettings] ADD CONSTRAINT [FK_ModuleSettings_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_SearchItem_Modules' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SearchItem] ADD CONSTRAINT [FK_SearchItem_Modules] FOREIGN KEY ([ModuleId]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_TabPermission_Permission' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[TabPermission] ADD CONSTRAINT [FK_TabPermission_Permission] FOREIGN KEY ([PermissionID]) REFERENCES dbo.[Permission] ([PermissionID]) ON DELETE CASCADE
ALTER TABLE dbo.[TabPermission] ADD CONSTRAINT [FK_TabPermission_Tabs] FOREIGN KEY ([TabID]) REFERENCES dbo.[Tabs] ([TabID]) ON DELETE CASCADE
ALTER TABLE dbo.[TabPermission] ADD CONSTRAINT [FK_TabPermission_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalAlias_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalAlias] ADD CONSTRAINT [FK_PortalAlias_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalLanguages_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalLanguages] ADD CONSTRAINT [FK_PortalLanguages_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalLocalization_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalLocalization] ADD CONSTRAINT [FK_PortalLocalization_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_PortalSettings_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[PortalSettings] ADD CONSTRAINT [FK_PortalSettings_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Profile_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Profile] ADD CONSTRAINT [FK_Profile_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[Profile] ADD CONSTRAINT [FK_Profile_Users] FOREIGN KEY ([UserId]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Relationships_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Relationships] ADD CONSTRAINT [FK_Relationships_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[Relationships] ADD CONSTRAINT [FK_Relationships_RelationshipTypes] FOREIGN KEY ([RelationshipTypeID]) REFERENCES dbo.[RelationshipTypes] ([RelationshipTypeID]) ON DELETE CASCADE
ALTER TABLE dbo.[Relationships] ADD CONSTRAINT [FK_Relationships_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_RoleGroups_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[RoleGroups] ADD CONSTRAINT [FK_RoleGroups_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Roles_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Roles] ADD CONSTRAINT [FK_Roles_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[Roles] ADD CONSTRAINT [FK_Roles_RoleGroups] FOREIGN KEY ([RoleGroupID]) REFERENCES dbo.[RoleGroups] ([RoleGroupID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_SiteLog_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SiteLog] ADD CONSTRAINT [FK_SiteLog_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_SystemMessages_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[SystemMessages] ADD CONSTRAINT [FK_SystemMessages_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Urls_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Urls] ADD CONSTRAINT [FK_Urls_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UrlTracking_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UrlTracking] ADD CONSTRAINT [FK_UrlTracking_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UserPortals_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UserPortals] ADD CONSTRAINT [FK_UserPortals_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[UserPortals] ADD CONSTRAINT [FK_UserPortals_Users] FOREIGN KEY ([UserId]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UsersOnline_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UsersOnline] ADD CONSTRAINT [FK_UsersOnline_Portals] FOREIGN KEY ([PortalID]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
ALTER TABLE dbo.[UsersOnline] ADD CONSTRAINT [FK_UsersOnline_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_Vendor_Portals' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[Vendors] ADD CONSTRAINT [FK_Vendor_Portals] FOREIGN KEY ([PortalId]) REFERENCES dbo.[Portals] ([PortalID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UserProfile_ProfilePropertyDefinition' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UserProfile] ADD CONSTRAINT [FK_UserProfile_ProfilePropertyDefinition] FOREIGN KEY ([PropertyDefinitionID]) REFERENCES dbo.[ProfilePropertyDefinition] ([PropertyDefinitionID]) ON DELETE CASCADE
ALTER TABLE dbo.[UserProfile] ADD CONSTRAINT [FK_UserProfile_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID]) ON DELETE CASCADE
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UserRelationshipPreferences_Relationships' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UserRelationshipPreferences] ADD CONSTRAINT [FK_UserRelationshipPreferences_Relationships] FOREIGN KEY ([RelationshipID]) REFERENCES dbo.[Relationships] ([RelationshipID]) ON DELETE CASCADE
ALTER TABLE dbo.[UserRelationshipPreferences] ADD CONSTRAINT [FK_UserRelationshipPreferences_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID])
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'FK_UserRelationships_Relationships' in the database.
Could not create constraint or index. See previous errors.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:feb313d0-009e-4543-8af0-13d4266df870
Error Number:2714,State:5,Class:16
ALTER TABLE dbo.[UserRelationships] ADD CONSTRAINT [FK_UserRelationships_Relationships] FOREIGN KEY ([RelationshipID]) REFERENCES dbo.[Relationships] ([RelationshipID]) ON DELETE CASCADE
ALTER TABLE dbo.[UserRelationships] ADD CONSTRAINT [FK_UserRelationships_Users] FOREIGN KEY ([UserID]) REFERENCES dbo.[Users] ([UserID])
ALTER TABLE dbo.[UserRelationships] ADD CONSTRAINT [FK_UserRelationships_Users_OnRelatedUser] FOREIGN KEY ([RelatedUserID]) REFERENCES dbo.[Users] ([UserID])