Привет я создаю приложение в vb.net, используя 3 уровня архитектуры.Сведения об исключении: System.ArgumentException: Ключевое слово не поддерживается: 'unicode'
Мой DB Подключение:
Implements IDisposable
Public Shared ReadOnly mcpConnectionString As String = System.Configuration.ConfigurationManager.ConnectionStrings("con1").ConnectionString
Private _McpConnection As OracleConnection
Бизнес Слой:
Public Class blayer
Inherits DBConnection
Public Sub ses_test_insert(ByVal p_userid As Integer, ByVal p_username As String, ByVal p_createdby As String, ByVal p_date As String)
SqlHelper.ExecuteNonQuery(mcpConnectionString, "insertDBUSER", p_userid, p_username, p_createdby, p_date)
End Sub
В Web Config:
<add name="con1" connectionString="Data Source=xe;User ID=system;Password=sesu;Unicode=True" providerName="System.Data.OracleClient" />
Я использую Oracle в качестве заднего конца инструмента. Я создал процедуру в oracle insertDBUSER ....
Я не могу вставить данные в таблицу. Когда я нажимаю кнопку вставки, он показывает
Exception Details: System.ArgumentException: Keyword not supported: 'unicode'.
Source Error:
Line 12: Inherits DBConnection
Line 13: Public Sub ses_test_insert(ByVal p_userid As Integer, ByVal p_username As String, ByVal p_createdby As String, ByVal p_date As String)
Line 14: SqlHelper.ExecuteNonQuery(mcpConnectionString, "insertDBUSER", p_userid, p_username, p_createdby, p_date)
Line 15: End Sub
Line 16: End Class
В чем проблема.?
После удаления юникода показывает:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
После удаления Unicode он показывает, что при установлении соединения с SQL Server произошла связанная с сетью или конкретная ошибка экземпляра. Сервер не найден или не был доступен. Проверьте правильность имени экземпляра и настройте SQL Server для удаленного подключения. (поставщик: поставщик Named Pipes, ошибка: 40 - не удалось открыть соединение с SQL Server) – Sesuraj