G
Gary Varga
I have a VIEW as follows:
CREATE VIEW dbo.System_Data_Dictionary_Tables
AS
SELECT INFORMATION_SCHEMA.TABLES.TABLE_NAME AS
Table_Name,
(SELECT REPLACE(CAST
(sysproperties.value AS NVARCHAR(255)), ',', ';')
FROM sysproperties
WHERE ((sysobjects.id =
sysproperties.id) AND (sysproperties.type = 3))) AS
Description
FROM dbo.sysobjects INNER JOIN
INFORMATION_SCHEMA.TABLES ON dbo.sysobjects.name =
INFORMATION_SCHEMA.TABLES.TABLE_NAME
WHERE ((TABLE_TYPE = 'BASE TABLE') AND
(INFORMATION_SCHEMA.TABLES.TABLE_NAME<>'dtproperties'))
This basically creates a rowset of the tables with the
description field from the properties.
When I "Return all rows" from Enterprise Manager or
run "SELECT * FROM System_Data_Dictionary_Tables" in
Query Analyser I get all the tables I expect including
those with NULL descriptions.
However, when I run "SELECT * FROM
System_Data_Dictionary_Tables" using ADO or ADO.NET I
only get one row returned. This row is not the first row
created nor the last. I cannot think of any way it is
particularly unique.
Many thanks,
Gary Varga
CREATE VIEW dbo.System_Data_Dictionary_Tables
AS
SELECT INFORMATION_SCHEMA.TABLES.TABLE_NAME AS
Table_Name,
(SELECT REPLACE(CAST
(sysproperties.value AS NVARCHAR(255)), ',', ';')
FROM sysproperties
WHERE ((sysobjects.id =
sysproperties.id) AND (sysproperties.type = 3))) AS
Description
FROM dbo.sysobjects INNER JOIN
INFORMATION_SCHEMA.TABLES ON dbo.sysobjects.name =
INFORMATION_SCHEMA.TABLES.TABLE_NAME
WHERE ((TABLE_TYPE = 'BASE TABLE') AND
(INFORMATION_SCHEMA.TABLES.TABLE_NAME<>'dtproperties'))
This basically creates a rowset of the tables with the
description field from the properties.
When I "Return all rows" from Enterprise Manager or
run "SELECT * FROM System_Data_Dictionary_Tables" in
Query Analyser I get all the tables I expect including
those with NULL descriptions.
However, when I run "SELECT * FROM
System_Data_Dictionary_Tables" using ADO or ADO.NET I
only get one row returned. This row is not the first row
created nor the last. I cannot think of any way it is
particularly unique.
Many thanks,
Gary Varga