SQLDependency AND DAAB Data Access Application Block
How do I add SQLDependency in an DAAB.
I get an error with this !!
//SqlDependency.Start("MyConnection");
This is my code.
public DataSet GetPercentageByID(string dispID)
{
//SqlDependency.Start("MyConnection");
Database sqldb = DatabaseFactory.CreateDatabase("MyConnection");
DataSet ds = sqldb.ExecuteDataSet("spDispAmountPercent", new object[] { dispID });
return ds;
}