I think you forgot the line below after this line SqlCommand mycommand = new SqlCommand("SELECT KnowledgeID, FixName FROM Knowledge WHERE Location LIKE '%.txt%' AND SAPPS = 'False'", myConnection)
mycommand .CommandType = CommandType.Text;
mycommand .ExecuteNonQuery();
Best Regards,
Vincent Maverick Durano
SDE|Microsoft MVP - ASP/ASP.NET
"Code,Beer and Music ~ my way of being a programmer"