NEW to dotconnect for oracle
Posted: Tue 08 Dec 2009 13:09
Hi,
can I write this kind of code using dotconnect
Dim strconn As String = "Data Source=" + gdatabaseip + ";Initial Catalog=" + gdatabasename + ";integrated security=false;user id=" + guserid + ";password=" + gpassword + ";connect timeout=20 "
Dim cn As New SqlConnection(strconn)
strsql = "select * from emp"
Using cmd As New SqlCommand(strsql, cn)
cmd.ExecuteQuery
what is equalvalent of the above useing dotconnect or does it all have to be done through datatable/dataadapeter classes that they provide.
thanks.
Rgds
Aidan
can I write this kind of code using dotconnect
Dim strconn As String = "Data Source=" + gdatabaseip + ";Initial Catalog=" + gdatabasename + ";integrated security=false;user id=" + guserid + ";password=" + gpassword + ";connect timeout=20 "
Dim cn As New SqlConnection(strconn)
strsql = "select * from emp"
Using cmd As New SqlCommand(strsql, cn)
cmd.ExecuteQuery
what is equalvalent of the above useing dotconnect or does it all have to be done through datatable/dataadapeter classes that they provide.
thanks.
Rgds
Aidan