Connect to SQL Server query from Excel - sql-server

i am trying to connect to a query that is build in sql server, but i cannot find where is it saved (the address). Just to clarify - no trouble connecting to tables on the same server.

You can't connect to a query in SQL Server from Excel.
You can connect and retrieve data from tables and views.

Related

How can I transfer only data from mysql table to a SQL Server table?

Currently I am trying to migrate from mysql to Microsoft SQL Server. For this I have transferred the entire database from mysql to SQL Server and did some modification in the SQL Server database structure. Now I want to transfer only data from my mysql database to the SQL Server database.
I am using SQL Server 2019. Do you have any solution for this?
Thanks in advance.
I have tried to find a solution for this but didn't find any to transfer only data.

How to connect two databases at the same time in SQL Server?

How to connect to two databases at the same time in SQL Server?
i want to create a query from a local database db1 on some tables exist in an outside database db2. Im working with SQL Server.
The servers will need to be connected as a Linked Server in Server Objects, Linked Servers with a user that has access to both servers.

Replicate SQL Server over IP

I'm trying to replicate from SQL Server 2008 to a remote SQL Server 2005. I can't add subscribers with SQL Login, and I'm getting this error.
I tried adding aliases, editing hosts file, adding the subscriber directly form T-SQL with no success.

Cannot connect to SQL Server using Microsoft Excel Power Query

I'm having trouble connecting to a SQL Server 2008 R2 data source using Excel 2013 Power Query.
I have created a new Power Query query, and created a new SQL Server datasource. I have specified the server name and database, but have not specified any specific query.
I am using SQL Server authentication to login to the database, and the connection is encrypted.
When I attempt to set up the connection in Excel Power Query, I get an error message: DataSource.Error:
No further error details are supplied.
I have checked that the SQL Server allows remote connections, and I have tested the SQL Login by using the sqlcmd utility to connect to the database server and database and run a basic SELECT query.
If anyone can shed any light on what I'm doing wrong, I'd be very grateful.
For anyone reading this in 2017:
If you are using Windows 7 and above, use the driver listed in the ODBC Data Sources. The only case where I had to install a client and driver, was when I wanted to connect to an oracle database.
To setup and connect to SQL server, I opened ODBC Data Sources, selected 'Add', chose the SQL server option (not native client versions) and added the server and database details where prompted. Then test the connection from ODBC data sources.
My SQL server connections usually require full TNS info all the way from server name, then database name despite the claim that it's optional.
Do you have the odbc driver?
I have run into this problem previously when I tried to connect remotely.

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.

Resources