I have created a linked server in SQL server 2016 but I can only see tables and views under linked server databases (No stored procedures).
When I try to execute a procedure at the linked server using EXECUTE AT command I'm getting a
Could not find stored procedure"
error. But I can select tables using [ServerName].[DBName].dbo.[TableName].
Is there any missing configuration in order to get stored procedures?
Related
I created a SSIS package which is deployed in my centralized SQL Server. There is a stored procedure written in centralized Server which clean the data from tables. Now my SSIS package from centralized Server is connecting to multiple servers and I need to execute that stored procedure to clean the data.
I don't have any linked servers as I got connecting strings to multiple servers from centralized tables.
How can I execute the stored procedure and do my task in other servers?
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..
I have two databases; SQL Server uses SSMS to connect and Oracle DB uses Oracle SQL Developer to connect.
I want to create a view in Oracle database from SSMS.
I tried this code in SSMS:
CREATE VIEW LINKDB_ORACLE..user_oracle.ViewCreate_OnOracle
AS
SELECT UserId, UserName
FROM [dbo].[Users]
When I run this query, I get this error:
The object name 'LINKDB_ORACLE..user_oracle.ViewCreate_OnOracle' contains more than the maximum number of prefixes. The maximum is 2.
How to I can query data from SQL Server use Oracle SQL Developer, if not use view method above.
I use SQL Server 2012 and Oracle 12c
You can't use this syntax, it will be easier to create all views using Oracle Tools.
From Microsoft documentation:
A view can be created only in the current database. The CREATE VIEW must be the first statement in a query batch.
Create-view-transact-sql
If you have to use SSMS, you can try syntax:
EXEC ('CREATE VIEV...') AT linked_server
If you want to see SQL Server data from Oracle database, then check this post:
Oracle equivalent for linked server
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!
I'm trying to use Linq to run queries against a linked server on our SQL Server machine through Visual Studio.
On the SQL Server, I've successfully created the linked server and can run queries on it. In Visual Studio I've added a new data connection (under Server Explorer) to the SQL Server with success but the linked server tables are not available.
How can I get the linked server tables to show up? Or can I even do this?
I usually create a view in a local database for each table I access through a linked server. That allows me to change the links as needed without having to change any SQL. And you should be able to use the view in LINQ to SQL without issue.