SqlProviderServices Class

.NET Framework (current version)

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

The DbProviderServices implementation for the SqlClient provider for SQL Server.

This API is not CLS-compliant.

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


public sealed class SqlProviderServices : DbProviderServices


Gets the singleton instance of SqlProviderServices.


Creates a command definition that uses a specified command.(Inherited from DbProviderServices.)


Creates command definition from command tree.(Inherited from DbProviderServices.)

System_CAPS_pubmethodCreateCommandDefinition(DbProviderManifest, DbCommandTree)

Creates command definition from specified manifest andcommand tree.(Inherited from DbProviderServices.)

System_CAPS_pubmethodCreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Creates a database indicated by connection and creates schema objects.(Inherited from DbProviderServices.)

System_CAPS_pubmethodCreateDatabaseScript(String, StoreItemCollection)

Generates a data definition langauge (DDL script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.(Inherited from DbProviderServices.)

System_CAPS_pubmethodDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

Returns a value indicating whether a given database exists on the server and whether schema objects contained in the storeItemCollection have been created.(Inherited from DbProviderServices.)

System_CAPS_pubmethodDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

Deletes all store objects specified in the store item collection from the database and the database itself.(Inherited from DbProviderServices.)


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Returns the provider manifest by using the specified version information.(Inherited from DbProviderServices.)


Returns provider manifest token.(Inherited from DbProviderServices.)

System_CAPS_pubmethodGetSpatialDataReader(DbDataReader, String)

Gets the spatial data reader for the DbProviderServices.(Inherited from DbProviderServices.)


Gets the spatial services for the DbProviderServices.(Inherited from DbProviderServices.)


Gets the Type of the current instance.(Inherited from Object.)


Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top