|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how do i run 2 pieces of sql at the same time on the same page?
hi.
i want to run two pieces of sql that connect to two different tables that are not assosiated with each other, in 1 asp file. how do i do this. i have one at the moment <% dim adoConn dim sConn set adoConn = Server.CreateObject("adodb.connection") make_connection adoConn, ........ dim sSqlSelectBlah dim adoRsBlah set adoRsBlah = Server.CreateObject ("adodb.recordset") sSqlSelectBlah ="SELECT foo from bar ......." adosRsBlah.open sSqlSelectBlah, adoConn, 3 %> <body> <% adoRsBlah.Close adoConn.Close %> </body> how would i include a second piece of sql that accesses a different table? cheers j |
|
#2
|
|||
|
|||
|
Just create a second recordset object and a second querey and then open it just like the first.
adoRS2.open sql2, adoconn |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > how do i run 2 pieces of sql at the same time on the same page? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|