Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
85 views

I have a query that contains two CTEs, one based on a linked Oracle server (from a SQL Server) that fails. I can fix it by doing any of the following: add a select limit (e.g. TOP 1000) to the SELECT ...
Anya Hayes's user avatar
0 votes
1 answer
182 views

I am trying to do a backup of all stored procedures and tables from one database server to another. I want to get a list of stored procedures and tables that exist in the destination database so I can ...
Nature and Code's user avatar
-1 votes
1 answer
652 views

This may seem like an overly verbose post but I appreciate being given all the details when asked a question, so I am doing the same thing here: I have a situation where I'm running SQL Server Dev ...
markaaronky's user avatar
  • 1,305
0 votes
1 answer
67 views

I am writing a system that reads from a remote server and read/write to a local server. I am at the point where I now have to query data from both the remote server and my local server together (for ...
Calvin's user avatar
  • 17
-1 votes
1 answer
306 views

I have a SQL function that adds a number of business days into a specific date. The function is running ok in the local database server. However I'm having problem running the function from linked ...
ichachan's user avatar
  • 693
0 votes
1 answer
163 views

We have local SQL Server data that we would like to sync to Redshift nightly. I can write individual values to the Redshift server, but can not can do a standard insert of data from a local table ...
user3866578's user avatar
0 votes
1 answer
31 views

I have seen examples of INSERT queries that pull date from tables in multiple databases or multiple servers but I have not been successful in putting all of it together. I have a query that uses ...
Mark Simmonds's user avatar
0 votes
0 answers
59 views

Let me explain my situation: Server A: This is my SSRS (SQL Server Reporting Services) server, which hosts all users and source connections. SQL Server B: This server is used for query connections ...
Mujahid's user avatar
  • 47
0 votes
1 answer
135 views

I have an insert statement basically something like this: insert into openquery(Test_LinkedServer, 'select a,b,c from my_ora_table') select a, b, c from my_dbo_table; ...
Oguen's user avatar
  • 519
1 vote
0 answers
231 views

I see that with snowflake ODBC driver you can specify the authenticator as oauth and provide token for authZ. But I am trying to figure out when using the ODBC driver from snowflake for SQL linked ...
Javi's user avatar
  • 11
1 vote
0 answers
89 views

I'm trying to update a target server using the Schema Compare feature in Visual Studio 2019. Upon checking the sys.servers table, I can see the linked server and confirmed that I can run queries ...
DBAle's user avatar
  • 11
0 votes
1 answer
75 views

I'm working on a project where I need to connect to a Cosmos DB using a Linked Server connection in SSMS. As I make the connection, I need to use the ODBC Schema Editor to map the data. Within the ...
alcor8's user avatar
  • 383
0 votes
0 answers
163 views

I have set up a linked server connection from my on-premise to Azure called AZURE. When I run the following code, it errors out: DECLARE @DynamicSQL NVARCHAR(MAX)=' MERGE [AZURE].[Test].[dbo].[...
user avatar
0 votes
0 answers
35 views

I am having an issue troubleshooting what is wrong with this linked server that I set up in SQL. This is what my setup looks like in SSMS I am able to query things successfully inside SSMS like this ...
joeb's user avatar
  • 887
0 votes
2 answers
169 views

I am trying to use dplyr to pull data from a table on a linked SQL Server. I am able to connect and run queries using the dbGetQuery method as long as I (1) provide the fully qualified path ([server ...
Kourosh Alizadeh - CDPHE He Hi's user avatar
1 vote
0 answers
187 views

Our SQL Server 2019 (Server A) is configured to use linked servers with SQL Server 2019 (Server B). Kerberos Authentication is enabled and SPNs are configured correctly. All the accounts needed are ...
sqllover2020's user avatar
0 votes
0 answers
100 views

I have Linked server from PostgreSQL 12 to my SSMS and trying to join two PostgreSQL tables and insert the result to my table with the stored procedure. The problem I have is when adding a WHERE ...
Pawel G's user avatar
  • 47
0 votes
2 answers
110 views

I have a Azure SQL online SQL-database. How can I create a linked server to a DB2 server with a VPN (Fortigate). I have checked some tutorials, but my SSMS does not have a folder "linked Servers&...
Lukas Fürst's user avatar
0 votes
2 answers
869 views

On my SQL Server instance, I have about 30-40 stored procedures. In those stored procedures, sometimes I call a table from a linked server something like. Select * From Picktickets P Left Join [JMNYC-...
user7959439's user avatar
0 votes
1 answer
184 views

How do I create a linked server between DWH SQL Server (which is in a service providers environment) and MS Azure. What type of settings must I make sure is on Azure and what is the string that I ...
Reez's user avatar
  • 13
1 vote
1 answer
1k views

I have SQL Server Managed Instance. Now I want to get data from on-premises SQL Server to SQL Server Managed instance through linked server on a daily basis. The on-premises SQL Server has only ...
Narendra's user avatar
0 votes
0 answers
126 views

In a stored procedure, I have a few With clauses, of a query executed at linked server A: DECLARE @myQuery VARCHAR(MAX) SET @myQuery = 'SELECT * FROM (WITH A AS (Select ... from ...), B AS (...
Henry's user avatar
  • 1
0 votes
1 answer
1k views

I need some help in configuring an SQL Server csv linked server. I already have an Excel linked server working without any problems, but each time I try to connect to my csv, I get varying error ...
Steve Martin's user avatar
0 votes
1 answer
406 views

An error occurred while preparing the query SELECT SUBSTRING(UGB,1,9) as EntityCode, SUBSTRING(FUNCIONARIO/CREDOR DESCONTADO,1,9) as NRCId, SUBSTRING(FUNCIONARIO/CREDOR DESCONTADO,11,75) as CustName, ...
Sugi Joshuva's user avatar
1 vote
0 answers
123 views

We have a stored procedure running on SQL Server that exchanges data with an Oracle table, through a linked server, the versions of both products are at the end of this post. In our stored procedure, ...
Agostinho's user avatar

1
2 3 4 5
30