I have two databases in my project. One of them is the ASPNETDB.mdf. I'm wondering if there is a solution to merge these two or link them. Because I need my UserID from the ASPNETDB if I want to make a post to my other DB.
Thanks in advance!
I have two databases in my project. One of them is the ASPNETDB.mdf. I'm wondering if there is a solution to merge these two or link them. Because I need my UserID from the ASPNETDB if I want to make a post to my other DB.
Thanks in advance!
You can link one oledb database into a mssqlserver allowing cross database joins:
select a.id, a.name, b.InfoFromOtherDatabase
from dbo.myTable a inner join OtherServer.dbo.OtherTable b on a.id=b.id
See here (msdn) for details.