Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenSchema() is missing some tables

Status
Not open for further replies.

WMXTeam

Programmer
Oct 5, 2005
41
US
We are using OpenSchema to return a list of tables in our SQL Server database. The two most recent tables (added in the past month) are not showing up in the list.

I have not used OpenSchema a lot and am not sure how it is finding the list of tables. Is there something wrong in our SQL database? And if so, how do I fix it.

Thanks for your help.
 
Can you show the statement you are using to return your schema

e.g.
Code:
Set rs = cn.OpenSchema(adSchemaTables, _
         Array(Empty, Empty, Empty, "Table")
      While Not rs.EOF
         Debug.Print rs!TABLE_NAME
         rs.MoveNext
      Wend

   End Sub

Have a look at this for more info on the Openschema, I think your issue is relating to the owner or schema where you created your table.

"I'm living so far beyond my income that we may almost be said to be living apart
 
You response prompted me to check the permissions, which appears to have fixed the problem. The two tables in question did not have the correct permission for the login I was using.

Thank you for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top