SQL 2005 restore error 4902
Dave_Cintron
Member Posts: 189
Can anyone help explain this message which occurs at the end of a restore of a company with VERY little data?
The message follows table and key creation. Going into SQL Mgmt studio shows the table DOES exist both as table 7 and as 100000007 so it must be permissions. I am logged in as sa (dbo).
The following SQL Server error(s) occurred while accessing the Standard Text table:
4902,"42S02",[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot find the object "MCB51.dbo.Greenleaf$Standard Text" because it does not exist or you do not have permissions.
SQL:
ALTER TABLE "MCB51"."dbo"."Greenleaf$Standard Text" ADD CONSTRAINT "Greenleaf$Standard Text$0" PRIMARY KEY CLUSTERED ("Code")
The message follows table and key creation. Going into SQL Mgmt studio shows the table DOES exist both as table 7 and as 100000007 so it must be permissions. I am logged in as sa (dbo).
The following SQL Server error(s) occurred while accessing the Standard Text table:
4902,"42S02",[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot find the object "MCB51.dbo.Greenleaf$Standard Text" because it does not exist or you do not have permissions.
SQL:
ALTER TABLE "MCB51"."dbo"."Greenleaf$Standard Text" ADD CONSTRAINT "Greenleaf$Standard Text$0" PRIMARY KEY CLUSTERED ("Code")
0
Comments
-
It looks like you didn't finish the restoration. Click on tools and restore and it will ask you to continue finishing the restoration.0
-
Buddy, I've been working with SQL on NAV for 8 years, so I really need a better answer than "Installation 101".0
-
Answers like that are not conducive to a community spirit Dave, there's no need to bite someone's head off for suggesting something you've already thought of yourself. We're all thinking with you, and it's not always clear to estimate someone's proficiency level. A better way to apporach this would have been "Yes I thought about that too, so I checked (because we always doublecheck ourselves right
). It has to be something else". Then again, your reply could be totally in gest, it's not always easy to tell.
MY 2 cents: it might have something to do with your backup not including application objects.0 -
Dave Cintron wrote:Buddy, I've been working with SQL on NAV for 8 years, so I really need a better answer than "Installation 101".
:evil:
And in those 8 years did you ever find a way that a 100,xxx,xxx table could exist EXCEPT from an incomplete restore?David Singleton0 -
This error was solved by recompiling all of the tables AFTER importing the backup. Because the restore refused to complete, giving the error described in the first post, this recompile had to be done BEFORE the restore would complete.
I would like to know if anyone else is running into this bizarre behavior in SQL 2005 with the 5.0 SP1 client.0 -
were the objects in the db by any chance different than the backup?0
-
Absolutely not. This was a database created from scratch on a brand new install of SQL 2005. The Navision database was backed up and restored in the same hour.0
-
i'm right that you are restore an fbk :?:Do you make it right, it works too!0
-
We had the same problem. Here the solution:
You have object in the database how are compiled in a older version of Navision. Mark all objects and compile them. Then it works for sure
Mark0
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