SQL Server Permission Error

jdavis
Member Posts: 7
Hi All-
I have recently converted a database to SQL Server and receive the following error message:
The following SQL Server error(s) occurred while accessing the XXX table:
1088,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server] Cannot find the object XXX because it does not exist or you do not have permissions.
SQL:
SET IDENTITY_INSERT XXX ON.
I checked the roles for this user and she does have rights to the table in question.
Does anyone have an idea?
I have recently converted a database to SQL Server and receive the following error message:
The following SQL Server error(s) occurred while accessing the XXX table:
1088,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server] Cannot find the object XXX because it does not exist or you do not have permissions.
SQL:
SET IDENTITY_INSERT XXX ON.
I checked the roles for this user and she does have rights to the table in question.
Does anyone have an idea?
0
Answers
-
Maybe this topic will help?
http://www.mibuso.com/forum/viewtopic.php?t=18453
Other suggestions include:
1.) Upgrade / Install the Extended Stored Procedure
2.) Full backup and restore of db0 -
This error could indicate a problem with the "AutoIncrement" property of a specific field.
Does the table exist? Does it have a "AutoIncrement" field?Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thank you for the suggestions. I have some further information. It appears that this error occurs for certain users and not for others. I have SUPER rights on the db and do not receive this error.
I'm guessing it is a problem with security not synchronizing properly.0 -
SET IDENTITY_INSERT permission is granted only to members of DB_Owner role or higher (SA). The users that are working are probably members of this role.
This error occurs when an attempt is made to insert a value into an Auto-Increment field.There are no bugs - only undocumented features.0 -
This error occurs when an attempt is made to insert a value into an Auto-Increment field.
Record.INIT; Record.AutoIncrPKField := 0; Record.FieldXYZ := ...; Record.INSERT;
[/code]Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanks for the explanation. There was some custom code in Code Unit 80 that did a transfer fields from a custom table to a "posted" version of that table. The "posted" table had a field that was set to AutoIncrement. Since the value is coming from a different table it didn't need this property. I turned off AutoIncrement and users can post now.0
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