I'm new to C# so bear with me.
I have a windows form with 2 text boxes: First Name and Last Name. I want
to create a method in my Data class that will handle both my New and Updated
data(first and last name). This is what I have so far:
I'm using stored procedures to Insert, Update, and Delete data.
SqlDataAdapter da = new SqlDataAdapter( "sp_Select" , conn);
SqlCommandBuild er cb = new SqlCommandBuild er(da);
da.SelectComman d.CommandType = CommandType.Sto redProcedure;
DataSet ds = new DataSet();
da.Fill(ds,"tab le name");
How do I determine between New and Updated data after I fill my dataset?
Any help would be appreciated.
Thanks
Richard
I have a windows form with 2 text boxes: First Name and Last Name. I want
to create a method in my Data class that will handle both my New and Updated
data(first and last name). This is what I have so far:
I'm using stored procedures to Insert, Update, and Delete data.
SqlDataAdapter da = new SqlDataAdapter( "sp_Select" , conn);
SqlCommandBuild er cb = new SqlCommandBuild er(da);
da.SelectComman d.CommandType = CommandType.Sto redProcedure;
DataSet ds = new DataSet();
da.Fill(ds,"tab le name");
How do I determine between New and Updated data after I fill my dataset?
Any help would be appreciated.
Thanks
Richard
Comment