使用编码工作流连接sqlserver2008 R2报错

The type initializer for ‘Microsoft.Data.SqlClient.TdsParser’ threw an exception.

System.TypeInitializationException: The type initializer for ‘Microsoft.Data.SqlClient.TdsParser’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Microsoft.Data.SqlClient.SNILoadHandle’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘Microsoft.Data.SqlClient.SNI.dll’ or one of its dependencies: 找不到指定的模块。 (0x8007007E)

输出: The type initializer for ‘System.Data.SqlClient.TdsParser’ threw an exception.

System.TypeInitializationException: The type initializer for ‘System.Data.SqlClient.TdsParser’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘System.Data.SqlClient.SNILoadHandle’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘System.Data.SqlClient.SNI.dll’ or one of its dependencies: 找不到指定的模块。 (0x8007007E)

@2695809964,

Import this namespace in your workflow.
Microsoft.Data.SqlClient

What activity you are using related to SQL?

Thanks,
Ashok :slight_smile: