troubleshooting Question

How To Connect To A Database In Application_Start Of Global.asax

Avatar of David Bach
David BachFlag for United States of America asked on
ASP.NET
5 Comments3 Solutions2585 ViewsLast Modified:
Greetings;

I understand there is a way to connect to a SQL database within the Application_Start section of the Global.asax file, however, I have not found a good example of this. I am looking for a sample connect and subsequent reference to the connect object name from VB page behind.

Please let me know if I'm on the wrong track in my thinking or if this is a commonly done coding practice and an example of how to do it showing the Global.asax code and a sample snippet of VB code in the code-behind for a page.


Much thanks ... David
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros