Skip to main content
Solved

Connecting to multple databases on the same SQL Server


Forum|alt.badge.img+2

Hi,

Is it possible to connect to several databases that are on the same SQL server with one data source connection?

We have tried to connect to multiple databases on the same SQL Server using the provider “TimeXtender SQL Data Source 17.0.1.0”.

We tried leaving the Database parameter blank, putting in *, and writing a comma-separated list of databases, but neither way works. 

Has anyone had any success doing this with this connector or another?

We’re using version 6221.1.

Thanks!

Best answer by bas.hopstaken

Hi @pontus.berglund ,

As far as I know this it not possible. 

View original
Did this topic help you find an answer to your question?

6 replies

bas.hopstaken
TimeXtender Xpert
Forum|alt.badge.img+4
  • TimeXtender Xpert
  • 86 replies
  • Answer
  • April 21, 2023

Hi @pontus.berglund ,

As far as I know this it not possible. 


Forum|alt.badge.img+2

Hi @bas.hopstaken,

I was assuming that could be the case.

@Christian Hauggaard, should I make a post about this in the ideas section, or could you move this post there? Let me know what you think is best.


rory.smith
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 659 replies
  • April 21, 2023

If you are using a single SQL instance to host all databases you could consider adding views in one database that combines all together. Are you wanting to combine them because they are the same structure split across different databases? Then you do the combination after the ODX in your DWH instance. That is what mapping sets are for.

If the structures of the databases are different, then I would wonder why you would want to treat them as one entity.


AvanWijnen
Employee
Forum|alt.badge.img
  • Employee
  • 23 replies
  • April 21, 2023

Hi @pontus.berglund,

Can you clarify why you would want to use multiple databases within the same connection?

Thanks,

//Alex

 


Forum|alt.badge.img+2

Hi @rory.smith and @AvanWijnen,

We do indeed have a SQL Server data source with around 10 databases with the same structure, tables, views etc. I think it would be “cleaner” to have the same data source for all of these. Now we have 10 similar data sources, which was albeit not much work to create thanks to the copy function in the portal.
As you suggested we will map the common tables together in the DW instance.

Thanks!


AvanWijnen
Employee
Forum|alt.badge.img
  • Employee
  • 23 replies
  • April 24, 2023

That's exactly what the copy function is for @pontus.berglund 😉.
I also want to highlight the possibility to map multiple tables at once (see video).

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings