Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataBase connection

Reply
Thread Tools

DataBase connection

 
 
varun varun
Guest
Posts: n/a
 
      07-07-2003
hello friends,

i am developing an asp.net application in which
i want to keep database connection of
my application alive through out the application.

in my case, my DBMS is MS SQL Server 2000.

i came to know that in application_init event of
the application, we can put some code to
connect to our back-end.

i tried to search a lot for this event in
developer environment but could not locate it.

so can anyone tell where do i need to put the code ?

thank you.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      07-07-2003
You need to dump the idea. ADO.Net is designed to leverage Connection
Pooling, and trying to use one Connection for the entire app is not a good
or safe idea.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Some things just happen.
Everything else occurs.

"varun varun" <> wrote in message
news:...
> hello friends,
>
> i am developing an asp.net application in which
> i want to keep database connection of
> my application alive through out the application.
>
> in my case, my DBMS is MS SQL Server 2000.
>
> i came to know that in application_init event of
> the application, we can put some code to
> connect to our back-end.
>
> i tried to search a lot for this event in
> developer environment but could not locate it.
>
> so can anyone tell where do i need to put the code ?
>
> thank you.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Database Connection - Not Associated With Trusted Connection Mythran ASP .Net 5 10-05-2005 10:50 PM
Re: Software Developer to transcribe Oracle database into Access database Fluker MCSD 0 07-09-2003 01:20 PM
Re: Software Developer to transcribe Oracle database into Access database Guy Cox MCSD 1 07-09-2003 08:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57