Creates a new instance of Sql7CacheDependency class, using the supplied parameters.

Namespace: Alachisoft.NCache.Runtime.Dependencies
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
public static DBCacheDependency CreateSqlCacheDependency(
	string connectionString,
	string dbCacheKey
)
Visual Basic
Public Shared Function CreateSqlCacheDependency ( _
	connectionString As String, _
	dbCacheKey As String _
) As DBCacheDependency
Visual C++
public:
static DBCacheDependency^ CreateSqlCacheDependency(
	String^ connectionString, 
	String^ dbCacheKey
)

Parameters

connectionString
Type: System..::..String
The connection string for establishing a connection with the database server where the database containing above mentioned table exists.
dbCacheKey
Type: System..::..String

Return Value

A SqlCacheDependency object based on the supplied parameters.

Remarks

This static method is used to create SqlCacheDependency objects for SQL Server 7 and SQL Server 2000 products.

You need to enable notification for both the table and the database containing the table before you can use this DBCacheDependency in your application.

See Also