SqlConnection.GetSchema Method

Returns schema information for the data source of this SqlConnection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GetSchema() Returns schema information for the data source of this SqlConnection. For more information about scheme, see SQL Server Schema Collections. (Overrides DbConnection.GetSchema().)
Public method GetSchema(String) Returns schema information for the data source of this SqlConnection using the specified string for the schema name. (Overrides DbConnection.GetSchema(String).)
Public method GetSchema(String, String[]) Returns schema information for the data source of this SqlConnection using the specified string for the schema name and the specified string array for the restriction values. (Overrides DbConnection.GetSchema(String, String[]).)
Top

If you attempt to retrieve schema information for more than one versioned stored procedure, the schema for the latest one only is returned. For more information on versioned stored procedures, see SQL Server Books Online.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft