Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

index rebuild failed

Posted on 2016-08-09
8
Medium Priority
?
156 Views
Last Modified: 2016-09-07
I have index rebuild procedure failed. I have the following error. The failed run into this line then stop
Msg 1088, Level 16, State 9, Line 1
Cannot find the object "ABC_Staging.dbo.primed/mxc10288.enrollcoverage" because it does not exist or you do not have permissions.

Open in new window


The problem is I don't find this object. How come it keep failing into this line?

How to fix it
0
Comment
Question by:wasabi3689
8 Comments
 
LVL 2

Expert Comment

by:svalekar
ID: 41749854
Drop the rebuild procedure and create it again and checked it.

Execute procedure by giving full qualified name "Database.DBO.storeprocname"
0
 
LVL 10

Expert Comment

by:Jason clark
ID: 41749904
Dropping the sproc and recreating can fix your prblem or an internal table used by Change Tracking, and you cannot access this table unless you are connected on the Admin connection.
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 41749926
I have index rebuild procedure failed.
Can you explain how is the procedure?
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 14

Expert Comment

by:Nakul Vachhrajani
ID: 41750131
I wonder if it's the presence of a slash (/) in the object name that is the problem.

Should "ABC_Staging.dbo.primed/mxc10288.enrollcoverage" actually be "[ABC_Staging].[dbo].[primed/mxc10288].[enrollcoverage]", i.e. is the table name [primed/mxc10288]?
0
 

Author Comment

by:wasabi3689
ID: 41751304
[primed/mxc10288].[enrollcoverage] is the table name.
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 41751585
So, why do you need the dbo part in the table name?
The correct name to use should be: ABC_Staging.[primed/mxc10288].enrollcoverage
0
 
LVL 14

Accepted Solution

by:
Nakul Vachhrajani earned 2000 total points
ID: 41752795
I agree. If [primed/mxc102888] is the schema, the [dbo] does not make sense. The 4-part naming convention is: [instance name].[database name].[schema name].[table/object name]

In your case, you only need [database name].[schema name].[table/object name] - where does the [dbo] come in?
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 41789130
wasabi, what's the difference from Nakul's comment and mine?
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question