S
Saso Zagoranski
Hi!
A question about database tables...
I have a SELECT statement:
SELECT something FROM someTable WHERE code = @code
The parameter code starts with 1 and is autoincremented...
Now I want to add a row to the database and I do it like this:
DataSet dataSet = new DataSet();
dataAdapter.SelectStatement.Parameters[0].Value = 0; // *
dataAdapter.Fill(dataSet); //
*
dataSet.Tables[0].AddRow(....);
The question is about the two rows marked with a *... I do this only to get
the schema of the table...
Is there anyother way to get the schema of the table? And can you the update
just the DataTable, without
it being in a DataSet?
thanks,
saso
A question about database tables...
I have a SELECT statement:
SELECT something FROM someTable WHERE code = @code
The parameter code starts with 1 and is autoincremented...
Now I want to add a row to the database and I do it like this:
DataSet dataSet = new DataSet();
dataAdapter.SelectStatement.Parameters[0].Value = 0; // *
dataAdapter.Fill(dataSet); //
*
dataSet.Tables[0].AddRow(....);
The question is about the two rows marked with a *... I do this only to get
the schema of the table...
Is there anyother way to get the schema of the table? And can you the update
just the DataTable, without
it being in a DataSet?
thanks,
saso