CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Threads and Database

    I need to do some database search with my application while the user is using it. Right now, while I access the database the user can't do anything(my application looks like is frozen). How can I use another thread to do the search?
    Thanx.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Threads and Database

    IMHO you don't need to use Threads.
    You can use ADO's asynchronous Execution modes to make your User interface responding to user requests.
    You can execute commands or fetch records asynchronously in ADO.


  3. #3
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Re: Threads and Database

    I've tryed but I get the message:
    "The operation requested by the application is not supported by the provider".

    I have an Access 2000 database and:
    lConnection.ConnectionString = "PROVIDER=MSDASQL;dsn=find2;uid=;pwd=;"
    Set lRS = cmd.Execute(strSQL, , adExecuteAsync)

    What is wrong? Thank you again for your suggestions.


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Threads and Database

    >PROVIDER=MSDASQL;
    IMHO that's the wrong provider for an Access 2000 database. You need to use the Jet-Provider.



  5. #5
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Re: Threads and Database

    It works without the asynchronous execution. Are you saying that the asynchronous execution does't work with MSDASQL?


  6. #6
    Join Date
    May 1999
    Posts
    3,332

    Re: Threads and Database

    NO, I was saying that MSDASQL sounds to me like the SQLServer driver of ADO.
    If I understand you correctly, you are using a Jet database.
    Asynchronous operations work with SQL Server.
    I don't know if the Access driver supports it.



  7. #7
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Re: Threads and Database

    How do I deal with "Could not find installable ISAM"?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured