SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.ParentId)=251658241) AND ((MSysObjects.Type)=1) AND ((Left([MSysObjects].[Name],4))<>"MSys"));
谢谢andymark,我将SQL用在如下(VB),被告知在MSysObjects上没有读取数据权限,如何解决此权限问题
Dim Rs_Table As New ADODB.Recordset
Rs_Table.CursorLocation = adUseClient
Rs_Table.Open "SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.ParentId=251658241" & _
"AND MSysObjects.Type=1 AND Left([MSysObjects].[Name],4)<> 'MSys'", _
myConn, adOpenDynamic, adLockReadOnly
当然读取表名可以用OpenSchema(adSchemaTables)方法