S
SimonV
Hy,
I have a dataset with 2 tables in: Stuff and Price
in the Stuff table are the collumns: Id, Name, PriceID
in the Price table there are: Id, Price
This is excatly the same as in my database.
I'm using SqlDataAdapter, SqlCommand and so.
How can i insert a new dataset correctly?
I'm using a stored procedure that asks a name and a price, and fills in
the data corectly by himself.
When I'm using this:
SqlParameter pPrice = new SqlParameter();
pPrice .ParameterName = "@Price";
pPrice .SourceColumn = "Price";
cmd.Parameters.Add(pPrice );
I get an error, I think he's working with the wrong table, but how can
I say witch table he must use?
I have a dataset with 2 tables in: Stuff and Price
in the Stuff table are the collumns: Id, Name, PriceID
in the Price table there are: Id, Price
This is excatly the same as in my database.
I'm using SqlDataAdapter, SqlCommand and so.
How can i insert a new dataset correctly?
I'm using a stored procedure that asks a name and a price, and fills in
the data corectly by himself.
When I'm using this:
SqlParameter pPrice = new SqlParameter();
pPrice .ParameterName = "@Price";
pPrice .SourceColumn = "Price";
cmd.Parameters.Add(pPrice );
I get an error, I think he's working with the wrong table, but how can
I say witch table he must use?