How does one get data from two databases in SQL Server with only one SQL statement?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Corporate Trainer

You can get data from two databases using join or subquery. If the databases are there in single instance then u can use the notation like dbname.schemaName.tname in the place of table name. If the databases are there in different servers then you need to create linked server then u have to add server...
read more
You can get data from two databases using join or subquery. If the databases are there in single instance then u can use the notation like dbname.schemaName.tname in the place of table name. If the databases are there in different servers then you need to create linked server then u have to add server name also as part of table name. Hope this is clear... read less
Comments

Related Questions

I need your help to choose my career as I have three years of gap between my education. I know SQL. Can anyone tell me should I choose MS SQL server or oracle because I am interested in the database? Which one will be better to learn to get into the IT industry? Please help me! Thank you!
As you are strong and interested in SQL, why not to choose ETL Testing? It has a good career ahead in data projects. To survive in the market, you need both Oracle & SQL Server. Actually, both are almost same but are different products.
Santhosh
In how many days can i learn sql server dev.?
If saturday and sunday class then within 2 month. means 36 hours u can learn properly SQL Development course.
Glen

What are the everyday activities of an SQL queries for MIS Excecutive ?

For MIS executive, your everyday activity could be select the data, Insert the data, update the data and delete the data as well. Please make sure took table backup OR use Begin trans, Commit trans &...
Siddu
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Mail Merge In Word
Mail Merge is a useful tool that allows you to produce multiple letters, labels, envelopes, name tags, and more user information stored in a list, database, or spreadsheet. Mail Merge is most often used...

SQL Server – CAST/CONVERT to string – Pad zeroes or spaces to an integer
Recently, I came across quite a common question – as part of a data migration, someone wanted to pad integers with zeroes. There are various variations to this question, namely: How do I pad zeroes...

Temp Table in SQL Server
Temp Table in SQL Server The temp table in SQL Server can be created at the run-time, and perform all the operation that a normal table can do. There are two types of Temporary Tables in SQL Server: Local...

SQL Joins
SQL Joins SQL joins are used to combine rows from two or more tables. SQL JOIN An SQL JOIN clause is used to combine rows from two or more tables, based on a common field between them. The most common...

History of SQL server
In 1988, Microsoft released its first version of SQL Server. It was designed for the OS/2 platform and was developed jointly by Microsoft and Sybase. During the early 1990s, Microsoft began to develop...

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for MS SQL Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you