G
Guest
Is it possible to perform an update on a database using the OdbcDataAdapter
without adding any parameters to an OdbcCommand? I've found an article on
MSDN and it says you need to have some OdbcCommand.Parameters and an
OdbcParameter. Is it not possible to perform an update without going through
all this? Why couldn't I just do...
odbcCommand("UPDATE blah SET foo = "Hello" WHERE blahID = "1");?
odbcDataAdapter.UpdateCommand = odbcCommand;
The thing that's making me question this is because in the article it says
you need to have OdbcDataAdapter.Parameters for a select statement too and in
my program I didn't have them. I literally just did...
odbcCommand("SELECT * from blah");
odbcDataAdapter.SelectCommand = odbcCommand;
Darrell
without adding any parameters to an OdbcCommand? I've found an article on
MSDN and it says you need to have some OdbcCommand.Parameters and an
OdbcParameter. Is it not possible to perform an update without going through
all this? Why couldn't I just do...
odbcCommand("UPDATE blah SET foo = "Hello" WHERE blahID = "1");?
odbcDataAdapter.UpdateCommand = odbcCommand;
The thing that's making me question this is because in the article it says
you need to have OdbcDataAdapter.Parameters for a select statement too and in
my program I didn't have them. I literally just did...
odbcCommand("SELECT * from blah");
odbcDataAdapter.SelectCommand = odbcCommand;
Darrell