Women in Technology

Hear us Roar



Article:
  Transparent Database Access with ADO.NET
Subject:   nice article - corrected code
Date:   2003-01-22 07:12:46
From:   anonymous2
its "conn.Open()" not "cmd.Open();" and



IDbCommand cmd = conn.CreateCommand();
cmd.CommandText = query;
dataAdapter.SelectCommand = cmd;


will work better than


dataAdapter.SelectCommand = query;