Thanks kstls, But I have no dependencies for this because i am trying to delete some newly inserted userdetails data, which will create a new field in that single table only and not in any of the dependency tables. Here by debugging the code i am getting the update command as : "DELETE FROM UserDetails WHERE vUserName=@vUserName" which when run directly in DBMS just replacing vUserName as 'testuser' which is the primarykey vUserName : [ DELETE FROM UserDetails WHERE vUserName='testuser' ] is deleting properly But not working from code
modified on Tuesday, November 17, 2009 6:48 AM