initial commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# SQL Server Management Studio Solution File, Format Version 18.00
|
||||
VisualStudioVersion = 15.0.28307.421
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{4F2E2C19-372F-40D8-9FA7-9D2138C6997A}") = "OCTPDBA-347 perfs ama051 and ama201", "OCTPDBA-347 perfs ama051 and ama201.ssmssqlproj", "{210D62C9-E92C-48F2-A085-C8E8A93B48EC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Default|Default = Default|Default
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{210D62C9-E92C-48F2-A085-C8E8A93B48EC}.Default|Default.ActiveCfg = Default
|
||||
{DFCD700F-ED92-4F7F-989C-44A5C07F3123}.Default|Default.ActiveCfg = Default
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {65739266-9A11-4F5E-94B0-5F2D25B228AF}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="SqlWorkbenchSqlProject">
|
||||
<Items>
|
||||
<LogicalFolder Name="Connections" Type="2" />
|
||||
<LogicalFolder Name="Queries" Type="0" />
|
||||
<LogicalFolder Name="Miscellaneous" Type="3" />
|
||||
|
||||
</Items>
|
||||
</SqlWorkbenchSqlProject>
|
||||
54
OCTPDBA-347 - perfs ama051 and ama201/idx changes.sql
Normal file
54
OCTPDBA-347 - perfs ama051 and ama201/idx changes.sql
Normal file
@@ -0,0 +1,54 @@
|
||||
--ama201
|
||||
|
||||
-- NCIX_entry_covering_acounting
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Entry'), 'NCIX_entry_covering_acounting', 'IndexID') IS NOT NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_entry_covering_acounting drop'
|
||||
DROP INDEX dbo.Entry.NCIX_entry_covering_acounting;
|
||||
END;
|
||||
|
||||
-- NCIX_entry_ET_reconciliation_status
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Entry'), 'NCIX_entry_ET_reconciliation_status', 'IndexID') IS NOT NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_entry_ET_reconciliation_status drop';
|
||||
DROP INDEX dbo.Entry.NCIX_entry_ET_reconciliation_status;
|
||||
END;
|
||||
GO
|
||||
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Entry'), 'NCIX_entry_COL_ET_reconciliation_status', 'IndexID') IS NOT NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_entry_COL_ET_reconciliation_status drop';
|
||||
DROP INDEX dbo.Entry.NCIX_entry_COL_ET_reconciliation_status;
|
||||
END;
|
||||
GO
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Entry'), 'NCIX_entry_COL_ET_reconciliation_status', 'IndexID') IS NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_entry_COL_ET_reconciliation_status create';
|
||||
CREATE NONCLUSTERED INDEX NCIX_entry_COL_ET_reconciliation_status
|
||||
ON [dbo].[Entry] ([ET_reconciliation_status])
|
||||
INCLUDE
|
||||
([ET_document_header],
|
||||
[ET_account],
|
||||
[ET_debit_base_amount],
|
||||
[ET_credit_base_amount],
|
||||
[ET_reconciliation_base_amount]
|
||||
);
|
||||
END;
|
||||
GO
|
||||
|
||||
-- NCIX_Document_header_COL_DH_predefined_entry
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Document_header'), 'NCIX_Document_header_COL_DH_predefined_entry' , 'IndexID' ) IS NOT NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_Document_header_COL_DH_predefined_entry drop'
|
||||
DROP INDEX dbo.Document_header.NCIX_Document_header_COL_DH_predefined_entry;
|
||||
END;
|
||||
GO
|
||||
|
||||
IF INDEXPROPERTY(OBJECT_ID('dbo.Document_header'), 'NCIX_Document_header_COL_DH_predefined_entry' , 'IndexID' ) IS NULL
|
||||
BEGIN;
|
||||
PRINT 'idx NCIX_Document_header_COL_DH_predefined_entry create'
|
||||
CREATE INDEX NCIX_Document_header_COL_DH_predefined_entry ON dbo.Document_header(DH_predefined_entry, DH_state) INCLUDE(Document_header_ID, DH_doc_date);
|
||||
END;
|
||||
GO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user