Powerbuilder 12.6 connection to a SQL Server linked server - sql-server

Do you know how to set SQLCA connection parameters in order to connect my pb 12.6 app to a linked server on SQL Server 2012?
We already connect to a SQL Server database but we also need to connect to a linked server on this database (customer requirement)
Any hints?
Thanks

Linked server happens at the server side. No change to login. To access the tables you will need to use the link name and database name in sql. To make it easier I would create views in your database that refer to the linked database table. Then you can use the view name in your app.

Related

Azure SQL get data from another non-Azure sql server using Linked Server

We have two SQL Server Database (EG: DB1 & DB2) that are hosted in NON-Azure environment (dedicated server). We are planning to migrate DB1 to Azure SQL.
Is there way the Azure SQL DB1 can talk to non-azure DB2 using Linked Server approach? I want to query in my Azure SQL (DB1) and get the data of DB2.
If I understand correctly you are trying to connect your Azure-db (DB1) from an on-premise db (DB2). From on-premises SQL Server, you can use linked servers and 4-part names to point to a database in Azure SQL DB using a datasource which would look like this -
[YourAzureServerName#database.windows.net].[YourDatabaseName].[YourSchemaName].[YourTableName]
For more details please check this link.
Yes you can certainly do that.
This atricle explains all the details that you need to do to accomplish that:
https://www.mssqltips.com/sqlservertip/3630/connect-an-azure-sql-database-to-an-onpremises-sql-server/
Note that your SQL Azure instance needs to be in "Standard" service tier to be able to do that.
If you want to add your SQL Azure server as a linked server to your on-prem SQL you can use ODBC connection.
Bellow MSDN article will help you with that:
https://blogs.msdn.microsoft.com/sqlcat/2011/03/07/linked-servers-to-sql-azure/

How to connect remotely to server using sql studio

I am new to SQL but this is what i would like to do.
I have these information
hostname: hostname.com
port: 1523
SID: oracledb
Username: username
Password: password
I would like to connect remotely to this server to retrieve data using MSSQL studio. Can you please explain to me how to do it. thank you
You cannot directly connect to and query an Oracle database using SQL Server Management Studio. You can, however, create a SQL Server linked server to your Oracle instance and query remotely through that. You would connect to your SQL Server using SSMS like normal, but query your linked server using the linked server name in 4-part naming fashion, e.g: select * from [MyOracleServer]..MyDatabase.MyTable.
Here is a SQLMag tutorial on doing this: Connecting SQL Server and Oracle Using Linked Servers.
read this thread from MSDN
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e6d61861-b271-4d93-b14e-12ba9356798f/connect-to-oracle-via-sql-server-management-studio?forum=sqltools
Question Sign in to vote 3 Sign in to vote Yes, you add linked server
and access Oracle data from SSMS and here is how you to add it. These
links will help you understand how to add and trouble shoot the
issues. Setting Up an Oracle Linked Server
How to set up and troubleshoot a linked server to an Oracle database
in SQL Server
Also in order to migrate an Oracle database to SQL Server, we can use
SSMA (SQL Server Migration Assistant for Oracle)
There is a migration assistant available for Oracle to SQL Server
Migration
http://www.microsoft.com/downloads/details.aspx?familyid=3e8722ae-77f3-4288-906d-f421e24d322f&displaylang=en
But all the system objects becomes null in this scenario
Thanks Sreekar
http://msdn.microsoft.com/en-us/library/ms190479.aspx

Connecting Oracle to Microsoft SQL Server on 2 different servers

I am trying to make a connection between Oracle and SQL Server to insert some values from Oracle into SQL Server. I have 2 questions which i was hoping you can help.
There is a stored procedure created in Oracle 11g database. It joins a few tables together and pushes the values into a table called my_table in SQL Server.
The issue/question I have: I've tried to make a connection between Oracle and SQL Server using this link: Making a Connection from Oracle to SQL Server - Page 2 — DatabaseJournal.com
The instruction is however for when Oracle and SQL Server are on a same server.
As is my case Oracle is on one server and SQL Server is on another, I am struggling to understand the concept of setting up Listener and tbs.
Do I have to do any configuration on SQL Server? Do I need to create the DNS on SQL Server?
When I create a DNS in Oracle server, the connection to SQL Server is successful (port 1433) but I'm not sure how to alter my Listener and TNS for that.
My Oracle knowledge is not advanced but so far I've managed to get to this point. Hope you can help me resolve the last bit of the puzzle.

Verify 2 SQL Server linked servers to Oracle are equal

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`

Cannot Create Database Diagram In SQL Server 2005

I've got SQL Server Management Studio 2005 and I'm trying to create a database diagram for a DB I created. I created the DB on the local SQL server an when I try to create a new database diagram it doesn't let me. It just gives me the option:
"Working with SQL Server 2005 diagrams".
It does not give me any option to create a new database diagram. It is strange though as I also connected to another SQL Server 2005 instance on our internal network and I have the option to create database diagram on that server.
Any help is appreciated.
Cian
If I remember correctly, you need a certain privilege (db-owner?) to create diagrams.
Could that be the problem?

Resources