System.Data.Sql Namespace


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

The System.Data.Sql namespace contains classes that support SQL Server-specific functionality.


Provides a mechanism for enumerating all available instances of SQL Server within the local network.


Represents a request for notification for a given command.

For information about the functionality that the classes within this namespace support, see Enumerating Instances of SQL Server (ADO.NET) and Query Notifications in SQL Server.


In beta releases of ADO.NET version 2.0, the System.Data.Sql namespace also contained classes for use with SQL Server common language runtime (CLR) integration. However, those classes have been moved into their own namespace, Microsoft.SqlServer.Server. For more information about using SQL Server CLR integration, see SQL Server Common Language Runtime Integration.

Return to top