Click here to Skip to main content
15,921,169 members
Home / Discussions / Database
   

Database

 
GeneralDynamic names in SQL Server Pin
theJazzyBrain1-Mar-04 6:20
theJazzyBrain1-Mar-04 6:20 
GeneralRe: Dynamic names in SQL Server Pin
ian mariano1-Mar-04 11:57
ian mariano1-Mar-04 11:57 
GeneralRe: Dynamic names in SQL Server Pin
theJazzyBrain1-Mar-04 21:11
theJazzyBrain1-Mar-04 21:11 
QuestionCan I keep a connection open while the session exists? Pin
iluha29-Feb-04 3:42
iluha29-Feb-04 3:42 
I'm developing a shopping cart using vb6. (ActiveX dll)

For db connectivity I'm using ADO 2.7

The database (free tables) in use for now will be FOXPRO (I know not the best choice)
At some point the databases will be converted to MSSQL.

My question is:
When the cCustomer class is created, can I open the connection to the database and closed it when class is destroyed (on session end)?
Or
Should I open and close connection as needed?

It just seem better to just do it ones, but I'm not sure on how much extra load it will be on the server.
There might be up to 500 people on the server at any given time...

Please let me know what you think

Thank you
Iluha

Smile | :)
AnswerRe: Can I keep a connection open while the session exists? Pin
Spanky329-Feb-04 7:27
Spanky329-Feb-04 7:27 
AnswerRe: Can I keep a connection open while the session exists? Pin
ian mariano29-Feb-04 21:36
ian mariano29-Feb-04 21:36 
GeneralRe: Can I keep a connection open while the session exists? Pin
gpa20001-Mar-04 19:57
gpa20001-Mar-04 19:57 
Questionselect top, limit 2, 3? Pin
Anonymous28-Feb-04 20:13
Anonymous28-Feb-04 20:13 
AnswerRe: select top, limit 2, 3? Pin
Colin Angus Mackay29-Feb-04 1:57
Colin Angus Mackay29-Feb-04 1:57 
GeneralUpdate Customise Object to Database Pin
Member 435691127-Feb-04 10:26
Member 435691127-Feb-04 10:26 
GeneralRe: Update Customise Object to Database Pin
Mazdak28-Feb-04 4:55
Mazdak28-Feb-04 4:55 
Generalget minor errors via OLEDB Pin
misha_grewal27-Feb-04 2:47
misha_grewal27-Feb-04 2:47 
GeneralRe: get minor errors via OLEDB Pin
Prakash Nadar1-Mar-04 3:12
Prakash Nadar1-Mar-04 3:12 
GeneralRe: get minor errors via OLEDB Pin
Steve S1-Mar-04 6:52
Steve S1-Mar-04 6:52 
GeneralDataSet Clear() performance problem Pin
Dan Bunea27-Feb-04 0:59
Dan Bunea27-Feb-04 0:59 
GeneralRe: DataSet Clear() performance problem Pin
Mike Dimmick27-Feb-04 9:38
Mike Dimmick27-Feb-04 9:38 
GeneralRe: DataSet Clear() performance problem Pin
Dan Bunea28-Feb-04 23:58
Dan Bunea28-Feb-04 23:58 
GeneralRe: DataSet Clear() performance problem Pin
Mike Dimmick29-Feb-04 7:20
Mike Dimmick29-Feb-04 7:20 
GeneralRe: DataSet Clear() performance problem Pin
Dan Bunea29-Feb-04 20:52
Dan Bunea29-Feb-04 20:52 
GeneralReturning Large DataSet Pin
Dhrubajyoti Dey26-Feb-04 20:28
Dhrubajyoti Dey26-Feb-04 20:28 
GeneralRe: Returning Large DataSet Pin
Spanky329-Feb-04 7:24
Spanky329-Feb-04 7:24 
GeneralRe: Returning Large DataSet Pin
Rob Graham2-Mar-04 16:54
Rob Graham2-Mar-04 16:54 
GeneralMSSQL linked Server Pin
y_seval26-Feb-04 5:17
y_seval26-Feb-04 5:17 
GeneralRe: MSSQL linked Server Pin
Jeff Varszegi29-Feb-04 2:07
professionalJeff Varszegi29-Feb-04 2:07 
GeneralAccessing Excel file with ASP Pin
sschilachi26-Feb-04 4:58
sschilachi26-Feb-04 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.