My new employer is a small company, and we have one SQL Server that houses databases for a few systems. Each system has its own login.
What I would like to be able to do (once I get permissions for the second system) is to at least explore writing one query against 2 databases that have separate logins.
My first question is: Is this even possible? It seems to me that I would have to have a separate connection to the server with the proper credentials for each database.
My next question is: If possible, is it advisable? Would I run into more issues in this scenario than in a scenario where my Windows credentials are accepted at all connected databases?
What I expect to happen currently is:
Get permissions to the 2nd database (I currently have permissions to the "main" system database, and second database is in progress)
Write queries from each database, dumping results into temp tables so I can query without any concern of affecting production.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
What I would like to be able to do (once I get permissions for the second system) is to at least explore writing one query against 2 databases that have separate logins.
My first question is: Is this even possible? It seems to me that I would have to have a separate connection to the server with the proper credentials for each database.
My next question is: If possible, is it advisable? Would I run into more issues in this scenario than in a scenario where my Windows credentials are accepted at all connected databases?
What I expect to happen currently is:
Get permissions to the 2nd database (I currently have permissions to the "main" system database, and second database is in progress)
Write queries from each database, dumping results into temp tables so I can query without any concern of affecting production.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57