View Full Version : Can location of back end be displayed?


Gkirkup
04-16-2010, 02:26 PM
I have recently split a production database, and now have two (or more) versions of the back end in different locations. So that I can be quite sure which back end is linked, on the productiion system and the development system, can I recover the 'back end location' from anywhere? I would then display that on the main menu.

Robert

SOS
04-16-2010, 02:28 PM
Try this in a query:


SELECT SplitDBConn(Nz([Connect],"")) AS ConnectedDb, MSysObjects.Database
FROM MSysObjects
GROUP BY SplitDBConn(Nz([Connect],"")), MSysObjects.Database, MSysObjects.Type
HAVING (((MSysObjects.Type) In (4,6)));

SOS
04-16-2010, 02:30 PM
The Connect field is if you have any SQL Server, etc. linked tables. If not you can omit that column.

Gkirkup
04-17-2010, 09:46 PM
SOS: That worked great. Thanks so much!

Robert

SOS
04-19-2010, 09:30 AM
Glad we could help. :)