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.3.0.0 (4.3.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

Type: DBCacheDependency
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