3 pieces to the puzzle:
MS Access Front end
SQL Server with stored procedures
Oracle server with data
I want to use MS Access to call a stored procedure in SQL Server, which takes data from the Oracle server to SQL Server.
Problem: when I call the stored procedure from the MS Access frontend, which is stored in SQL Server, it times out...
I can run other SQL Server stored procedures (that don't use the Oracle server) from Access, and that works without any problems (no issues with security etc.)
I can run the stored procedure in SQL Server using SSRS and it works fine (so I know the stored procedure as such works).
I use Windows authentication to access SQL Server from Access, however there is a different username and password from SQL Server to Oracle (which may be something to do with it?)
Because the stored procedure works on SQL Server, how can I get the MS Access frontend to simply run the stored procedure on SQL Server?
Hope you can help!
Related
i have created a linked server from sql server to oracle 11g database, i want to run a store procedure with output parameter from oracle 11g database to sql server but i keep getting errors.....
Can i get help from here..
We have a pass-through query in MS Access that we need to convert to SQL Server.
The query in MS Access is using a 32-bit ODBC DSN to connect to a Redshift database. The query is complex (e.g. has about 20 sub-queries), but runs fine in MS Access within 1 to 2 minutes.
We converted that query to SQL Server and use a Linked Server connection using a 64-bit ODBC DSN with the MSDASQL provider to connect to that same database. The query in SQL Server will try to run for over 30 minutes but then eventually times-out.
Any idea why it would work in MS Access and not SQL Server?
I thought it might related to using 64-bit vs 32-bit, so I tried adding a 32-bit ODBC as a Linked Server, but SQL Server would not allow me to.
Given the feedback I decided to scrap using Linked Sever and used SSIS instead to pull in the data. Thanks everyone for your time and help.
I've been asked to execute/call Stored Procedure from Salesforce.
I'm using SQL Server 2017 Enterprise.
What do I need to execute/call a SQL Server stored procedures from Salesforce?
At the moment I'm using SQL Server Management Studio and stored procedures to execute all my API calls. I'm wondering where could I get started if I wanted to transfer the schema and queries within my stored procedures to github. Thanks!
I was wondering if someone could give me some pointers on how to connect to an Oracle Database from stored procedure in SQL Server.
Firstly on your SQL Server server you will need to install Oracle Client Tools, the reason behind this is any machine that wants access to a Oracle Database will need the necessary Oracle Client Tools installed to access it.
Secondly you will need to configure the file "tnsnames.ora" that is installed with the above configured to point to the required Oracle Server/Database that you want to connect to.
Now you will need to create a Linked Server from your SQL Server management studio for that server to the oracle server.
Then in your stored procedure you have to follow the rule of:
[SERVER_NAME].[DATABASE].[OWNER].[OBJECT] in order of accessing thing on the oracle database, but keep in mind this is SQL Server syntax and there might be some minor twiking needed.
This is a rough outline and I hope it has set you on your way.