Hi Lagerboy,<BR>I mean if I call the dll (vb) function to connect the database in ASP. Then you teached me to return the ADODB.connection. But, if I call other functions to execute stored procedure. It needs the ADODB.connection. How can I pass IN the ADODB connection from ASP to DLL function? (In DLL function, if state of connection is disconnected to be detected, the function must be connected again) After that, how can I pass OUT the connection from DLL function to ASP? <BR><BR>Thanks for your help.