Page Level Locking

ryanatwork
Member Posts: 47
Hi,
Getting this error when trying to rebuild an index to a table.
Executing the query "ALTER INDEX [IDX_Billto_SalesDate] ON [dbo].[Company..." failed with the following error: "The index "IDX_Billto_SalesDate" (partition 1) on table "Company$Sales Shipment Line" cannot be reorganized because page level locking is disabled.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
I have recently done a technical upgrade by opening the database in 2009SP1.
I know that I could alter the index to allow it but don't know if that is a good idea.
Cheers,
R
Getting this error when trying to rebuild an index to a table.
Executing the query "ALTER INDEX [IDX_Billto_SalesDate] ON [dbo].[Company..." failed with the following error: "The index "IDX_Billto_SalesDate" (partition 1) on table "Company$Sales Shipment Line" cannot be reorganized because page level locking is disabled.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
I have recently done a technical upgrade by opening the database in 2009SP1.
I know that I could alter the index to allow it but don't know if that is a good idea.
Cheers,
R
0
Comments
-
That index was added directly in SSMS, it is not part of NAV. NAV indexes are called '$1', '$2', and primary keys are called '<companyname>$<tablename>$0'. As far as NAV is concerned you can just remove the whole thing. I'd find out how it got there first though.0
-
I know that I could alter the index to allow it but don't know if that is a good idea.
USE [Database] GO ALTER INDEX [IDX_Billto_SalesDate] ON [dbo].[Company$Sales Shipment Line] SET ( ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, STATISTICS_NORECOMPUTE = OFF )
I guess the index was created/modified with the options "ALLOW_ROW_LOCKS = OFF, ALLOW_PAGE_LOCKS = OFF" which is now causing the trouble.
Does this help?Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanks for the valuable advice.
Deleted.
Cheers,
R0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions