Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:04:26+00:00 2026-06-16T01:04:26+00:00

I have 10+ SQL Server databases, from where I would use one table from

  • 0

I have 10+ SQL Server databases, from where I would use one table from each database to display information using the application that I am creating. For instance, DB1, DB2….DB10. NewDB (Account, Country, Costcenter….etc.).

I have started with creating a new database which would contain all the information from all those 10+ databases. However, I am confused in many cases.

  1. First of all what process should I follow? Shall I create a table (in new database) with the same structure as the actual data source and insert data from actual data source to new database?

  2. Should I be doing this on the DBMS? If so, is it some scripting? (hint expected since very new to this)

I am creating a report generation application which has 10+ data sources. I need some hint which way should I proceed?

Thanks for advice/help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:04:27+00:00Added an answer on June 16, 2026 at 1:04 am

    If the tables are on the same server instance you could simply create a view that links together the tables like this

    CREATE VIEW [dbo].[MULTITABLELINK]
    AS
    SELECT     ID, 'Database1' AS dbSource , Account, Country
    FROM       [database1].dbo.AccountTable
    UNION
    SELECT     ID, 'Database2' AS dbSource , Account, Country
    FROM       [database2].dbo.AccountTable
    

    but in your case (different SqlServer Instances) you probably need to create a Linked Server that allows to see the different instances inside the one working for you

    For example:

          EXEC master.dbo.sp_addlinkedserver 
    @server = N'TheFirstLinkedServerName', 
    @srvproduct=N'SQLSERVER', 
    @provider=N'SQLNCLI', 
    @datasrc=N'TheRemoteServerName', 
    @catalog=N'TheCatalogToUse'
    
          EXEC master.dbo.sp_addlinkedsrvlogin 
    @rmtsrvname=N'TheLinkedServerName',
    @useself=N'False',   -- True if your users are on the same windomain
    @locallogin='TheLocalDomainAndUserName',
    @rmtuser='TheAllowedUserOnTheRemoteInstance',
    @rmtpassword='ThePassowordOfTheRemoteUser'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one SQL server database which was created using Import/Export Wizard from an
I have a DataGridView which is filling from Table in SQL Server Database. One
I am trying to query SQL Server database from C# I have class Class_A
I have a SQL Server database which I can read from, is there a
i have a dropdownlist that populates from the sql server database. populating the list
i want to practice connecting from asp.net to a sql server database. i have
I have a few SQL Server databases (all in one server), containing their own
I need to export data from a SQL database (some groups use SQL Server,
I have 3 tables in my SQL Server database: Teacher Student Parent Each of
I have written a T-SQL script that migrates some data from one database to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.