English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
Todas as categorias

Pessoal, estou com um probl. aqui em uma aplicação ASP, pelo nível de algumas respostas aqui, deu vontade de perguntar por aqui mesmo. De vez em quando essa aplicação precisa fazer inserts em algumas tabelas a partir de recordsets e ocorre o seguinte erro:"Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. ". Alguém sabe como faço pra tratar isso?

2006-08-17 02:53:28 · 1 respostas · perguntado por Itamar R 5 em Computadores e Internet Programação e Design

1 respostas

CAUSE
The following are two possible causes of this error:
•In the registry, under the key for an OLE DB provider's CLSID, there may be an entry named OLEDB_SERVICES. If the OLE DB provider that is used to make the ADO connection does not have the OLEDB_SERVICES entry, and ADO tries to set up a property that is not supported by the provider, the error occurs. For more information about this registry entry, see the "Resolution" section.
•If OLEDB_SERVICES entry exists but there is a problem in the ADO connection string, the error occurs.
If the OLEDB_SERVICES registry entry is not present, the call to set up a property is made directly to the provider. If the provider does not support the property, the SetProperties OLE DB call made by ADO will fail. This is a fatal failure if the property is required to make a connection. If the property was explicitly included in the connection string, it is probably required.

If the property setting is optional, the failure is not fatal. This is the case when you connect without explicitly setting the property in the connection string. In this case, ADO sets the property to True but marks it as optional.
Back to the topBack to the top
RESOLUTION
To work around this problem, use one of the following methods:
•Do not use the "Persist Security Info" keyword in your ADO connection string.
•Add the OLEDB_SERVICES registry entry as follows:

Note Only create the OLEDB_SERVICES value in the registry keys of providers that support COM aggregation. The Exchange OLE DB provider does not support COM aggregation, and when you create this values, you receive the following error message:
0x80040E22
Non-NULL controlling IUnknown was specified, and either the requested interface was not IUnknown, or the provider does not support COM aggregation.

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
1.Start Registry Editor.
2.In the registry under HKEY_CLASSES_ROOT\CLSID, find the CLSID of the OLE DB provider. For example, the following registry key is for the Microsoft OLE DB Provider for SQL Server (SQLOLEDB):
HKEY_CLASSES_ROOT\CLSID\{0C7FF16C-38E3-11d0-97AB-00C04FC2AD98}
Click the CLSID, and then on the Edit menu, click Add Value and add the following registry value:
Value Name: OLEDB_SERVICES
Data Type: REG_DWORD
Value: 0xFFFFFFFF
Note To find the CLSID for the provider you are using, search for the provider's ProgID (SQLOLEDB, for example) in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\. Under the ProgID, there will be a key named CLSID.
•If these conditions are satisfied and you still receive the error, examine your connection string for other possible errors.

espero que tenha te ajudado ok?
abraço

2006-08-18 03:54:33 · answer #1 · answered by Fiapo 4 · 0 0

fedest.com, questions and answers