SQL Server linked server to a Microsoft Dataverse environment - sql-server

I would like to connect from an on premise Microsoft SQL Server environment to a Dataverse environment in Azure. I want to be able to download data from Dataverse to SQL Server. I would like to know if i can use linked servers to do this and what are the correct properties for the connection. Thanks!

Related

List schema and tables on SQL Server remotely

We have a SQL Server but access is limited so we can't access the server directly. The only available access is to use another server running on CentOS Linux where I can SSH to it and then from this intermediate server to further connect to this SQL Server.
I am looking a simple way to list databases and schema on the SQL Server.
What would be the command to do the above from this Linux server, assuming one has the IP address and credentials of the SQL Server.

How to create a linked server to connect azure sql DW and MongoDB?

I tried it via SSMS, but i don't see the linked server folder in object explorer.
Tried creating via T-sql stored procedure, but the sp_addlinkedserver (and also other linked server related) does not exist.
I cannot see it in the SP section at all, cannot see it in master DB too. I am using, Azure sql server ADW on cloud, do not see many of the SPs that are other wise available as part of SQL server.
softwares and their versions------->>
SQL server version 2019 microsoft sql server 2012 native client
installed microsoft odbc driver 17 for sql server installed SQL
Server Management Studio (SSMS) 15.0.18206.0 Microsoft Analysis
Services Client Tools 15.0.1567.0 Microsoft Data Access
Components (MDAC) 10.0.18362.1 Microsoft MSXML 3.0 6.0
Can anyone tell me what I am doing wrong here??
I have been trying to find the definition of the SP sp_addlinkedserver but unable to find it. IF i find this, i will myself add it in the DW. Please help me. Thanks
Azure SQL DW doesn't support linked server:
If you want copy data between Azure DW and MangoDB, Maybe you can try Data Factory. Reference:
Copy data from MongoDB using Azure Data Factory.
Copy and transform data in Azure Synapse Analytics (formerly Azure
SQL Data Warehouse) by using Azure Data Factory
Hope this helps.

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

SQL Server Express usage with Pentaho (or any non-microsoft product)

I'm trying to connect a local SQL Server database to an ETL utility called Pentaho. Pentaho very easily connects to full versions of SQL server without issue.
I've set mixed mode authentication and created a sql server account for the sql server express instance that can be used to login through SSMS.
When I try to log in via Pentaho, I get errors about it not knowing what the server is, or the server not responding. I've tried {localhost, myip, localhost\SQLEXPRESS, myip\SQLEXPRESS, just SQLEXPRESS} as the server name (and SQLEXPRESS is the instance name).
I know I've had trouble connecting other programs to SQLEXPRESS databases in the past. Can someone tell me why it acts different than when using a full install of SQL Server and how I can get around these differences?
If SQL Server Express is on a different server, have you enabled TCP/IP protocol?

Resources