Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Enterprise SCADA

sp_columnsXML

  • Last UpdatedNov 02, 2023
  • 1 minute read

This stored procedure will list information about the column (or "field") within the specified database (or "qualifier") and table. The Microsoft SQL wildcard character % may be used to specify any of the input arguments. The output is in XML format. The specification of wildcard inputs to this call may return a massive stream of XML. Use with caution.

call sp_columnsXML(<database>,<table>, <column>)

call sp_columnsXML('RTDB', 'message', '%');

<?xml version="1.0" standalone="no"?>

<SQLEngineDatastoreSchema>

<database name="RTDB" owner="dbo">

<table name="message" owner="dbo" description="Message text and color" allowUpdate="yes" allowSelect="yes" allowDelete="yes" allowInsert="yes" tablelast="" modified="10/10/2013 10:01:27.731"permissionslastmodified="10/10/2013 10:01:27.731">

<column name="name" owner="dbo" description="Message key name" datatype="string" length="31" casesensitive="no" defaultvalue="yes" nullable="no" precision="31" radix="" scale="" scope="" pseudocolumn=""columntype="rowid"/>

<column name="setName" owner="dbo" description="Message Set name" datatype="string" length="31" casesensitive="no" defaultvalue="yes" nullable="no" precision="31" radix="" scale="" scope="" pseudoco lumn=""columntype="regular"/>

...

<index name="" owner="dbo" column="" unique="unknown" ind extype="statistics" sequence="1" collation="" cardinality="129" pages="" filtercondition=""/>

<index name="name" owner="dbo" column="name" unique="yes" indextype="hashed" sequence="1" collation="ascending" cardinality="129" pages="" filtercondition=""/>

...

<key primarykey="" primarydatabase="RTDB" primaryowner="d bo" primarytable="message" primarycolumn="name" sequence="1" foreignk ey="" foreigndatabase="" foreignowner="" foreigntable="" foreigncolum n="" updaterule=""deleterule=""/>

<key primarykey="" primarydatabase="EnumDB" primaryowner= "dbo" primarytable="pntcolor" primarycolumn="edescr" sequence="1" for eignkey="" foreigndatabase="RTDB" foreignowner="dbo" foreigntable="me ssage" foreigncolumn="fg"updaterule="" deleterule=""/>

...

</table>

</database>

</SQLEngineDatastoreSchema>