SqlConnection.GetSchema Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns schema information for the data source of this SqlConnection.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodGetSchema()

Returns schema information for the data source of this SqlConnection. For more information about scheme, see SQL Server Schema Collections.(Overrides DbConnection.GetSchema().)

System_CAPS_pubmethodGetSchema(String)

Returns schema information for the data source of this SqlConnection using the specified string for the schema name.(Overrides DbConnection.GetSchema(String).)

System_CAPS_pubmethodGetSchema(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[]).)

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.

Return to top
Show: