I don’t use global variables very often, but I just tried it, and it worked for me.
We are going to need more specific information. How did you declare it? What initial value did you give it? What were you trying to do with it when it failed? Is it just the other database that doesn’t recognize it, or does the database where you created it not recognize it either?