I have a remote database on a shared host, and I can connect to it through SSMS if I specify the db name in advanced options. If I try to expand the "Databases" section of the object explorer, it times out and won't list the available databases.
I need to back it up locally, so scripting it seems to be the only way. However, you need to right-click the db name to do that, which isn't possible. Is there a SQL script that I can run to export a db's structure and data?