March 4, 2010 at 2:09 pm
From a management studio query window, I know I can run:
select * from sys.objects
from the database I'm currently connected.
How can I run this select to a different database on the server without using the drop down and changing the database. Also, I don't want to have to utilize the USE statement.
While connected to master, I've tried
select * from msdb.dbo.[sys.objects]
and
select * from msdb.dbo."sys.objects"
but they don't work.
March 4, 2010 at 2:21 pm
select * from msdb.sys.objects
sys is the schema, not dbo.
Regards,
Toby
March 4, 2010 at 2:39 pm
Thank you.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy