为什么从SQL数据库中取出的数据表多于在企业管理器中看到的数目?(50分)

狒狒

Unregistered / Unconfirmed
GUEST, unregistred user!
使用ADO连接SQL数据库的pubs,NorthWind使用如下代码获得库中的表多于在企业管理器中看到的数目
begin
try
aTableList:=TStringList.Create;
self.ADOConnection1.GetTableNames(aTableList,false);
for iCount:=0 to aTableList.Count -1 do
begin
self.ListBox1.Items.Add(aTableList.Strings[iCount]);
end;
finally
aTableList.Free;
self.PageControl1.ActivePageIndex :=0;
end;
 
企业管理器中还有许多系统表,只不过默认状态下是不显示的。
 
那怎样才能显示用户表,系统表中还有不是sys开头的。另外如何打开默认状态下不显示的系统表。
 
ADOConnection1.GetTableNames(aTableList,True)就可以了。
 
具体是什么原因呢?
能不能有人解释得清楚点呢!
 
GetTableNames两个参数呀,有一个参数可以控制的
应该如philipliu所讲
 
顶部