Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique connection in my asp project.

Status
Not open for further replies.

phonenumber

Programmer
Nov 21, 2002
5
DO

Hellow Everybody

I'm creating a asp project, and i have some asp pages and i have to create the connection object for each of one othis page. I try to use the global.asa file but this it was unsuccesfull.

How I can create a global object conecction for my project.

best regards.
 
You cannot. Each page MUST establish a new connection. ODBC/ADO will 'pool' connections, so connecting is more efficient than you may think.

Right-Mouse click the global.asa
..Create new Connection

You can then add a recordsetDTC to your pages as easy as pie.

If you do not like the DTC's (and the Script Object Model (SOM)) that it requires, then copy-paste the javascript that it creates under the DTC and use it as a basis for your code. But I would use the DTCs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top