March 2005 - Posts

4
Comments

"?" vs @param by Travis

string sql = "SELECT COUNT(*) "; sql += "FROM athletes "; sql += "WHERE category = ? "; sql += "AND gender = ? "; VS string sql = "SELECT COUNT(*) "; sql += "FROM athletes "; sql += "WHERE category = @category "; sql += "AND gender = @gender "; Can I...
Filed under:
2
Comments

DataSet DataTable Relation Trouble by Travis

I have a DataSet... With these tables: Parent, Child, and GrandChild. Each table has an Id, ParentId and Name field. (except the top Parent table) With these Relations: ds.Relations.Add("ParentToChild",ds.Tables["Parents"].Columns["Id"],ds.Tables["Children...
Filed under:
More Posts