possible to use SqlConnection in ASP Classic?

J

jason

i was just curious if anyone knows whether or not the SqlConnection
class is exposed to the COM environment? i have a some class libraries
to handle data access that were coded for ASP.NET. the class library
methods expect to be passed an active SqlConnection, which of course
the classic ASP can't provide, unless there is a bridged interface to
the SqlConnection class available through COM.

it's no big deal if it can't be done, i can always modify the class
library to open its own data connections, but i wanted to check if
SqlConnections were possible in ASP classic just in case.

jason
 
K

Kevin Spencer

Anything CAN be done. ASP can communicate only with COM. .Net isn't COM, but
Visual Studio.Net has tools to create Interop COM wrappers for ASP.Net
classes. However, this is a lot of trouble to go to, and has serious
performance issues as well. IOW, it's a bad idea. But yes, it can be done.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top