Jump to content
Sign in to follow this  

Erro: "Demasiadas tarefas cliente"

Recommended Posts


O meu programa, ao aceder a uma base de dados Access, a certa altura dá este erro:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ZMC NET 1.exe

Additional information: [Microsoft][Controlador Microsoft Access de ODBC] Demasiadas tarefas cliente.


rst = New ADODB.Recordset()

Sqlstring = "SELECT * FROM Grandes_Consumidores " & _
        "WHERE Directoria = '" & Directoria_Instalacao.Name & "' "

rst.Open(Sqlstring, "DSN=zmc_2006", ADODB.CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockOptimistic, ADODB.CommandTypeEnum.adCmdText)

O que é que eu devo fazer?


Share this post

Link to post
Share on other sites

Deixar de utilizar RecordSets, não se utilizam em .NET

Pedro Martins

Não respondo a duvidas por PM

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.