Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Database question Pin
T210230-Dec-10 2:47
T210230-Dec-10 2:47 
GeneralRe: Database question Pin
MacRaider430-Dec-10 2:53
MacRaider430-Dec-10 2:53 
GeneralRe: Database question Pin
T210230-Dec-10 14:06
T210230-Dec-10 14:06 
QuestionRe: Database question Pin
MacRaider430-Dec-10 4:43
MacRaider430-Dec-10 4:43 
AnswerRe: Database question Pin
trelliot31-Dec-10 0:30
trelliot31-Dec-10 0:30 
AnswerRe: Database question Pin
jschell31-Dec-10 8:11
jschell31-Dec-10 8:11 
GeneralRe: Database question Pin
MacRaider41-Jan-11 6:42
MacRaider41-Jan-11 6:42 
GeneralRe: Database question Pin
jschell1-Jan-11 8:28
jschell1-Jan-11 8:28 
MacRaider4 wrote:
I have changed my VB app to use the same DSN that the C++ app is using and it is still faster


By VB you mean in .Net? .Net uses connection pooling. You can modify the url to disable connection pooling.

You didn't mention what 4.5 seconds was relative to. However there is no way that establishing a connection on a lan should take 4.5 seconds unless something is wrong with the infrastructure.


MacRaider4 wrote:
As far as timing goes, we have both apps getting time stamps before and after the process starts. I don't have the code infront of me, but it is basically startTime -> Open the connection and query the database -> return the results to a recordset -> close the connection, endTime.


If it is in fact C++ itself then you should be able to create a test app with a simple table structure and exactly reproduce the results. If you cannot do that then it would demonstrate that there is some other problem.
If you can do it then posting the exact code here, of the test app, for both languages would be helpful.
QuestionQuery for non-dockable toolbar. Pin
Le@rner29-Dec-10 22:12
Le@rner29-Dec-10 22:12 
AnswerRe: Query for non-dockable toolbar. Pin
jk chan30-Dec-10 1:45
jk chan30-Dec-10 1:45 
Questionintegrating C in C++ MFC Pin
Stevefigo229-Dec-10 21:22
Stevefigo229-Dec-10 21:22 
QuestionRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 21:26
mveCPallini29-Dec-10 21:26 
AnswerRe: integrating C in C++ MFC Pin
Stevefigo229-Dec-10 21:55
Stevefigo229-Dec-10 21:55 
GeneralRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 22:11
mveCPallini29-Dec-10 22:11 
GeneralRe: integrating C in C++ MFC Pin
Stevefigo229-Dec-10 22:32
Stevefigo229-Dec-10 22:32 
GeneralRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 22:52
mveCPallini29-Dec-10 22:52 
AnswerRe: integrating C in C++ MFC Pin
jk chan29-Dec-10 21:38
jk chan29-Dec-10 21:38 
AnswerRe: integrating C in C++ MFC Pin
Joe Woodbury30-Dec-10 6:59
professionalJoe Woodbury30-Dec-10 6:59 
AnswerRe: integrating C in C++ MFC Pin
trelliot31-Dec-10 0:35
trelliot31-Dec-10 0:35 
QuestionAny other option Except memcpy Pin
002comp29-Dec-10 17:20
002comp29-Dec-10 17:20 
AnswerRe: Any other option Except memcpy Pin
jk chan29-Dec-10 17:53
jk chan29-Dec-10 17:53 
GeneralRe: Any other option Except memcpy Pin
002comp29-Dec-10 19:43
002comp29-Dec-10 19:43 
GeneralRe: Any other option Except memcpy Pin
jk chan29-Dec-10 20:56
jk chan29-Dec-10 20:56 
GeneralRe: Any other option Except memcpy Pin
002comp29-Dec-10 21:54
002comp29-Dec-10 21:54 
QuestionRe: Any other option Except memcpy Pin
CPallini29-Dec-10 20:56
mveCPallini29-Dec-10 20:56 

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.