S
sona
Can anyone help?
I am trying to do 2 things within the same sub method.
Firstly, having made the connection to the SQL Server
database and creating a new adapter, i have made a query
to insert values in the database. This works fine.
Now i need to get some data from this database(i.e select
id from ...), but not sure how to make another SQL string
and send it to the same data adapter? i know how to write
the sql command but dont know how to use the existing
connection..
Is it easier to make a seperate sub method to take care
of this? if so, how do i pass parameters?
Am i making any sense? if so, can anyone help?
Thanks.
I am trying to do 2 things within the same sub method.
Firstly, having made the connection to the SQL Server
database and creating a new adapter, i have made a query
to insert values in the database. This works fine.
Now i need to get some data from this database(i.e select
id from ...), but not sure how to make another SQL string
and send it to the same data adapter? i know how to write
the sql command but dont know how to use the existing
connection..
Is it easier to make a seperate sub method to take care
of this? if so, how do i pass parameters?
Am i making any sense? if so, can anyone help?
Thanks.