I successfully created a linked postgresql server in SQL Server 2008. I can also query results using
SELECT * FROM OPENQUERY(POSTGRES32,'SELECT * FROM public.categories')
Is there a way to treat that linked server (Postgresql) as a SQL Server database?
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..
I have an SQL Server installed on a local Windows 10 machine - I'm using Microsoft SQL Server Management Studio to interact with it.
I also have a DB2 database hosted on an IBM i machine and I've created a Linked Server in SQL Server Management Studio to represent it. I can connect to the Linked Server and can query/pull data from it successfully.
I'm trying to copy particular tables from the Linked Server and insert them into a Database/Schema in the SQL Server - I can do this successfully but unfortunately, it appears that in the process of copying the table over, none of the constraints (particularly in my case, the key constraints) are maintained.
Is there a simple way to copy over tables from a Linked Server to SQL Server (in SQL Server Management Studio) while maintaining key constraints?
The following query is an example of what I'm using to copy the tables over (one-by-one):
SELECT *
INTO SQLSCHEMA.SQLTABLE
FROM LINKSERVER.LINKDATABASE.LINKSCHEMA.LINKTABLE
The easiest way is to use proper tool for it like SSMA:
Microsoft SQL Server Migration Assistant (SSMA) is a tool designed to automate database migration to SQL Server from Microsoft Access, DB2, MySQL, Oracle, and SAP ASE.
Migrating DB2 Databases to SQL Server (DB2ToSQL)
SQL Server Migration Assistant (SSMA) for DB2 is a comprehensive environment that helps you quickly migrate DB2 databases to SQL Server or Azure SQL DB. By using SSMA for DB2, you can review database objects and data, assess databases for migration, migrate database objects to SQL Server or Azure SQL DB, and then migrate data to SQL Server or Azure SQL DB. Note that you cannot migrate SYS and SYSTEM DB2 schemas.
We have a SQL Server 2014 with a linked server with SQL Server 2016.
From SSMS on my local machine I can see the remote linked server under Server Objects, but I cannot see any of the tables in the database.
If I login to the machine running SQL Server 2014 and login with the same domain credentials I can see the linked server and the tables.
Suggestions?
We are doing a migration from Oracle 10g to SQL Server 2014. Once I set up the linked Server connection in SQL Server to the Oracle DB will I be able to run a statement like the following:
select * from linkedservername...schema.table
except
select * from Servername.database.schema.table
Not all queries will be this easy as I'll have to do some data manipulation on the oracle side. Will I need to use Oracle syntax for that or once I have the linked server set up will everything be in T-SQL for querying purposes?
Thanks
I am migrating SQL Server 2005 to SQL Server 2012.
One of the items to migrate is a linked server to oracle. The configuration of server, DNS, firewall, etc are not on my side.
I need to make sure they are configuring the correct linked server, pointing to the correct database (we have many copys of databases).
What Query can I run in both sql servers to identify the Oracles servers and databases are the same?
You can show all linked servers from the sys.servers table on each of the server instances.
select * from sys.servers;
The linked Oracle server will be listed under:
product = `Oracle`
and provider = `OraOLEDB.Oracle`