wanni
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by wanni
-
-
when I want to add some data to the table, what else can I use except <class="line">there is no error message, but the output is wrong, each data is printed twice on the table ( lines are repeated on the table) -
there is no error message, but the output is wrong, each data is printed twice on the table ( lines are repeated on the table)This is how it goes dim oConn1, oConn2, rs1, rs2set oConn1 = Server.CreateObject("ADODB.Connection")set oConn2 = Server.CreateObject("ADODB.Connection")set rs1 = Server.CreateObject("ADODB.Recordset")set rs2 = Server.CreateObject("ADODB.Recordset")oConn1.Open [Connection info for db1]oConn2.Open [Connection info for db2]rs1.Open "someSQL", oConn1rs2.Open "someSQL", oConn2what you are doing seems correct, can you post the error you are getting.. -
Here is what I want to doon my asp page I have following tableA B C D E Fcolumn A,B,C is from sql database db1, Column D, E is from sql database db2, F is D-CThis is what I did so far ://making connection to db1 //set rs.open for db1//while not rs.eof//making connection to db2//set rs2.open for db2//while not rs2.eof//do something, get some values from both db1 and db2//<td class="line">rs("comlumna")//<td class="line">rs2("comlumne") //here i want to add a, b, c, d, e, value to the table//rs2.movenext//close connection to db2//rs1.movenext//close neection to db1but this doesn't work , can anyone help me to find out where is the problem ?thanks
ASP making connection to 2 database
in ASP
Posted