I try to get all table names for all databases.
But GetSchema(“Tables”) returns names only for one db.
It’s strange cause I use no restrictions and have dbowner on many dbs with read/write permissions.
What do I need to get all tables info?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I made it this way:
The real issue is that even initial catalog is not specified explicitly default db is assigned. So GetSchema(“Tables”) shoul be called for every db on the server.
It may be other db, not necessarily ‘master’.
And I thought GetSchema(“Tables”) returns all tables for all databases.