none
SQLDependency AND DAAB Data Access Application Block RRS feed

  • Question

  • 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;
            }
    Friday, November 16, 2007 8:59 AM

Answers