R
Richard Rivera
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);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.SelectCommand.CommandType = CommandType.StoredProcedure;
DataSet ds = new DataSet();
da.Fill(ds,"table 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);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
da.SelectCommand.CommandType = CommandType.StoredProcedure;
DataSet ds = new DataSet();
da.Fill(ds,"table name");
How do I determine between New and Updated data after I fill my dataset?
Any help would be appreciated.
Thanks
Richard