J
Jason Shohet
A user provides an organization name, username & password. I've got Access
as the back end so no triggers, functions etc. This is what I do:
1. open a connection
2. use the datareader to query the orgID [user provides an org name ].
3. Then do an ExecuteNonQuery, with that orgID in the where clause.
4. close the connection.
Unfort. .NET gives me an error when I try to do my executeNonQuery because
it says the datareader connection needs to be closed first. What I'm
wondering is why I can't be more efficient and do this with 1 single
connection to the database. Why do i have to split it up.
Thanks
Jason Shohet
as the back end so no triggers, functions etc. This is what I do:
1. open a connection
2. use the datareader to query the orgID [user provides an org name ].
3. Then do an ExecuteNonQuery, with that orgID in the where clause.
4. close the connection.
Unfort. .NET gives me an error when I try to do my executeNonQuery because
it says the datareader connection needs to be closed first. What I'm
wondering is why I can't be more efficient and do this with 1 single
connection to the database. Why do i have to split it up.
Thanks
Jason Shohet