Get data from multiple databases into single store procedure
I want count the users of three databases into a single store procedure?How it possible?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Nov 2, 2016, 3:18 AM EDT
SELECT * FROM DB1.dbo.MyTable UNION ALL SELECT * FROM DB2.dbo.MyTableManas MohapatraRank #182 · 13.2K reputationPosted Nov 2, 2016, 3:20 AM EDT
Ananth GRank #1,176 · 1.5K reputationPosted Nov 2, 2016, 4:39 AM EDT