Error executing procedure from access

kanika
Member Posts: 247
Good morning experts !!
I have a procedure in SQL Server 2012 that uses views from another database on another server with SQL Server 2008, the SQL procedure runs smoothly.
It happens that this procedure I have to run it from Access (Microsoft Office Professional Plus 2010) by a pass-through query.
The user who runs it has all the permissions on both servers in both views and in the procedure, in the connection string of the pass-through query the correct user name appears; But when the query is executed it does not recognize the user name and the error that I attached
Needless to say, ODBC does the test perfectly smoothly.
Is it possible to say in the procedure with which user is to be executed? I can not think of anything else.
Thank you very much.
I have a procedure in SQL Server 2012 that uses views from another database on another server with SQL Server 2008, the SQL procedure runs smoothly.
It happens that this procedure I have to run it from Access (Microsoft Office Professional Plus 2010) by a pass-through query.
The user who runs it has all the permissions on both servers in both views and in the procedure, in the connection string of the pass-through query the correct user name appears; But when the query is executed it does not recognize the user name and the error that I attached
Needless to say, ODBC does the test perfectly smoothly.
Is it possible to say in the procedure with which user is to be executed? I can not think of anything else.
Thank you very much.
0
Answers
-
Hello everyone!! First of all thank you in advance for the help, we forget that it is necessary to give them even if nobody has the solution just to interact you deserve.
As I see it takes many days my question and nobody answers I will reformulate it, I have this procedure in SQL Server 2012 R2
BEGIN
Drop table dbo.Tabla_Listado_Fabricacion_temp
Select customer, order, order_quantity, [Quantity Pending], ot, product, description, EXP_NAC, BASE, line into Table_Listado_Fabricacion_temp
From dbo.Vista_Listado_Fabricacion;
ALTER TABLE dbo.tabla_listado_fabricacion_temp ADD selection tinyint null;
Update dbo.Tabla_Listado_Fabricacion_temp set select = 0
END
Since SQL Server runs perfectly but when run from Access (Microsoft Office Professional Plus 2010) gives me the error that I attached
My question is is there any way to put in code that will run this procedure with the admin user?
Thank you very much.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