fn_listextendedproperty
Posted: Wed 12 May 2010 11:32
Hi
I write this
QAskTemp.SQL.Text:='SELECT objname, CONVERT(Varchar(100), [value]) AS [OutPut] FROM ::fn_listextendedproperty(NULL, ''user'', '''', ''table'', '+QuotedStr(SecTable.Items[Index])+', ''Column'', NULL) A WHERE (name = ''MS_Description'')';
and the SDAC (in unit OLEDBAccess)says
TableName cannot be empty
I Change it to
QAskTemp.SQL.Text:='SELECT objname, CONVERT(Varchar(100), [value]) AS [OutPut] FROM [::fn_listextendedproperty](NULL, ''user'', '''', ''table'', '+QuotedStr(SecTable.Items[Index])+', ''Column'', NULL) A WHERE (name = ''MS_Description'')';
and the SDAC Says
raised exception class EMSError with message 'Invalid object name '::fn_listextendedproperty'.'. Process stopped. Use Step or Run to continue.
What can i do?
I write this
QAskTemp.SQL.Text:='SELECT objname, CONVERT(Varchar(100), [value]) AS [OutPut] FROM ::fn_listextendedproperty(NULL, ''user'', '''', ''table'', '+QuotedStr(SecTable.Items[Index])+', ''Column'', NULL) A WHERE (name = ''MS_Description'')';
and the SDAC (in unit OLEDBAccess)says
TableName cannot be empty
I Change it to
QAskTemp.SQL.Text:='SELECT objname, CONVERT(Varchar(100), [value]) AS [OutPut] FROM [::fn_listextendedproperty](NULL, ''user'', '''', ''table'', '+QuotedStr(SecTable.Items[Index])+', ''Column'', NULL) A WHERE (name = ''MS_Description'')';
and the SDAC Says
raised exception class EMSError with message 'Invalid object name '::fn_listextendedproperty'.'. Process stopped. Use Step or Run to continue.
What can i do?
