c# - Looking for a good implementation that will access multiple databases simultaneously -
i want find out if there's implementation (in c#/asp.net) on how access records different databases simultaneously. have simple application suppose search on these databases, then, display record if keyword matched.
i have 5 databases (currently using mysql) in , expanding on future (might changing sql server). aware on how search on single database, while i'm still learning how in multiple databases.
any tips, comments or suggestions?
i can't mysql, in sql server can select multiple databases (so long user connecting has correct permissions). if tables similar across databases perhaps in 1 query unioning results together. so, if had 3 databases (called db1
, db2
, db3
) , each had table called records
this:
select * db1.dbo.records name '%searchterm%' union select * db2.dbo.records name '%searchterm%' union select * db3.dbo.records name '%searchterm%'
Comments
Post a Comment