Home > SQL Development > only one oledbConnection throughout application

only one oledbConnection throughout application



<i><b>Originally posted by : ashish (tamhane_ashish@rediffmail.com)</b></i><br /><br />i am developing on line tutorial in ASP.NET<br />i have my database in Microsoft ACCESS(.MDB)<br />iwant to create only one instance of oleDbConnection object. and use it throught out my Web application(from web form1,2,3...ect)<br />but each page has its own oleDbCommand oject, oleDbAdapter obkject . also i want only one instance of DataSet object.<br />Plz tell me how will it possible

    
Guest


Why would you want that? In theory it's not needed. Usually, connections are re-used as long as their connection string is identical.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved