I'm using a web form in MS Visual Studio 6.0 to view a list of specifications related to a particular part number. The specification files are in one table, and the mapping from part number to filename is in another. I filled a dataset with a JOIN in the SELECT statement and filtered the files to a particular part number using a DataView. So far so good.
But now I want to add an "upload" button which inserts a new record. I can get the filename into the specifications table but I can't figure out how to insert the PN/FILENAME mapping into the master table. I'm creating a new Row, adding it to the dataset, and calling the DataAdapter.Update function. The DataAdapter object only lets me put a single SQL INSERT statement into it (no compound statements).
Should I make a separate dataAdapter for the master table? Or is it just a matter of using some method built into the dataAdapter that I haven't found yet? I'm a bit handicapped because most of what's happening is behind the scenes in the Update method and I'm not sure exactly how it works.
On the SQL programming forum I got a suggestion to use a stored procedure to combine the two INSERT statements. Not sure if I can do that - I'm actually using ODBC to Paradox tables. Any hints?
But now I want to add an "upload" button which inserts a new record. I can get the filename into the specifications table but I can't figure out how to insert the PN/FILENAME mapping into the master table. I'm creating a new Row, adding it to the dataset, and calling the DataAdapter.Update function. The DataAdapter object only lets me put a single SQL INSERT statement into it (no compound statements).
Should I make a separate dataAdapter for the master table? Or is it just a matter of using some method built into the dataAdapter that I haven't found yet? I'm a bit handicapped because most of what's happening is behind the scenes in the Update method and I'm not sure exactly how it works.
On the SQL programming forum I got a suggestion to use a stored procedure to combine the two INSERT statements. Not sure if I can do that - I'm actually using ODBC to Paradox tables. Any hints?