> // Query using parameters > //IDbDataParameter param1 = this.CreateParameter("@Category", category); > //IDbDataParameter param2 = this.CreateParameter("@Did", dId); > //this.GetDataSet("SELECT * FROM Personnel WHERE Category = " + param1 + " AND Diocese = " + param2); You don't add the parameter to the SQL like that. Try this: <pre> this.GetDataSet("SELECT * FROM Personnel WHERE Category = @Category AND Diocese = @Did", param1, param1);