TCRSQLConnection.GetTableNames return some system tables

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
ccy
Posts: 10
Joined: Tue 04 Oct 2005 03:39

TCRSQLConnection.GetTableNames return some system tables

Post by ccy » Sat 07 Oct 2006 07:14

Hi,

I am using MSSQL 2000. I use TCRSQLConnection.GetTableNames to return a list of user tables. However, it return 3 extra tables that isn't not created by me:

1. dtproperties
2. sysconstraints
3. syssegments

This is my code:
var S: TStringList;
begin
S := TStringList.Create;
SQLConnection1.GetTableNames(S, False);
S.Free;
end;

Any ideas?

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Mon 09 Oct 2006 11:53

This is MS SQL Server behaviour.
There is no way to get to know if the view is system or not.

Post Reply