Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2003, 04:11 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sifac23
Default Access vs odbc

Hi All,

My application supports Access, SQL Server, MSDE and oracle.
Some porion of code is in VB and some of it is in C.
For C I am using ODBC calls to make entries in the database.
For VB i am using ADO.
In case of oracle, SqlServer, MSDE there is no problem but in case of
Access ODBC calls seems to be slow. See the following code

See the following piece of code

// at_DB_insert uses ODBC calls to insert data in database
// Adding data through vc
if (at_DB_insert (pDbHandle, AT_PROJECTDB_DOCREG_TABLE, m_pDocData) == AT_DB_SUCCESS)
{
    // GetDocIDFromFileName is written in VB and using ADO
    // We now want to read the entry made in database through VC above
    // Try to read it through VB. In case of oracle it takes less
    // then a second but in case of Access it takes 3-6 seconds.
     while (!(pDocID = GetDocIDFromFileName (documentFileName)))
       Sleep (500) ;

}


Any help is appreciateable.

Regards,
Salman
 
Old December 3rd, 2003, 03:40 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why not just use ADO with Access? I am not sure about your question either, but, ORacle, SQL Server and MSDE are all true client server databases, access is not, therefore it will be slower.





Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC error excel and access paul20091968 Excel VBA 0 June 20th, 2007 05:02 AM
ODBC Microsoft Access wehave74 Java Databases 1 January 29th, 2007 01:25 PM
Access / MSDE / ODBC JB. Access 4 November 11th, 2005 02:28 PM
Access - Linked ODBC Tables Ben Access 0 July 24th, 2003 10:39 AM
ODBC & Access Ben Access 1 July 20th, 2003 09:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.