|
-
January 24th, 2000, 02:03 AM
#1
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.
-
January 24th, 2000, 02:56 AM
#2
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.
-
January 25th, 2000, 03:57 AM
#3
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.
-
January 25th, 2000, 04:01 AM
#4
Re: Threads and Database
>PROVIDER=MSDASQL;
IMHO that's the wrong provider for an Access 2000 database. You need to use the Jet-Provider.
-
January 25th, 2000, 06:40 AM
#5
Re: Threads and Database
It works without the asynchronous execution. Are you saying that the asynchronous execution does't work with MSDASQL?
-
January 25th, 2000, 06:51 AM
#6
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.
-
January 28th, 2000, 08:40 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|